shutdown: call "losetup -D" on shutdown

master
Harald Hoyer 2013-02-05 11:02:05 +01:00
parent 6320d072a1
commit d8b627b9dc
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -46,6 +46,7 @@ umount_a() {
fi
fi
done </proc/mounts
losetup -D
[ "$_did_umount" = "y" ] && return 0
return 1
}