Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180662 - /etc/init.d/halt.sh need to detach loopback devices not only when there is mounted ones
Summary: /etc/init.d/halt.sh need to detach loopback devices not only when there is mo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-02 20:41 UTC by Yaroslav Isakov
Modified: 2007-10-15 11:24 UTC (History)
0 users

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


Attachments
halt.sh.patch (halt.sh.patch,513 bytes, patch)
2007-06-02 20:42 UTC, Yaroslav Isakov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yaroslav Isakov 2007-06-02 20:41:35 UTC
Hello, recently I found mdadm and experiment with it. Unfortunately, I found that if I forgot to stop raid and detach all loopback devices that I used to construct it, then halt.sh failed to remount root FS read-only. It's because halt.sh only detach mounted loopback devices. So, I create a patch for halt.sh to detach any loopback devices after all addons stopped (it also works for lvm2)
Comment 1 Yaroslav Isakov 2007-06-02 20:42:57 UTC
Created attachment 120980 [details, diff]
halt.sh.patch

Patch for /etc/init.d/halt.sh
Comment 2 Yaroslav Isakov 2007-06-14 20:41:31 UTC
Anybody interested?
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-07-09 23:05:13 UTC
baselayout-2 has a vastly different approach to unmounting and shutting down.
Could you test it and see if it needs patching for your setup?
Comment 4 Roy Marples (RETIRED) gentoo-dev 2007-10-15 11:24:03 UTC
Re-open if baselayout-2.0.0_rc5 doesn't fix this for you.