Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147221 - /sbin/rc inproperly checks for /sbin/udev to be present for udev support
Summary: /sbin/rc inproperly checks for /sbin/udev to be present for udev support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 147300 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-11 12:34 UTC by Patrick McLean
Modified: 2006-09-13 19:05 UTC (History)
7 users (show)

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


Attachments
Change /sbin/rc to check for udevd, not udev (rc.patch,701 bytes, patch)
2006-09-11 19:57 UTC, Greg Kroah-Hartman (RETIRED)
Details | Diff
check-addons.patch (check-addons.patch,1.32 KB, patch)
2006-09-12 19:07 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick McLean gentoo-dev 2006-09-11 12:34:46 UTC
After upgrading a system to udev-100-r1, the system said had this message in early boot (The system has RC_DEVICES="udev" in /etc/conf.d/rc):
 
 * "You wanted udev but support for it was not available!"
 * "Please review your system after it's booted!"

None of the normally udev-created devices in /dev were there. downgrading to udev-100 fixed the problem.



Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 3.40GHz
Gentoo Base System version 1.12.4
Last Sync: Mon, 11 Sep 2006 18:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/rcscripts/addons /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/gnome /usr/share/hwdata"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/sound /etc/terminfo /etc/texmf/web2c /etc/udev /usr/kde /usr/share/gnome/apps /usr/share/gnome/bonobo /usr/share/gnome/capplets /usr/share/gnome/cursor-fonts /usr/share/gnome/fonts /usr/share/gnome/help /usr/share/gnome/html /usr/share/gnome/panel /usr/share/gnome/ui /usr/share/gnome/vfolders /usr/share/gnome/vino /usr/share/gnome/wm-properties /var/local"
CXXFLAGS="-march=pentium2 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en_CA en_GB en_US en fr zh_CN zh_TW"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/gentopia /usr/local/portage /usr/local/diskless /usr/local/chutzpah"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d a52 aac accessibility acpi ada alsa amr arts asf audiofile avi bash-completion berkdb bitmap-fonts bonobo bzip2 cairo caps cdparanoia cdr cdrw cli cpudetection crypt css ctype cups curl custom-cflags dbus divx4linux dlloader doc dpms dri dts dv dvd dvdr dvdread dvi eds elibc_glibc emacs emboss encode esd evo examples exif expat fam ffmpeg fftw firefox flac foomaticdb fortran ftp gb gcc-libffi gcj gd gdbm gif gimp gimpprint glibc-omitfp glitz glut gmp gnome gnomedb gnuplot gnustep gnutls gphoto2 gpm gstreamer gtk gtkhtml guile gzip hal haskell i8x0 icu idea idn image imagemagick imap imlib imlib2 inkjar input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_synaptics input_devices_vmmouse input_devices_void input_devices_wacom ipv6 isdnlog jabber java jpeg junit kde kernel_linux largeterminal latex lcms ldap libg++ libgda libnotify libwww linguas_en linguas_en_CA linguas_en_GB linguas_en_US linguas_fr linguas_zh_CN linguas_zh_TW live lzo mad matroska mikmod mjpeg mmap mmx mng mono motif mozdevelop mozilla mozsvg mp3 mp4 mpeg mule musepack mysql nautilus ncurses netboot network nfs nis nls no-old-linux no_wxgtk1 nonfsv4 nptl nptlonly objc odbc ogg openal opengl pam pam_console pascal patented pcre pda pdf pdflib perl php plugin png posix postgres povray ppds pppd python qt3 qt4 quicktime quotas radeon rdesktop readline real reflection rtc ruby samba scanner sdk sdl session shorten silverxp sndfile sox speex spell spl sql sqlite ssl stream subversion svg tcltk tcpd tetex tga theora tiff transcode truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales vcd video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_epson video_cards_fglrx video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mach64 video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_nvidia video_cards_r128 video_cards_radeon video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo vidix vim-with-x vorbis win32codecs wmf wxwindows x264 xanim xemacs xine xml xml2 xorg xpm xprint xscreensaver xv xvid xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Marcin Kowalski 2006-09-11 12:54:06 UTC
i have a different problem with udev-100-r1 :

/dev/sda7 partition does not have a /dev node. fdisk shows that there is an /dev/sda7 partition, but i cannot mount it since /dev/sda7 node is missing. 
i didn't try other devices yet.

it's no big deal, since i use it for my portage tempdir. but somebody could be in trouble. it's the last logical partition on my disk.

but it was perfectly fine with udev-100 (and all previous), though. i never touched udev config files so it happens on default setup.
Comment 2 Luigi 'Comio' Mantellini 2006-09-11 12:58:12 UTC
some problem here (amd64 x2)... 

I'm angry...

ciao
Comment 3 Luigi 'Comio' Mantellini 2006-09-11 13:31:38 UTC
Can you check line 98 in the file udev-100-r1.ebuild...

See strange:

    #dosbin udev        || die "Required bina..."

in the previus ebuild the same line is not commented...

ciao

luigi
Comment 4 Gabriel Devenyi 2006-09-11 15:29:48 UTC
This has rendered my system unbootable, due to no device nodes, any suggestions to fix this temporarily?
Comment 5 Patrick McLean gentoo-dev 2006-09-11 16:02:17 UTC
I have masked sys-fs/udev-100-r1 until this gets fixed..

the best fix would be to boot off a livecd, chroot into your installation and downgrade your version of udev. (echo '=sys-fs/udev-100-r1' > /etc/portage/package.mask ; emerge udev)

Comment 6 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-09-11 19:48:00 UTC
Crap, sorry about this, it's my fault (must not checkin packages after travelling across 2 continents, staying up for 34 hours straight...)

It's a baselayout issue, we are checking for the udev binary, which is no longer
needed (hasn't been needed for a long time), so it dies before we ever get
the chance to start up udev.

Reassgning to baselayout, will attach the patch to /sbin/rc to fix this.
Comment 7 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-09-11 19:53:26 UTC
/sbin/udev is no longer needed, and we should drop it from the udev package.

But /sbin/rc uses the check for /sbin/udev to determine if it is present on the
system or not.  Should we just check for /sbin/udevd or something else instead?
Comment 8 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-09-11 19:57:08 UTC
Created attachment 96765 [details, diff]
Change /sbin/rc to check for udevd, not udev

Here's a patch that just switches to check for /sbin/udevd, instead of /sbin/udev

But should this be fixed some other way instead?  The fact that we have the
/lib/rcscripts/addons/udev-start.sh file?  That might be better as we later 
actually call that script to do the udev work for us at startup.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-09-12 05:18:32 UTC
*** Bug 147300 has been marked as a duplicate of this bug. ***
Comment 10 Mark Tiefenbruck 2006-09-12 12:26:27 UTC
I didn't check with udev-100, but udev-100-r1 breaks alsa on my system, due to a lack of /dev/snd/ . This should also be looked at, if it's not a symptom of the same problem.
Comment 11 Sandro Bonazzola (RETIRED) gentoo-dev 2006-09-12 13:16:43 UTC
On my system udev-100-r1 doesn't create lvm2 devices... having /usr on /dev/vg/usr caused a hang on boot. System resotred booting with kubuntu 6.06, mounting everything by hand, emerge --sync && emerge udev. udev-100-r2 solved the issue.
Comment 12 SpanKY gentoo-dev 2006-09-12 19:07:33 UTC
Created attachment 96848 [details, diff]
check-addons.patch

this should fix it
Comment 13 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-09-13 16:49:57 UTC
(In reply to comment #12)
> Created an attachment (id=96848) [edit]
> check-addons.patch
> 
> this should fix it
> 

Yes, that patch looks good to me, please apply it :)
Comment 14 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-09-13 16:50:29 UTC
(In reply to comment #11)
> On my system udev-100-r1 doesn't create lvm2 devices... having /usr on
> /dev/vg/usr caused a hang on boot. System resotred booting with kubuntu 6.06,
> mounting everything by hand, emerge --sync && emerge udev. udev-100-r2 solved
> the issue.
> 

Yes 100-r1 was messed up, please create new bugs if 100-r2 still has issues for
you.
Comment 15 SpanKY gentoo-dev 2006-09-13 19:05:51 UTC
ok, added to svn