Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 336726

Summary: baselayout-1_12 (rev. 3163): should check if devpts is already mounted
Product: Gentoo Linux Reporter: Amadeusz Żołnowski (RETIRED) <aidecoe>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 336723    
Bug Blocks:    
Attachments: rc-devpts-check-if-mounted.patch
rc-devpts-check-if-mounted-simplified.patch

Description Amadeusz Żołnowski (RETIRED) gentoo-dev 2010-09-10 14:58:09 UTC
Dracut mounts devpts and baselayout1's /sbin/rc tries to mount it too, but fails since it's already mounted. Because of this Dracut is unusable under baselayout1 and the fix is really easy to do.

Reproducible: Always

Steps to Reproduce:
1. emerge dracut
2. dracut -H
3. setup bootloader to use initramfs generated by dracut
4. reboot

Actual Results:  
baselayout1's /sbin/rc fails on mount devpts.

Expected Results:  
Should skip mounting devpts if it's already mounted (just like it's with /proc and /sys).
Comment 1 Amadeusz Żołnowski (RETIRED) gentoo-dev 2010-09-10 15:11:31 UTC
Created attachment 246718 [details, diff]
rc-devpts-check-if-mounted.patch

The patch uses function 'is_mounted' from 'functions.sh-is_mounted-is_clean.patch' posted in bug #336723 to check if devpts is already mounted.
Comment 2 Amadeusz Żołnowski (RETIRED) gentoo-dev 2010-09-22 17:49:06 UTC
Created attachment 248379 [details, diff]
rc-devpts-check-if-mounted-simplified.patch

Updated to changes in 'functions.sh*' patch (bug #336723).