diff options
author | Karl <x> | 2019-08-07 10:31:46 +0200 |
---|---|---|
committer | Karl <x> | 2019-08-07 10:31:46 +0200 |
commit | 51442810f036947b9f7ab2ba5ff95daafcb1fdde (patch) | |
tree | 159699374c81ac26a15ff46def48468a1576d8aa | |
parent | 8e9a340e5d662071390c4b9f74f1f283ad78df76 (diff) | |
download | void-install-51442810f036947b9f7ab2ba5ff95daafcb1fdde.tar.gz void-install-51442810f036947b9f7ab2ba5ff95daafcb1fdde.zip |
fstab before reconfigure
-rwxr-xr-x | base-install.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/base-install.sh b/base-install.sh index e230a4c..88e1e55 100755 --- a/base-install.sh +++ b/base-install.sh @@ -36,10 +36,6 @@ sudo cp -f libc-locales /mnt/etc/default/libc-locales sudo mkdir /mnt/boot/grub -# Chroot and run final configuration script: -sudo cp -f chroot-script.sh /mnt/home/chroot-script.sh -sudo chroot /mnt /bin/bash -c "/bin/sh /home/chroot-script.sh" - # The UUID and PARTUUID is changed on first boot. We use a LABEL. echo "tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0" | sudo tee /mnt/etc/fstab \ > /dev/null @@ -50,6 +46,10 @@ echo "/dev/mapper/$2-root / ext4 defaults,noatime 0 1" | sudo tee -a \ echo "/dev/mapper/$2-swap none swap defaults 0 1" | sudo tee -a /mnt/etc/fstab \ > /dev/null +# Chroot and run final configuration script: +sudo cp -f chroot-script.sh /mnt/home/chroot-script.sh +sudo chroot /mnt /bin/bash -c "/bin/sh /home/chroot-script.sh" + # Unmounting the boot partition to write the label sudo umount "$1"1 sudo fatlabel "$1"1 "$4" |