Commit 27b07b2d authored by Michael Shigorin's avatar Michael Shigorin

tar2fs: ensure proper cwd when cleaning up

...so that umounts can happen reliably. Reported-by: 's avatarGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
parent 45a2b090
......@@ -134,6 +134,7 @@ fi
exit_handler() {
rc=$?
cd /
if [ -n "$ROOTFS" ]; then
umount ${BOOTFS:+"$BOOTFS"} "$ROOTFS"{/dev,/proc,/sys,}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment