From b0064a62765f6109d3f2ac1a831799c63515969a Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 17 Aug 2018 20:40:43 -0300 Subject: Use UUID for boot device --- share/hydractl/provision | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'share') 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 -- cgit v1.2.3