FS#14437 - [initscripts] udev deamon not started in OpenVZ container

Attached to Project: Arch Linux
Opened by Henk van de Kamer (hvdkamer) - Thursday, 23 April 2009, 15:28 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 07 June 2009, 14:23 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Thomas Bächler (brain0)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
A standard OpenVZ container has no /sys/block directory which is a check in the rc/sysinit script for starting udev. Without udev the ptmx device is not created which leads to alle kind of weird problems...


Additional info:
[root@ve62 /]# pacman -Qo /etc/rc.sysinit
/etc/rc.sysinit is owned by initscripts 2009.03-2


Steps to reproduce:
Create an OpenVZ container with a Arch Linux template. Try to access this:

hoefnix2:~# vzctl enter 62
enter into CT 62 failed
Unable to open pty: No such file or directory


Solution:
To see if sysfs is present check for the directory /sys/class or /sys/devices.
This task depends upon

Closed by  Thomas Bächler (brain0)
Sunday, 07 June 2009, 14:23 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in git.
Comment by Gerardo Exequiel Pozzi (djgera) - Saturday, 30 May 2009, 20:44 GMT
Others valid solutions:

* check the error level of mount sysfs and setting a variable like $HAVE_SYSFS
* check for sysfs in /proc/filesystems
Comment by Thomas Bächler (brain0) - Saturday, 30 May 2009, 20:55 GMT
Or, don't check at all. We explicitly mount sysfs, Arch does not even work on kernels without sysfs support. This is a leftover from times when Arch still worked with the 2.4 kernel, we might as well kill it.

Loading...