diff options
author | Karl <x> | 2019-08-06 15:09:35 +0200 |
---|---|---|
committer | Karl <x> | 2019-08-06 15:09:35 +0200 |
commit | 472665198f89567b2ceaf50af8c812736c826726 (patch) | |
tree | 3908290a0e799b6dbcf663508e310643c28335e8 | |
parent | 49d21dd0da4175ab50a8cbdb7cc3ce8e3d138608 (diff) | |
download | void-install-472665198f89567b2ceaf50af8c812736c826726.tar.gz void-install-472665198f89567b2ceaf50af8c812736c826726.zip |
fatlabel for the efi label
-rwxr-xr-x | base-install.sh | 8 | ||||
-rwxr-xr-x | void-install.sh | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/base-install.sh b/base-install.sh index 2e13ee5..e230a4c 100755 --- a/base-install.sh +++ b/base-install.sh @@ -40,9 +40,7 @@ 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" -# The UUID and PARTUUID is changed on first boot. -sudo e2label "$1"1 "$4" - +# 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 echo "LABEL=$4 /boot vfat defaults 0 2" \ @@ -52,3 +50,7 @@ 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 +# Unmounting the boot partition to write the label +sudo umount "$1"1 +sudo fatlabel "$1"1 "$4" + diff --git a/void-install.sh b/void-install.sh index c08a88b..1aa5eac 100755 --- a/void-install.sh +++ b/void-install.sh @@ -4,7 +4,7 @@ # 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. +# 4.: Boot partition label. Must be locally unique. No longer than 11 bytes. ./partitioning.sh "$1" ./lvm-setup.sh "$1" "$2" |