1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

mkimage-arch: use mktemp to create ROOTFS directory

Docker-DCO-1.1-Signed-off-by: Bartłomiej Piotrowski <b@bpiotrowski.pl> (github: Barthalion)
This commit is contained in:
Bartłomiej Piotrowski 2014-01-06 13:08:55 +01:00
parent 2a1181f404
commit c138c335a5

View file

@ -4,19 +4,19 @@
# requires root
set -e
PACSTRAP=$(which pacstrap)
PACSTRAP=$(hash pacstrap &>/dev/null)
[ "$PACSTRAP" ] || {
echo "Could not find pacstrap. Run pacman -S arch-install-scripts"
exit 1
}
EXPECT=$(which expect)
[ "$EXPECT" ] || {
EXPECT=$(hash expect &>/dev/null)
[[ "$EXPECT" ]] || {
echo "Could not find expect. Run pacman -S expect"
exit 1
}
ROOTFS=~/rootfs-arch-$$-$RANDOM
mkdir $ROOTFS
ROOTFS=$(mktemp -d /tmp/rootfs-archlinux-XXXXXXXXXX)
#packages to ignore for space savings
PKGIGNORE=linux,jfsutils,lvm2,cryptsetup,groff,man-db,man-pages,mdadm,pciutils,pcmciautils,reiserfsprogs,s-nail,xfsprogs