From 446b855d0315607d69f0d6edbe8a0f426b3770b5 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Thu, 13 Jun 2019 09:46:24 +0200 Subject: [PATCH] Fix extlinux disk UUID configuration --- vm.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vm.sh b/vm.sh index 4fb497e..8c1faa8 100755 --- a/vm.sh +++ b/vm.sh @@ -63,8 +63,8 @@ mount -t ext4 /dev/sda1 /mnt/boot setup-disk -m sys /mnt # Update boot-time volume information -BOOT_UUID=$(blkid -o value /dev/sda1 | head -1) -CRYPT_UUID=$(blkid -o value /dev/sda2 | head -1) +export BOOT_UUID=$(blkid -o value /dev/sda1 | head -1) +export CRYPT_UUID=$(blkid -o value /dev/sda2 | head -1) cat </mnt/etc/fstab /dev/vg0/root / ext4 rw,noatime,data=ordered 0 1 UUID=${BOOT_UUID} /boot ext4 rw,noatime,data=ordered 0 2 @@ -87,7 +87,7 @@ chroot /mnt setup-timezone -z Europe/Prague # Install basic system apk --no-cache add apache2-utils gettext wget https://repo.spotter.cz/vm.tar -O - | tar xf - -C /mnt -envsubst /boot/extlinux.conf +envsubst /mnt/boot/extlinux.conf chroot /mnt apk --no-cache add bridge ca-certificates curl e2fsprogs-extra gettext iptables kbd-misc libressl lxc postfix nginx openssh-server openssh-sftp-server util-linux wireguard-virt@vm wireguard-tools-wg@vm acme-sh@vm vmmgr@vm chroot /mnt newaliases mkdir -p /mnt/var/log/lxc