Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13422 - baselayout-1.8.6.0's init dies if systems /var is located on a seperate partition
Summary: baselayout-1.8.6.0's init dies if systems /var is located on a seperate parti...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Highest blocker
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-07 10:49 UTC by Nicholas Wourms
Modified: 2003-04-01 16:34 UTC (History)
1 user (show)

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


Attachments
inittab (inittab,1.51 KB, text/plain)
2003-01-07 16:42 UTC, Nicholas Wourms
Details
fstab (fstab,1.78 KB, text/plain)
2003-01-08 09:12 UTC, Nicholas Wourms
Details
startup.log (startup.log,6.44 KB, text/plain)
2003-01-08 10:16 UTC, Nicholas Wourms
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Wourms 2003-01-07 10:49:00 UTC
The new location for init.d state information is located on /var now.  However, for 
systems with seperate /var partitions, this causes init to die.  This is because it tries to 
perform operations on this information *prior* to mounting the local filesystems 
contained in fstab.  The solution would be to mount all local filesystems before 
attempting to modify state information.
Comment 1 SpanKY gentoo-dev 2003-01-07 10:54:53 UTC
i'm pretty sure that mounting of disks is part of an init.d script and as such,
we'd need init.d to be accessible ...
so how about this solution:
create /mnt/.init.d or /.init.d temporarily, run all the init.d scripts until
/var/run/init.d is accessible, and then mount /var/run/init.d as tmpfs ...
finally we move everything from /.init.d to /var/run/init.d and umount /.init.d ...
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-07 15:36:42 UTC
It is because you did not update all ._cfg* files.  Attach your /etc/inittab.
Comment 3 Nicholas Wourms 2003-01-07 16:41:06 UTC
Actually I did update everything using etc-config 
Comment 4 Nicholas Wourms 2003-01-07 16:42:08 UTC
Created attachment 7069 [details]
inittab
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-07 17:00:39 UTC
Any chance for a log of the startup, fstab, etc please ?  (btw, to get it working,
you should be able to pass 'gentoo=tmpfs' as kernel option).  Log of failure
of course ...

Thanks.
Comment 6 Nicholas Wourms 2003-01-08 09:12:19 UTC
Created attachment 7089 [details]
fstab

Ok, here's my fstab, I'll post the error log shortly...
Comment 7 Nicholas Wourms 2003-01-08 10:16:00 UTC
Created attachment 7093 [details]
startup.log

Here is the best I could do in terms of capturing the errors.  I added
gentoo=tmpfs to my grub.conf, so what you see is with that enabled.  As you can
clearly see, mounting of local filesystems happens quite a bit later on.
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-08 14:18:57 UTC
Nicholas, forgot to tell you .. take out the gentoo=tmpfs, I didnt really fix
that part yet, as it will still try to mount a missing dir ...
Comment 9 Jan Schubert 2003-01-09 16:00:40 UTC
It took me 2 hrs to get my laptop back to work after emerging the new baselayout, now 
i'm using 1.8.5.8. again... 
Just to let you know and prove that emerging this new baselayout will cause some 
trouble. 
 
PS: Beside some other things I've found that after emerging the new one i had 
sofscripts.new and softlevel in my root-dir (i guess they should be in /var/state/init.d 
instead). HTH 
Comment 10 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-14 00:09:08 UTC
1)  I *did* post a mail that said if you are not interested to maybe experience
    some difficulty, and know how to fix things, DO NOT MERGE THIS.  Its also
    packaged masked ....

2)  I cannot resolve things if you do not try to help in tracking the problem.

Nicholas,  Ill try to get to fixing the gentoo=tmpfs thing tonight, and get that
commited.  With the other fixes you tested for me the other day, we should have
something much more stable, thanks.
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-17 05:22:01 UTC
Nicholas, can you give 1.8.6.2 a test run ?
Comment 12 Seemant Kulleen (RETIRED) gentoo-dev 2003-02-13 12:56:28 UTC
from the tests that I, personally, have done, and the group of 17 volunteers when this was first put into masked portage, it seems to do quite well, provided all the files are updated in /etc.  In the -r12 of portage, however, that itself seems to be a possible issue...
Comment 13 Nicholas Wourms 2003-02-13 13:59:39 UTC
works for me
Comment 14 Nicholas Wourms 2003-04-01 16:34:12 UTC
This one is fixed, closing it out.