Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80231 - dm-crypt loopback support in baselayout for files on filesystems mounted by localmount
Summary: dm-crypt loopback support in baselayout for files on filesystems mounted by l...
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Benjamin Smee (strerror) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-31 10:35 UTC by Mike Auty (RETIRED)
Modified: 2005-09-01 08:17 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Auty (RETIRED) gentoo-dev 2005-01-31 10:35:01 UTC
The current patch to baselayout attempts to setup dm-crypt loopback systems during the checkfs phase, so that they can eventually be mounted by localmount.  However, suppose the loopback file exists on a filesystem not initially mounted (such as /home, or /var and so on).  It won't get setup properly during the checkfs phase since /home hasn't been mounted, and if it did get loaded during the localmount phase, what happens to possible loopback systems within that?  It seems some form of sorting is needed to figure out the best order to mount and cryptsetup the various bits that need starting up.  This is mostly here as a marked so that people getting errors can find out why.  Hopefully one day though, this may get fixed...

Reproducible: Always
Steps to Reproduce:
1. Make a loopback system, store the file on a secondary mount point (/var, /usr or something).
2. Change the config files as normal, so that the loopback should be loaded.
3. Reboot.

Actual Results:  
The loopback file could not be found because the filesystem it was on had not
been mounted yet.

Expected Results:  
The ordering be rearranged so that everything that needed to be mounted was and
the loopback system be mounted as well.
Comment 1 Mike Auty (RETIRED) gentoo-dev 2005-01-31 10:35:55 UTC
Additional comments can be found from the original patch, at http://bugs.gentoo.org/show_bug.cgi?id=73598 .
Comment 2 Benjamin Smee (strerror) (RETIRED) gentoo-dev 2005-09-01 08:17:17 UTC
This is something that requires a fairly wide ranging changes and is not within
scope for me right now as I don't use loopback filesystems myself.