projects
/
live-boot-grml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
204da27
)
Improving robustness of fromiso cleanup process with is_mountpoint (Closes: #668100).
author
Tails developers
<amnesia@boum.org>
Tue, 10 Apr 2012 09:48:29 +0000
(11:48 +0200)
committer
Daniel Baumann
<daniel@debian.org>
Mon, 4 Jun 2012 15:39:49 +0000
(17:39 +0200)
scripts/live
patch
|
blob
|
history
diff --git
a/scripts/live
b/scripts/live
index
322656e
..
371fac4
100755
(executable)
--- a/
scripts/live
+++ b/
scripts/live
@@
-1595,8
+1595,14
@@
mountroot ()
# rid of it when running from RAM
if [ -n "$FROMISO" ] && [ "${TORAM}" ]
then
- losetup -d /dev/loop0
- grep -q /live/fromiso /proc/mounts && umount /live/fromiso
+ losetup -d /dev/loop0
+
+ if is_mountpoint /live/fromiso
+ then
+ umount /live/fromiso
+ rmdir --ignore-fail-on-non-empty /live/fromiso \
+ >/dev/null 2>&1 || true
+ fi
fi
if [ -n "${MODULETORAMFILE}" ] || [ -n "${PLAIN_ROOT}" ]