diff options
author | Karl <x> | 2019-08-06 14:33:33 +0200 |
---|---|---|
committer | Karl <x> | 2019-08-06 14:33:33 +0200 |
commit | 49d21dd0da4175ab50a8cbdb7cc3ce8e3d138608 (patch) | |
tree | c83e90e55a16a95f965135a3e0f3815416d08555 | |
parent | 57ab46d6e8d99838869124233469b84ea6507e09 (diff) | |
download | void-install-49d21dd0da4175ab50a8cbdb7cc3ce8e3d138608.tar.gz void-install-49d21dd0da4175ab50a8cbdb7cc3ce8e3d138608.zip |
use LABEL in fstab
-rwxr-xr-x | base-install.sh | 8 | ||||
-rwxr-xr-x | void-install.sh | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/base-install.sh b/base-install.sh index 9494514..2e13ee5 100755 --- a/base-install.sh +++ b/base-install.sh @@ -4,6 +4,7 @@ # 1. Device. Eg. "/dev/sda" # 2. Volume groupe name. Eg. "void" # 3. Hostname. +# 4. Boot partition label. Must be locally unique. wget https://alpha.de.repo.voidlinux.org/static/xbps-static-latest.x86_64-musl.tar.xz sudo tar xf xbps-static-latest.x86_64-musl.tar.xz -C /mnt @@ -39,13 +40,12 @@ sudo mkdir /mnt/boot/grub sudo cp -f chroot-script.sh /mnt/home/chroot-script.sh sudo chroot /mnt /bin/bash -c "/bin/sh /home/chroot-script.sh" -# Get the PARTUUID of the EFI partition. -# The UUID is changed on first boot. -partuuid_efi=$(blkid -o value -s PARTUUID "$1"1) +# The UUID and PARTUUID is changed on first boot. +sudo e2label "$1"1 "$4" echo "tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0" | sudo tee /mnt/etc/fstab \ > /dev/null -echo "PARTUUID=$partuuid_efi /boot vfat defaults 0 2" \ +echo "LABEL=$4 /boot vfat defaults 0 2" \ | sudo tee -a /mnt/etc/fstab > /dev/null echo "/dev/mapper/$2-root / ext4 defaults,noatime 0 1" | sudo tee -a \ /mnt/etc/fstab > /dev/null diff --git a/void-install.sh b/void-install.sh index 6b2cfe2..c08a88b 100755 --- a/void-install.sh +++ b/void-install.sh @@ -4,7 +4,8 @@ # 1.: Device on which Void Linux must be installed, eg. "/dev/sda" # 2.: Volume group name for the new LVM, eg "void". # 3.: New hostname to use. +# 4.: Boot partition label. Must be locally unique. ./partitioning.sh "$1" ./lvm-setup.sh "$1" "$2" -./base-install.sh "$1" "$2" "$3" +./base-install.sh "$1" "$2" "$3" "$4" |