diff options
author | Harald Hoyer <harald@redhat.com> | 2013-02-05 11:02:05 +0100 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-02-05 11:04:02 +0100 |
commit | d8b627b9dcd12c5d4a967f7e8143ecf63d75be1f (patch) | |
tree | 800f65382d6ce5fe64d8d0b75edb160b676413d0 /modules.d/99shutdown | |
parent | 6320d072a138afe7b7150e51240803b52d734ea4 (diff) | |
download | dracut-d8b627b9dcd12c5d4a967f7e8143ecf63d75be1f.tar.gz dracut-d8b627b9dcd12c5d4a967f7e8143ecf63d75be1f.tar.bz2 dracut-d8b627b9dcd12c5d4a967f7e8143ecf63d75be1f.zip |
shutdown: call "losetup -D" on shutdown
Diffstat (limited to 'modules.d/99shutdown')
-rwxr-xr-x | modules.d/99shutdown/module-setup.sh | 2 | ||||
-rwxr-xr-x | modules.d/99shutdown/shutdown.sh | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/modules.d/99shutdown/module-setup.sh b/modules.d/99shutdown/module-setup.sh index 16e727ce..fb0b7ada 100755 --- a/modules.d/99shutdown/module-setup.sh +++ b/modules.d/99shutdown/module-setup.sh @@ -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 diff --git a/modules.d/99shutdown/shutdown.sh b/modules.d/99shutdown/shutdown.sh index bab81f20..202ecb1c 100755 --- a/modules.d/99shutdown/shutdown.sh +++ b/modules.d/99shutdown/shutdown.sh @@ -46,6 +46,7 @@ umount_a() { fi fi done </proc/mounts + losetup -D [ "$_did_umount" = "y" ] && return 0 return 1 } |