The genkernel generated initramfs now mounts devpts however it does with the wrong mount options - it does so with "mode 600" instead of "mode 620". While this doesn't create a booting problem. The initscripts don't fix it, since it sees devpts still mounted so doesn't remount it. This create problems later on with libvirt / qemu - and results in a 'chardev: opening backend "pty" failed' Either the runmdev function in ./etc/initrd.scripts needs to mount devpts with the correct permissions or devpts needs to be unmounted before switch_root (or both) .
# fgrep -R devpts . ./defaults/initrd.scripts: mount -t devpts devpts /dev/pts || bad_msg "Failed to mount /dev/pts" ./netboot/linuxrc.x: mount devpts /dev/pts -t devpts # /dev/pts In "man mount" I find: A value of mode=620 and gid=5 makes "mesg y" the default on newly created PTYs. So is appending "mode=620,gid=5" what you want?
Yes - this the way its setup in /usr/share/openrc/runlevels/sysinit/devfs by default (as of openrc-0.8.3-r1), if devpts is not listed in /etc/fstab .
With this patch http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=4c0b4b18f8ceb634097e159d212782569acd3260 I now get # mount | grep pts devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620) If a soon next release would help, that can be done.
I built the latest git with the new patch, the pts permission are now correct and virt-manager now starts up VMs correctly
Cool, thanks for the feedback.
genkernel 3.4.18 including the fix has been released, closing.