| ... | ... |
@@ -21,18 +21,20 @@ mkdir $ROOTFS |
| 21 | 21 |
#packages to ignore for space savings |
| 22 | 22 |
PKGIGNORE=linux,jfsutils,lvm2,cryptsetup,groff,man-db,man-pages,mdadm,pciutils,pcmciautils,reiserfsprogs,s-nail,xfsprogs |
| 23 | 23 |
|
| 24 |
-expect -c " |
|
| 24 |
+expect <<EOF |
|
| 25 | 25 |
set timeout 60 |
| 26 |
+ set send_slow {1 1}
|
|
| 26 | 27 |
spawn pacstrap -c -d -G -i $ROOTFS base haveged --ignore $PKGIGNORE |
| 27 | 28 |
expect {
|
| 28 |
- \"Install anyway\" { send "n\\r"; exp_continue }
|
|
| 29 |
- \"(default=all)\" { send "\\r"; exp_continue }
|
|
| 30 |
- \"Proceed with installation?\" { send "\\r"; exp_continue }
|
|
| 31 |
- \"skip the above package\" {send "y\\r"; exp_continue }
|
|
| 32 |
- \"checking\" { exp_continue }
|
|
| 33 |
- \"loading\" { exp_continue }
|
|
| 34 |
- \"installing\" { exp_continue }
|
|
| 35 |
- }" |
|
| 29 |
+ "Install anyway?" { send n\r; exp_continue }
|
|
| 30 |
+ "(default=all)" { send \r; exp_continue }
|
|
| 31 |
+ "Proceed with installation?" { send "\r"; exp_continue }
|
|
| 32 |
+ "skip the above package" {send "y\r"; exp_continue }
|
|
| 33 |
+ "checking" { exp_continue }
|
|
| 34 |
+ "loading" { exp_continue }
|
|
| 35 |
+ "installing" { exp_continue }
|
|
| 36 |
+ } |
|
| 37 |
+EOF |
|
| 36 | 38 |
|
| 37 | 39 |
arch-chroot $ROOTFS /bin/sh -c "haveged -w 1024; pacman-key --init; pkill haveged; pacman -Rs --noconfirm haveged; pacman-key --populate archlinux" |
| 38 | 40 |
arch-chroot $ROOTFS /bin/sh -c "ln -s /usr/share/zoneinfo/UTC /etc/localtime" |