Bug 51848

Summary: mkinitrd doesn't allow devfs anymore
Product: [Retired] Red Hat Linux Reporter: Nils Philippsen <nphilipp>
Component: mkinitrdAssignee: Erik Troan <ewt>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-05-21 23:15:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch allowing initrds to work with devfs kernels none

Description Nils Philippsen 2001-08-15 20:01:41 UTC
Initial ramdisks produced with recent mkinitrds will not boot devfs
enabled kernels properly.

The latest version I tried this on is 3.1.6-1.

Steps to Reproduce:
1. Compile kernel with devfs enabled
2. mkinitrd
3. reboot

I'll attach a patch containing two changes:

- nash/mkrootdev() now renames /dev/root (which is already there in
  devfs) prior to making the root device. Perhaps not mkrootdev()ing
  at all is a better way.
- mkinitrd now accepts the --devfs switch which will mount the devfs to
  /dev after pivot_root()ing.

Comment 1 Nils Philippsen 2001-08-15 20:02:43 UTC
Created attachment 28015 [details]
Patch allowing initrds to work with devfs kernels

Comment 2 Nils Philippsen 2001-08-15 20:04:50 UTC
Umm forgot something:

Of course, nash/mkrootdev only renames /dev/root if /dev is a devfs (checks
for existence of /dev/.devfsd).

Comment 3 Erik Troan 2002-05-21 23:12:21 UTC
Could you grab the latest mkinitrd out of CVS and update your patches. Email me
the final patches and I'll integrate them asap. I've marked a couple of bugs
duplicates of this one; they have patches that may or may not help.

Comment 4 Erik Troan 2002-05-21 23:14:02 UTC
*** Bug 62719 has been marked as a duplicate of this bug. ***

Comment 5 Erik Troan 2002-05-21 23:15:38 UTC
*** Bug 55540 has been marked as a duplicate of this bug. ***

Comment 6 Erik Troan 2002-06-20 02:32:45 UTC
I guess you don't want to fix this... As devfs has race conditions, etc
according to everyone I've talked to I'm not going to worry.