Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
devfs running before udev-mount
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Soultaker
n00b
n00b


Joined: 16 Jul 2007
Posts: 4

PostPosted: Sun Nov 11, 2012 3:03 pm    Post subject: devfs running before udev-mount Reply with quote

I noticed on my system devfs and udev-mount are started in the wrong order; devfs runs first, mounting /dev/pts and /dev/shm, but then udev-mount remounts /dev entirely, hiding the previously mounted filesystems (and then programs which rely on these filesystems don't work).

I've “fixed” the problem by adding RC_AFTER="udev-mount" to /etc/conf.d/devfs, which resolves the immediate problem, but leaves me wondering how this was supposed to work in the first place, and why nobody else seems to have this problem.

So the question is: how do you guys mount /dev/pts and /dev/shm, does the devfs init script run before or after udev-mount, and if so: why?
Back to top
View user's profile Send private message
megabaks
Apprentice
Apprentice


Joined: 22 Jan 2012
Posts: 237
Location: Russia && Saint-Petersburg

PostPosted: Sun Nov 11, 2012 10:51 pm    Post subject: Reply with quote

Code:
rc-update

Code:
/lib/rc/sh/gendepends.sh | grep devfs

my machine:
Code:
             bootmisc | boot                                                     
          consolefont | boot                                                     
           consolekit |      default                                             
                 dbus |      default                                             
                devfs |                                                   sysinit
        device-mapper | boot                                                     
                 dkms | boot                                                     
                dmesg |                                                   sysinit
                 fsck | boot                                                     
              hddtemp |      default                                             
             hostname | boot                                                     
              hwclock | boot                                                     
              keymaps | boot                                                     
            killprocs |                                   shutdown               
                local |      default netconsole nonetwork          single       
           localmount | boot                                                     
             mount-ro |                                   shutdown               
                 mtab | boot                                                     
             net.eth1 |      default netconsole                                 
               net.lo | boot                                                     
               procfs | boot                                                     
                 root | boot                                                     
            savecache |                                   shutdown               
               sysctl | boot                                                     
                sysfs |                                                   sysinit
            syslog-ng | boot         netconsole                                 
         termencoding | boot                                                     
       tmpfiles.setup | boot                                                     
                 udev |                                                   sysinit
           udev-mount |                                                   sysinit
              urandom | boot                                                     
                  xdm |      default                                             
[ root@desktop ] megabaks #
Code:
[ root@desktop ] megabaks # /lib/rc/sh/gendepends.sh | grep devfs
devfs
devfs iuse dev-mount
devfs ibefore dev
devfs keyword -prefix -vserver
hwclock ibefore acpid alsasound autofs bluetooth bootmisc cdemud consolefont consolekit cpudyn crypto-loop dbus devfs device-mapper dhcpcd distccd dkms dmcrypt dmesg dmeventd dnsextd fancontrol fsck functions.sh fuse git-daemon gkrellmd gpm hddtemp hdparm hostname hwclock kde-tmpfs keymaps killprocs lm_sensors local localmount lvm lvm-monitoring mdnsd mDNSResponderPosix metalog microcode_ctl modules mount-ro mpd mtab mysql nas ncpufreqd net.eth1 net.lo net.lo~ net.lo~.openrc.bak netmount noip nscd ntp-client ntpd numlock nvidia-smi oss pciparm pktcdvd portagexsd powernowd preload procfs pure-ftpd pwcheck pydoc-2.5 pydoc-2.6 pydoc-2.7 pydoc-3.1 pydoc-3.2 reboot.sh rfcomm root rsyncd saslauthd savecache shutdown.sh slpd smartd sshd svnserve swap swapfiles swclock sysctl sysfs syslog-ng termencoding tmpfiles.setup udev udev-mount urandom vboxdrv wpa_supplicant xdm xdm-setup
local iafter acpid alsasound autofs bluetooth bootmisc cdemud consolefont consolekit cpudyn crypto-loop dbus devfs device-mapper dhcpcd distccd dkms dmcrypt dmesg dmeventd dnsextd fancontrol fsck functions.sh fuse git-daemon gkrellmd gpm hddtemp hdparm hostname hwclock kde-tmpfs keymaps killprocs lm_sensors local localmount lvm lvm-monitoring mdnsd mDNSResponderPosix metalog microcode_ctl modules mount-ro mpd mtab mysql nas ncpufreqd net.eth1 net.lo net.lo~ net.lo~.openrc.bak netmount noip nscd ntp-client ntpd numlock nvidia-smi oss pciparm pktcdvd portagexsd powernowd preload procfs pure-ftpd pwcheck pydoc-2.5 pydoc-2.6 pydoc-2.7 pydoc-3.1 pydoc-3.2 reboot.sh rfcomm root rsyncd saslauthd savecache shutdown.sh slpd smartd sshd svnserve swap swapfiles swclock sysctl sysfs syslog-ng termencoding tmpfiles.setup udev udev-mount urandom vboxdrv wpa_supplicant xdm xdm-setup
procfs iuse modules devfs
swclock ibefore acpid alsasound autofs bluetooth bootmisc cdemud consolefont consolekit cpudyn crypto-loop dbus devfs device-mapper dhcpcd distccd dkms dmcrypt dmesg dmeventd dnsextd fancontrol fsck functions.sh fuse git-daemon gkrellmd gpm hddtemp hdparm hostname hwclock kde-tmpfs keymaps killprocs lm_sensors local localmount lvm lvm-monitoring mdnsd mDNSResponderPosix metalog microcode_ctl modules mount-ro mpd mtab mysql nas ncpufreqd net.eth1 net.lo net.lo~ net.lo~.openrc.bak netmount noip nscd ntp-client ntpd numlock nvidia-smi oss pciparm pktcdvd portagexsd powernowd preload procfs pure-ftpd pwcheck pydoc-2.5 pydoc-2.6 pydoc-2.7 pydoc-3.1 pydoc-3.2 reboot.sh rfcomm root rsyncd saslauthd savecache shutdown.sh slpd smartd sshd svnserve swap swapfiles swclock sysctl sysfs syslog-ng termencoding tmpfiles.setup udev udev-mount urandom vboxdrv wpa_supplicant xdm xdm-setup
[ root@desktop ] megabaks #
Code:
[ root@desktop ] megabaks # ls -1 /dev/pts/
1
2
[ root@desktop ] megabaks #
what i doing wrong?
Back to top
View user's profile Send private message
skoehler
n00b
n00b


Joined: 04 Aug 2002
Posts: 26

PostPosted: Wed Nov 21, 2012 12:38 am    Post subject: Re: devfs running before udev-mount Reply with quote

Soultaker wrote:
So the question is: how do you guys mount /dev/pts and /dev/shm, does the devfs init script run before or after udev-mount, and if so: why?


I just upgraded to openrc 0.11.5 and I have EXACTLY that problem. openrc 0.11.5 just went stable, so I assume lots of people will have the exact same problem VERY soon.
I assume, that udev-mount should provide dev-mount. On another gentoo I have, this is the case. However, on this machine, where /etc/init.d/udev-mount belongs to sys-fs/udev-init-scripts rather than sys-fs/udev, udev-mount does not provide dev-mount. Hence the error.

Upgrade to udev-init-scripts-17 fixed the problem for me.
Back to top
View user's profile Send private message
tmfries
n00b
n00b


Joined: 23 Nov 2012
Posts: 1

PostPosted: Fri Nov 23, 2012 4:01 pm    Post subject: Reply with quote

exact same problem for me. I had udev-init-scripts-16 keyworded so it wasn't updating it. changed it to 17-r1 in package.keywords and all is well. Thanks for info guys!
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2138
Location: $TERM

PostPosted: Mon Nov 26, 2012 3:17 pm    Post subject: Reply with quote

But in my system it's provided by udev --

Code:
equery belongs /etc/init.d/udev-mount       
 * Searching for /etc/init.d/udev-mount ...
sys-fs/udev-171-r8 (/etc/init.d/udev-mount)

_________________
Buy from companies supporting opensource -- IBM, Dell, HP, Hitachi, Google etc...
Disfavor companies supporting only Win -- Logitech, Epson, Adobe, Autodesk, Pioneer, Kingston, WD, Yahoo, MSI, XFX
My blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum