From 343290407ede1d9928b6957438edc4839c84b35a Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Wed, 5 Feb 2020 22:58:31 +0100 Subject: [PATCH] Bug with makefile that can erase host MBR (5) --- build/install-os-k.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/install-os-k.sh b/build/install-os-k.sh index cfe6b19..e4e440e 100755 --- a/build/install-os-k.sh +++ b/build/install-os-k.sh @@ -44,6 +44,11 @@ fi mountpoint=$(udisksctl info -b $lpblock | grep MountPoint | cut -d ':' -f 2 | sed 's/ //g') +if [ -z $mountpoint ]; +then + mountpoint=$(udisksctl mount -b $lpblock | cut -d ' ' -f 2 | sed 's/\.//g') +fi + if [ -z $mountpoint ]; then echo Impossible to mount the image at $lpblock. Fatal error !