Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84879 - init.d/autofs modprobes for autofs and autofs4
Summary: init.d/autofs modprobes for autofs and autofs4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-11 10:06 UTC by Philip Lawatsch
Modified: 2005-03-14 15:09 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Lawatsch 2005-03-11 10:06:19 UTC
The init script greps proc/filesystems and if autofs is not loaded it will run modprobe -q autofs autofs4. This is a really bad thing to do since it will break if one only has autofs4 modules

Reproducible: Always
Steps to Reproduce:
1. build kernel with only autofs4 as module
2. rmmod autofs4
3. /etc/init.d/autofs start


Actual Results:  
The init scripts says that there is no autofs support which is wrong

Expected Results:  
instead of calling 
        grep -q autofs /proc/filesystems || modprobe -q autofs autofs4
        if [ $? -ne 0 ]; then
it should do a 
        grep -q autofs /proc/filesystems || modprobe -q autofs || modprobe -q
autofs4
        if [ $? -ne 0 ]; then


autofs 4.1.3-r2
philip@icefox philip $ emerge info
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1,
2.6.11-gentoo-r3 i686)
=================================================================
System uname: 2.6.11-gentoo-r3 i686 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar  8 2005, 05:09:49)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4-r1   
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4  
virtual/os-headers:  2.6.8.1-r2 
ACCEPT_KEYWORDS="x86"           
AUTOCLEAN="yes"                 
CFLAGS="-O3 -pipe -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"       
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -pipe -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://webmail.waug.at/gentoo/"
MAKEOPTS="-j4"                  
PKGDIR="/usr/portage/packages"  
PORTAGE_TMPDIR="/var/tmp"       
PORTDIR="/usr/portage"          
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X a52 aac aalib acpi acpi4linux alsa apm arts
artworkextra avi bash-completion berkdb bitmap-fonts bluetooth bonobo cairo cdr
cdrom crypt cups curl doc dvb dvd dvdr emboss encode esd ethereal fam ffmpeg
flac font-server foomaticdb fortran gdbm gif glade gnome gpm gstreamer gtk gtk2
gtkhtml guile icq imagemagick imap imlib ipv6 java jpeg kde kdeenablefinal
libg++ libwww lm_sensors lzo lzw lzw-tiff mad matroska mikmod mjpeg mmx mmx2
motif mozilla mp3 mpeg mpeg4 mplayer ncurses nethack network neural nls nntp
nptl offensive oggvorbis opengl oss pam pdflib perl plotutils png povray python
qt quicktime readline real samba screenshot sdl shared sharedmem slang sockets
speedo spell sse sse2 ssl stencil-buffer svga tcpd tetex threads tiff transcode
truetype truetype-fonts type1-fonts unicode videos vidix vim-with-x xanim xface
xine xinerama xml xml2 xmms xprint xrandr xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Philip Lawatsch 2005-03-13 03:18:20 UTC
The solution I added in the bug description is broken too, one should first modprobe autofs4 and only if this one fails modprobe autofs not the other way around
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-03-14 15:09:13 UTC
in cvs shortly.