diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-03-30 06:33:37 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-04-02 00:29:55 +0200 |
commit | fc7097a016472a084bd8428c027e60d5dfd3aa40 (patch) | |
tree | 392cf4b8cff22a887fd01af3ebf8d39e2cb1ee49 /shutdown | |
parent | 5a7040d717646d31833880dae2e61daec4ad2e6c (diff) | |
download | mkinitcpio-fc7097a016472a084bd8428c027e60d5dfd3aa40.tar.gz mkinitcpio-fc7097a016472a084bd8428c027e60d5dfd3aa40.tar.xz |
shutdown: detach all loop devices before umounting
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'shutdown')
-rwxr-xr-x | shutdown | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -55,6 +55,12 @@ disassemble() { done } +printf '%s\n' 'Detaching loop devices.' + +for loop in loop*/loop; do + [ -e "$loop" ] && losetup -d "${loop%/loop}" +done + printf '%s\n' "Unmounting all devices." # unmount everything in /oldroot |