Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 412765 - genkernel initramfs fails to boot if /newroot/proc or /newroot/sys are missing
Summary: genkernel initramfs fails to boot if /newroot/proc or /newroot/sys are missing
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-20 10:48 UTC by Vladimir Berezhnoy
Modified: 2012-10-13 23:02 UTC (History)
0 users

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


Attachments
screenshot (2012-04-08 17.41.47.jpg,515.97 KB, image/jpeg)
2012-04-20 10:48 UTC, Vladimir Berezhnoy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Berezhnoy 2012-04-20 10:48:07 UTC
Created attachment 309607 [details]
screenshot

Though it is quite obvious that /proc and /sys directories are needed, it would still be good if initramfs could check and create these directories if they are missing, rather then just drop boot process and leave server in very unusuable state.
Comment 1 Xake 2012-04-24 06:56:37 UTC
This mostly because if your newroot is missing /proc and /sys then I would argue newroot is incorrectly set up, and should probably be setup correctly before booting to (if you forgot /proc and /sys, did you remember fstab?).
So for creating /proc and /sys you got a WONTFIX from me. Also, often newroot is RO in this sage, so that makes it more of a NoGo.


If there is something to "fix" here, it would be to have /proc and /sys added to sanity-tests for newroot, and drop to genkernel-prompt if missing, instead of just trying to boot to a probably broken newroot.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-10-13 23:02:25 UTC
We try to create /proc & /sys if the filesystem is read-write. If it's read-only, there is nothing we can do. If you need to fix your system, pass in rootflags=rw and it will be fixed.