diff options
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydractl/provision | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision index 5c3e574..14a647d 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -204,8 +204,13 @@ else boot_device="$device"2 syst_device="$device"3 - # Use absolute path - reboot_device="`blkid | grep ^$boot_device: | cut -d ' ' -f 2 | sed -e 's/"//g'`" + # Use UUID + # Give time to devices table be updated + #sleep 2 + #reboot_device="`blkid | grep ^$boot_device: | cut -d ' ' -f 2 | sed -e 's/"//g'`" + + # Use device name + reboot_device="$boot_device" fi fi @@ -400,7 +405,8 @@ fi # Fstab. echo "Configuring fstab..." -echo "" | $SUDO tee $WORK/etc/fstab > /dev/null +hydra_sudo_run touch $WORK/etc/fstab +#echo "" | $SUDO tee $WORK/etc/fstab > /dev/null if [ "$swap_size" != "0" ]; then cat <<-EOF | $SUDO tee -a $WORK/etc/fstab > /dev/null /dev/mapper/swap none swap sw 0 0 |