diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-07-03 13:39:21 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-07-03 13:39:21 -0300 |
commit | a8b706ccdab40635d7a48bcc85df3176cd24c0d8 (patch) | |
tree | dea6edbe053b36a9ca1bf697b84a930e58b1c227 /share | |
parent | 5b3da19575e06cd21b89f66b4e01bfc5c7181bc7 (diff) | |
download | hydra-a8b706ccdab40635d7a48bcc85df3176cd24c0d8.tar.gz hydra-a8b706ccdab40635d7a48bcc85df3176cd24c0d8.tar.bz2 |
Provision: fix reboot_device
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 |