Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294097 - sys-fs/udev-147: warns the user to add udev-postmount to default runlevel even if it has been added
Summary: sys-fs/udev-147: warns the user to add udev-postmount to default runlevel eve...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
: 368041 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-22 20:46 UTC by peng shao
Modified: 2013-01-20 10:31 UTC (History)
8 users (show)

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


Attachments
/etc/init.d/udev (udev,6.29 KB, text/plain)
2009-11-23 12:36 UTC, peng shao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description peng shao 2009-11-22 20:46:59 UTC
During the system boot process, I got the following messages

*Mounting /dev
*You should add udev-postmount service to your default runlevel
*Starting udevd
*Populating /dev/with existing devices through uevents
*Waiting for uevents to be processed..
udev-work[2094]: device node '/dev/mapper/control' already exits, link to'/dev/mapper/control' will not overwrite it 

then the boot process continues and by now I haven't noticed any negative effects of these messages, it looks like harmless. I tried udev-146, then the second mesage "....device node...." disappeared, but the first one remained there---it still complained that I should add udev-postmount to default runlevel. I checked several times and am absolutely sure udev-postmount is actually in default. :(

Reproducible: Always




emerge --info 
Portage 2.1.7.6 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r0, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 22 Nov 2009 17:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.1.0_beta1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.cyberuse.com/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avahi bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv jpeg ldap libnotify mad mikmod mmx modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png policykit ppds pppd python qt3support quicktime readline reflection sdl session spell spl sql sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vim-syntax vorbis webkit x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ice1712" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


rc-update show
              keymaps | boot                                          
           consolekit |                         default               
             net.eth0 |                         default               
                 dbus |                         default               
                devfs |                                        sysinit
       avahi-dnsconfd |                         default               
              urandom | boot                                          
             mount-ro |      shutdown                                 
                  xdm |                         default               
              modules | boot                                          
                dmesg |                                        sysinit
           vixie-cron |                         default               
            savecache |      shutdown                                 
          consolefont | boot                                          
                 sshd |                         default               
                cupsd |                         default               
                 mtab | boot                                          
                local |               nonetwork default               
               net.lo | boot                                          
                 root | boot                                          
               procfs | boot                                          
                 fsck | boot                                          
                 swap | boot                                          
       udev-postmount |                         default               
         termencoding | boot                                          
            killprocs |      shutdown                                 
                 udev |                                        sysinit
            syslog-ng |                         default               
              hwclock | boot                                          
                 hald |                         default               
             hostname | boot                                          
             bootmisc | boot                                          
             netmount |                         default               
           localmount | boot                                          
            alsasound | boot                                          
               sysctl | boot   

[ebuild   R   ] sys-fs/udev-147  USE="devfs-compat extras (-selinux) -test" 0 kB
[ebuild   R   ] sys-apps/openrc-0.5.2-r2  USE="ncurses pam unicode -debug" 0 kB
Comment 1 Matthias Schwarzott gentoo-dev 2009-11-23 11:02:29 UTC
Very strange. Please attach your /etc/init.d/udev file. If your file contains this in _start():
       if [ ! -e /etc/runlevels/${RC_DEFAULTLEVEL:-default}/udev-postmount ]; then
                ewarn "You should add udev-postmount service to your default runlevel."
        fi
then add this in the line before "if":
echo default runlevel: ${RC_DEFAULTLEVEL}
Comment 2 peng shao 2009-11-23 12:36:48 UTC
Created attachment 210984 [details]
/etc/init.d/udev
Comment 3 peng shao 2009-11-23 12:37:18 UTC
(In reply to comment #1)
> Very strange. Please attach your /etc/init.d/udev file. If your file contains
> this in _start():
>        if [ ! -e /etc/runlevels/${RC_DEFAULTLEVEL:-default}/udev-postmount ];
> then
>                 ewarn "You should add udev-postmount service to your default
> runlevel."
>         fi
> then add this in the line before "if":
> echo default runlevel: ${RC_DEFAULTLEVEL}
> 

Dear Matthias, I looked into /etc/init.d/udev and add that line to the position suggested then did a restart, but the strange message remains there. I posted my /etc/init.d/udev file in the attachment(without that line added). If my memory serves me I haven't touch it at all, just leave it as default since I have no need to modify it... Thanks.
Comment 4 peng shao 2009-11-23 13:00:34 UTC
Sorry that file actually includes the line---I forgot to remove it before uploading. Sorry for that.

By the way, I tried several versions of udev before 147, and none of them produced the second message about the existence of /dev/mapper/control, is this warning-like message a new feature of 147, or something wrong? Thanks.

Comment 5 peng shao 2009-11-23 13:31:00 UTC
(In reply to comment #1)
> Very strange. Please attach your /etc/init.d/udev file. If your file contains
> this in _start():
>        if [ ! -e /etc/runlevels/${RC_DEFAULTLEVEL:-default}/udev-postmount ];
> then
>                 ewarn "You should add udev-postmount service to your default
> runlevel."
>         fi
> then add this in the line before "if":
> echo default runlevel: ${RC_DEFAULTLEVEL}
> 

Sorry, I did a restart again and fount the first time I missed the important output of echo. I bet you won't believe it :) It is 

default runlevel: shutdown

I did touch /etc/runlevels/shutdown/udev-postmount, and found this worked for the warning message "You should ...."

It looks like some variables are messed up on my machine....
Comment 6 Matthias Schwarzott gentoo-dev 2009-11-23 16:00:58 UTC
(In reply to comment #5)
> (In reply to comment #1)
> > then add this in the line before "if":
> > echo default runlevel: ${RC_DEFAULTLEVEL}
> > 
> 
> Sorry, I did a restart again and fount the first time I missed the important
> output of echo. I bet you won't believe it :) It is 
> 
> default runlevel: shutdown
> 
Looks strange.
@Roy: Please have a look.

> I did touch /etc/runlevels/shutdown/udev-postmount, and found this worked for
> the warning message "You should ...."
> 
> It looks like some variables are messed up on my machine....
> 

Comment 7 peng shao 2009-11-24 11:44:16 UTC
I did a simple test: during the boot process, I press "I" to call the interactive boot, and before I start any service I exit to shell at first, then run "echo $RC_DEFAULTLEVEL" to test what the value of this variable is. I list my result in the following. Here the format of the result is "service:shutdown/default", which means BEFORE I start the service, the value of $RC_DEFAULTLEVEL is shutdown/default.

sysfs:shutdown
udev-mount:shutdown
dmesg:shutdown
udev:shutdown
devfs:shutdown
hwclock:default
....

It looks like after devfs was started the variable was set to the expected default 

Thanks
Comment 8 Nikolaos Chatzidakis 2009-12-03 12:57:17 UTC
Any solution for this issue...?
Comment 9 peng shao 2009-12-10 06:48:48 UTC
(In reply to comment #8)
> Any solution for this issue...?
> 

No solution yet.. :(
I opened a thread in the forum, looks like someone has more weird phenomenon on this issue :(
Comment 10 Leho Kraav (:macmaN @lkraav) 2010-09-04 20:43:02 UTC
i am also running into this warning, except for me RC_DEFAULTLEVEL has value "backup", a custom runlevel i've created. why it gets assigned to that variable, i have no idea. softlevel kernel parameter related perhaps? i cannot recall if i had that set when debugged this.
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2013-01-20 10:29:37 UTC
This is no longer problem since postmount is gone in current stable =sys-fs/udev-197-r3.
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2013-01-20 10:31:15 UTC
*** Bug 368041 has been marked as a duplicate of this bug. ***