Don't ever use umount -l if you want to act on the device afterwards (e.g. by using kpartx -d)
This commit is contained in:
parent
2c45a24efd
commit
c7d9dc0e78
|
@ -67,10 +67,10 @@ cleanup_noexit() {
|
||||||
[ -n "${CACHEDIR}" ] && {
|
[ -n "${CACHEDIR}" ] && {
|
||||||
sync
|
sync
|
||||||
sudo umount -l ${CACHEDIR}/mnt/{dev,proc,sys}
|
sudo umount -l ${CACHEDIR}/mnt/{dev,proc,sys}
|
||||||
sudo umount -l ${CACHEDIR}/mnt
|
sudo umount ${CACHEDIR}/mnt
|
||||||
sudo umount -l ${CACHEDIR}/lower
|
sudo umount ${CACHEDIR}/lower
|
||||||
sudo umount -l ${CACHEDIR}/upper
|
sudo umount ${CACHEDIR}/upper
|
||||||
sudo umount -l ${CACHEDIR}/efimnt
|
sudo umount ${CACHEDIR}/efimnt
|
||||||
sudo kpartx -d ${CACHEDIR}/installer.img &>/dev/null || exit
|
sudo kpartx -d ${CACHEDIR}/installer.img &>/dev/null || exit
|
||||||
for DEV in $EFI_DEV $ROOTFS_DEV $OVERLAY_DEV; do
|
for DEV in $EFI_DEV $ROOTFS_DEV $OVERLAY_DEV; do
|
||||||
[ -e "/dev/mapper/`basename $DEV`" ] && {
|
[ -e "/dev/mapper/`basename $DEV`" ] && {
|
||||||
|
|
Loading…
Reference in New Issue