Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 494252 - openrc runs /etc/init.d/root after bootmisc and swap
Summary: openrc runs /etc/init.d/root after bootmisc and swap
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
: 495284 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-12-14 17:20 UTC by three sixes
Modified: 2014-01-10 21:12 UTC (History)
0 users

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


Attachments
rc.log (rc.log,2.29 KB, text/plain)
2014-01-10 21:10 UTC, William Hubbs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description three sixes 2013-12-14 17:20:44 UTC
openrc trys to load swap and fails then trys to run bootmisc and fails because jfs is read only until after fsck.jfs + root are ran.

Reproducible: Always

Steps to Reproduce:
make jfs + swap FILE gentoo system on 1 partition.



https://forums.gentoo.org/viewtopic-p-7461170.html#7461170

solved by adding need root to bootmisc & swap services in /etc/init.d/
Comment 1 William Hubbs gentoo-dev 2013-12-15 06:25:23 UTC
Bootmisc  is fixed in bug #493442.
Swap is meant to mount swap partitions, so I'm not sure that moving it in the boot sequence is necessary.
If you do not have a separate swap partition, you should delete swap from the boot runlevel by running:

rc-update del swap boot

Also, please undo the "need root" you added, then add the following to /etc/conf.d/bootmisc:

rc_after="root"

Let me know if these suggestions work.
Comment 2 William Hubbs gentoo-dev 2013-12-19 00:29:51 UTC
Closing due to no response from the reporter.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-12-25 15:15:16 UTC
*** Bug 495284 has been marked as a duplicate of this bug. ***
Comment 4 three sixes 2013-12-27 00:46:08 UTC
sorry i had not set myself to be mailed with responses from gentoo bugzilla.  (this should be default behavior, & WTF) (bugzilla is kinda messy and wonky)

"partitions" swap comes in file form also.  and if your file system is locked to read only until after fsck (and out of order operations trying to write to / before remounted RW & accessing swap & turning it on) if you have operations trying to swap your swap is also locked as read only.

http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/

https://bugs.gentoo.org/show_bug.cgi?id=493442

swap should absolutely enforce that / is RW and loaded after remount RW /for swap file users.

in general this is a very tangled situation, root should be ran directly after fsck, and thats all the extent of this story should be.
Comment 5 William Hubbs gentoo-dev 2014-01-10 21:10:24 UTC
Created attachment 367590 [details]
rc.log

This is a copy of my rc.log using openrc-9999.
Comment 6 William Hubbs gentoo-dev 2014-01-10 21:12:47 UTC
The boot sequence appears to be correct on my system using the latest
from OpenRC git, which will become OpenRC-0.13.
If you are comfortable testing with a live ebuild, feel free to test, or
test when OpenRC-0.13 is released and re-open if this is still an issue.

Thanks,

William