Bug 152286

Summary: nash switchroot leave hidden mount points
Product: [Fedora] Fedora Reporter: Kasper Dupont <bugzilla>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-03-30 16:43:24 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:

Description Kasper Dupont 2005-03-27 13:07:40 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114

Description of problem:
The init script generated by mkinitrd ends with a switchroot call followed by a umount call. A succesfull call of switchroot will perform an execve system call causing the script to terminate, so the umount call will never be performed. The switchroot call leaves a few mountpoints hidden under the root, which means they are impossible to umount later during boot.

Version-Release number of selected component (if applicable):
mkinitrd-4.1.18-2

How reproducible:
Always

Steps to Reproduce:
1. grep ' /\(dev\|proc\)\? ' /proc/mounts


Actual Results:  rootfs / rootfs rw 0 0
/proc /proc proc rw,nodiratime 0 0
none /dev tmpfs rw 0 0
/dev/root / reiserfs rw 0 0
none /dev tmpfs rw 0 0
/proc /proc proc rw,nodiratime 0 0


Expected Results:  /dev/root / reiserfs rw 0 0
none /dev tmpfs rw 0 0
/proc /proc proc rw,nodiratime 0 0


Additional info:

Comment 1 Peter Jones 2005-03-30 16:43:24 UTC
Fixed in CVS, should hit tonight's rawhide build.