Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540684 - openrc-0.13.9 breaks static devices setup because of changes in /etc/init.d/devfs
Summary: openrc-0.13.9 breaks static devices setup because of changes in /etc/init.d/d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-19 16:13 UTC by Thomas Stein
Modified: 2015-03-16 16:10 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Stein 2015-02-19 16:13:22 UTC
Hello.

Since openrc-0.13.9 i have a lot of missing devices and especially tty devices with wrong permissions. The system has no udev nor systemd installed. Just static devices. But obviousely the new /etc/init.d/devfs remounts a lot of things and causes the trouble. 

This ist the old devfs initscript which works:

#!/sbin/runscript
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
# Released under the 2-clause BSD license.

description="Mount system critical filesystems in /dev."

depend() {
	use dev-mount
	before dev
	keyword -prefix -vserver -lxc
}

start() {
	# Mount required stuff as user may not have then in /etc/fstab
	for x in \
		"mqueue /dev/mqueue 1777 ,nodev mqueue" \
		"devpts /dev/pts 0755 ,gid=5,mode=0620 devpts" \
		"tmpfs /dev/shm 1777 ,nodev shm" \
	; do
		set -- $x
		grep -Eq "[[:space:]]+$1$" /proc/filesystems || continue
		mountinfo -q $2 && continue

		if [ ! -d $2 ]; then
			mkdir -m $3 -p $2 >/dev/null 2>&1 || \
				ewarn "Could not create $2!"
		fi

		if [ -d $2 ]; then
			ebegin "Mounting $2"
			if ! fstabinfo --mount $2; then
				mount -n -t $1 -o noexec,nosuid$4 $5 $2
			fi
			eend $?
		fi
	done
	return 0
}

Do you have a hint or advise how to deal with that situation?

Thanks and best regards
t.

Reproducible: Always
Comment 1 William Hubbs gentoo-dev 2015-02-20 01:04:00 UTC
Please change the setting of skip_mount_dev to "yes" in
/etc/conf.d/devfs. That should take care of this issue.

Once you do that, please report back.


Thanks,

William
Comment 2 Thomas Stein 2015-02-20 07:51:50 UTC
Hello William.

Changing this setting to "yes" solves the issue, yes. Thanks. How do we make this fix permanent?

best regards
Comment 3 Thomas Stein 2015-03-16 11:02:27 UTC
Hello.

I think the bug can be closed. I misread /etc/conf.d/devfs for /etc/init.d/devfs. To set the setting in /etc/conf.d/devfs is a permanent fix of course.

cheers
t.