aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-09-20 22:26:21 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-09-20 22:26:21 -0300
commitacf9da7a8f8c4d322a3748d56abcb788fd36b28f (patch)
tree558db3504f871a63691f1e2ce489f3a0600441c0 /share
parent7f0bf86913cea7929931b6b276e88cc55311d167 (diff)
downloadhydra-acf9da7a8f8c4d322a3748d56abcb788fd36b28f.tar.gz
hydra-acf9da7a8f8c4d322a3748d56abcb788fd36b28f.tar.bz2
Set proper /boot device at fstab during provision
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/provision3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 9bd8aac..e2ebbd9 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -150,6 +150,7 @@ hydra_safe_run parted -s -- $device set 3 lvm on
# Use absolute paths for devices.
boot_device="$device"2
syst_device="$device"3
+reboot_device="`blkid | grep ^$boot_device: | cut -d ' ' -f 2 | sed -e 's/"//g'`"
# Create volumes.
echo "Creating the needed disk volumes..."
@@ -366,7 +367,7 @@ if [ "$grub" == "y" ]; then
echo "Boot device setup..."
hydra_safe_run mkfs.ext4 $boot_device
hydra_safe_run mount $boot_device /tmp/debootstrap/boot
- echo "$boot_device /boot ext4 defaults,errors=remount-ro 0 2" >> /tmp/debootstrap/etc/fstab
+ echo "$reboot_device /boot ext4 defaults,errors=remount-ro 0 2" >> /tmp/debootstrap/etc/fstab
echo "Setting up GRUB..."
hydra_safe_run chroot /tmp/debootstrap/ apt-get install grub-pc -y