Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26256 - Problems with umounting loop mounts on shutdown (/etc/init.d/halt.sh)
Summary: Problems with umounting loop mounts on shutdown (/etc/init.d/halt.sh)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-09 03:27 UTC by Kalin KOZHUHAROV
Modified: 2003-08-10 14:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for /etc/init.d/halt.sh (umount_loop.patch,1.45 KB, patch)
2003-08-09 03:29 UTC, Kalin KOZHUHAROV
Details | Diff
Instead of umounting /dev/loop0, /dev/loop1 etc umount what it points to (umount_loop-r2.patch,1.31 KB, patch)
2003-08-09 04:38 UTC, Kalin KOZHUHAROV
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kalin KOZHUHAROV 2003-08-09 03:27:09 UTC
I have /usr/portage mounted on a loop device (see
http://forums.gentoo.org/viewtopic.php?p=445092&highlight=#445092) and on every
(occasional) reboot a get several error messages while trying to umount it.

Poking around, I found the solution, at least for me, so please audit this patch
and probably include it in the next release of the sys-apps/baselayout ...

I use the marked stable sys-apps/baselayout-1.8.6.8-r1 at the moment.
Comment 1 Kalin KOZHUHAROV 2003-08-09 03:29:43 UTC
Created attachment 15796 [details, diff]
Patch for /etc/init.d/halt.sh

For me this works, but please test it on other platforms.
Comment 2 Kalin KOZHUHAROV 2003-08-09 04:36:15 UTC
Comment on attachment 15796 [details, diff]
Patch for /etc/init.d/halt.sh

Ooops... Seems that |sort -r is needed when you have several mounts on in
onother...
Comment 3 Kalin KOZHUHAROV 2003-08-09 04:38:49 UTC
Created attachment 15798 [details, diff]
Instead of umounting /dev/loop0, /dev/loop1 etc umount what it points to

Fixed my own patch not to remove the pipe to sort -r
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-10 14:24:46 UTC
Fixed in CVS, thanks.