Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 336726 - baselayout-1_12 (rev. 3163): should check if devpts is already mounted
Summary: baselayout-1_12 (rev. 3163): should check if devpts is already mounted
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
Depends on: 336723
  Show dependency tree
Reported: 2010-09-10 14:58 UTC by Amadeusz Żołnowski (RETIRED)
Modified: 2010-09-26 22:10 UTC (History)
0 users

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

rc-devpts-check-if-mounted.patch (rc-devpts-check-if-mounted.patch,942 bytes, patch)
2010-09-10 15:11 UTC, Amadeusz Żołnowski (RETIRED)
Details | Diff
rc-devpts-check-if-mounted-simplified.patch (rc-devpts-check-if-mounted-simplified.patch,935 bytes, patch)
2010-09-22 17:49 UTC, Amadeusz Żołnowski (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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]

The patch uses function 'is_mounted' from '' 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]

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