From de5f3020d92f14e7ff544d92440c5bf9e012d460 Mon Sep 17 00:00:00 2001 From: Zoltan Tombol Date: Wed, 9 Jul 2014 17:08:17 +0200 Subject: [PATCH 1/2] Revert "removed expect from mkimage-arch since it was not working" This reverts commit 962e1186f9a0a43344e19dcf70bac159f0eafb4e. Conflicts: contrib/mkimage-arch.sh Docker-DCO-1.1-Signed-off-by: Zoltan Tombol (github: ztombol) --- contrib/mkimage-arch.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/contrib/mkimage-arch.sh b/contrib/mkimage-arch.sh index 1f52cbc1a1..27c6ac6a3e 100755 --- a/contrib/mkimage-arch.sh +++ b/contrib/mkimage-arch.sh @@ -9,13 +9,31 @@ hash pacstrap &>/dev/null || { exit 1 } +hash expect &>/dev/null || { + echo "Could not find expect. Run pacman -S expect" + exit 1 +} + ROOTFS=$(mktemp -d ${TMPDIR:-/var/tmp}/rootfs-archlinux-XXXXXXXXXX) chmod 755 $ROOTFS # packages to ignore for space savings PKGIGNORE=linux,jfsutils,lvm2,cryptsetup,groff,man-db,man-pages,mdadm,pciutils,pcmciautils,reiserfsprogs,s-nail,xfsprogs -pacstrap -C ./mkimage-arch-pacman.conf -c -d -G -i $ROOTFS base haveged --ignore $PKGIGNORE +expect < Date: Wed, 9 Jul 2014 17:38:13 +0200 Subject: [PATCH 2/2] Fix expect script in mkimage-arch Docker-DCO-1.1-Signed-off-by: Zoltan Tombol (github: ztombol) --- contrib/mkimage-arch.sh | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/contrib/mkimage-arch.sh b/contrib/mkimage-arch.sh index 27c6ac6a3e..e83b2b6731 100755 --- a/contrib/mkimage-arch.sh +++ b/contrib/mkimage-arch.sh @@ -5,13 +5,13 @@ set -e hash pacstrap &>/dev/null || { - echo "Could not find pacstrap. Run pacman -S arch-install-scripts" - exit 1 + echo "Could not find pacstrap. Run pacman -S arch-install-scripts" + exit 1 } hash expect &>/dev/null || { - echo "Could not find expect. Run pacman -S expect" - exit 1 + echo "Could not find expect. Run pacman -S expect" + exit 1 } ROOTFS=$(mktemp -d ${TMPDIR:-/var/tmp}/rootfs-archlinux-XXXXXXXXXX) @@ -21,18 +21,19 @@ chmod 755 $ROOTFS PKGIGNORE=linux,jfsutils,lvm2,cryptsetup,groff,man-db,man-pages,mdadm,pciutils,pcmciautils,reiserfsprogs,s-nail,xfsprogs expect <