From: Silvio Rhatto Date: Fri, 17 Aug 2018 23:40:43 +0000 (-0300) Subject: Use UUID for boot device X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=b0064a62765f6109d3f2ac1a831799c63515969a;p=hydra.git Use UUID for boot device --- diff --git a/share/hydractl/provision b/share/hydractl/provision index 32a2b7a..24796a9 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -208,10 +208,11 @@ else # 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'`" + reboot_device="`blkid | grep ^$boot_device: | cut -d ' ' -f 2 | sed -e 's/"//g'`" - # Use device name - reboot_device="$boot_device" + # Use device name: might lead to wrong results: + # During install boot_device might be /dev/sdb2, but on but be /dev/sda2 + #reboot_device="$boot_device" fi fi