mirror of
https://gitlab.os-k.eu/os-k-team/os-k.git
synced 2023-08-25 14:03:10 +02:00
Bug with makefile that can erase host MBR (5)
This commit is contained in:
parent
7797b6b1fe
commit
343290407e
@ -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 !
|
||||
|
Loading…
Reference in New Issue
Block a user