Bug with makefile that can erase host MBR (6)
This commit is contained in:
parent
960a3c97c8
commit
66bb849b8c
|
@ -65,3 +65,11 @@ sync
|
||||||
|
|
||||||
echo ${CL2}[install-os-k.sh]${NC} Unmount image... \(udisksctl\)${CL3}
|
echo ${CL2}[install-os-k.sh]${NC} Unmount image... \(udisksctl\)${CL3}
|
||||||
udisksctl unmount --no-user-interaction -b $lpblock
|
udisksctl unmount --no-user-interaction -b $lpblock
|
||||||
|
|
||||||
|
lpblock=$(/sbin/losetup -j $1 | cut -d ':' -f 1)
|
||||||
|
if [ -z $lpblock ];
|
||||||
|
then
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
udisksctl loop-delete -b $lpblock
|
||||||
|
|
Loading…
Reference in New Issue