From b1cc27901689108a7467169b2eeaad88a5e12587 Mon Sep 17 00:00:00 2001 From: j3s Date: Mon, 2 Aug 2021 23:12:43 -0500 Subject: [PATCH] Arch Linux fixes: console, mount, wait until boot --- archlinux/build | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/archlinux/build b/archlinux/build index 11c0f9a..a6a9cba 100755 --- a/archlinux/build +++ b/archlinux/build @@ -12,7 +12,7 @@ cleanup() { mkdir -p "$arch" -qemu-img create -f qcow2 $arch/root.img.qcow2 20G +qemu-img create -f qcow2 $arch/root.img.qcow2 25G modprobe nbd qemu-nbd --connect=/dev/nbd0 $arch/root.img.qcow2 trap cleanup EXIT @@ -102,11 +102,12 @@ EOF extlinux -i "$root"/boot cat > "$root"/boot/extlinux.conf <<- EOF +serial 0 115200 default archlinux label archlinux linux vmlinuz-linux initrd initramfs-linux.img -append root=/dev/vda2 rw quiet +append root=/dev/vda2 rw console=tty0 console=ttyS0,115200 quiet EOF echo "makeopts=(--skippgpcheck)" >> $root/etc/makepkg.conf @@ -126,8 +127,10 @@ EOF cat > $root/bin/capsul-init <<-EOF #!/bin/sh -mount -t iso9660 -o ro /dev/sr0 /mnt -cat > "/home/cyberian/.ssh/authorized_keys" <> "/home/cyberian/.ssh/authorized_keys" < $root/etc/systemd/system/capsul-init.service <<-EOF [Unit] Description=init capsul and EXPLODE +After=multi-user.target [Service] Type=oneshot @@ -162,4 +167,3 @@ run_root pacman --noconfirm -Rs go paccache -rk0 -c "$root/var/cache/pacman/pkg" pkill gpg-agent || true -