shutdown: call "losetup -D" on shutdown
parent
6320d072a1
commit
d8b627b9dc
|
|
@ -13,7 +13,7 @@ depends() {
|
|||
|
||||
install() {
|
||||
local _d
|
||||
dracut_install umount poweroff reboot halt
|
||||
dracut_install umount poweroff reboot halt losetup
|
||||
dracut_install -o kexec
|
||||
inst "$moddir/shutdown.sh" "$prefix/shutdown"
|
||||
[ -e "${initdir}/lib" ] || mkdir -m 0755 -p ${initdir}/lib
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ umount_a() {
|
|||
fi
|
||||
fi
|
||||
done </proc/mounts
|
||||
losetup -D
|
||||
[ "$_did_umount" = "y" ] && return 0
|
||||
return 1
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue