Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95752 - netmount checks /etc/fstab for NFS mounts but does not check for autofs
Summary: netmount checks /etc/fstab for NFS mounts but does not check for autofs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-11 01:49 UTC by Steve Herber
Modified: 2007-03-25 11:02 UTC (History)
2 users (show)

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 Steve Herber 2005-06-11 01:49:56 UTC
My apache2 DocumentRoot is an NFS autofs mounted mount point.
Apache2 depends upon netmount.
Netmount checks for NFS entries in /etc/fstab.  I don't have any there, they are
all derive from my YP server auto.master configuration.
Netmount should therefore conditionally depend upon the mount point tests that
are in autofs.  This would also pick up LDAP mount points. 

Reproducible: Always
Steps to Reproduce:
1. boot system
2. see apache2 fail after startup because it can't find it's document root
3. manually run apache2 after autofs and it works

Actual Results:  
Apache2 is not running

Expected Results:  
Apache2 should start after autofs has started.

root@lurch /etc/init.d 534 $ emerge --info
Portage 2.0.51.22-r1 (default-linux/amd64/2004.3, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.11-gentoo-r10 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r10 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5, 2.4.1
sys-apps/sandbox:    1.2.3
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16-r1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r1
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS=" http://mirror.tucdemonic.org/gentoo http://gentoo.llarian.net/
http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo
http://gentoo.ccccom.com http://gentoo.osuosl.org/
http://gentoo.seren.com/gentoo ftp://ftp.mirrors.ussg.iu.edu/pub/linux/gentoo/
ftp://mirror.scarlet-internet.nl/pub/gentoo ftp://gentoo.ccccom.com "
LANG="C"
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="amd64 X acpi alsa apache2 audiofile avi berkdb bitmap-fonts bootsplash
calendar cdparanoia cdr crypt cups curl dba dga doc dvd dvdr dvdread eds esd
evms2 exif fam firefox flac font-server foomaticdb fortran gd gif gnome gpm gps
gstreamer gtk gtk+ gtk2 imagemagick imlib ipv6 jabber jack java jp2 jpeg junit
kerberos ldap libwww lzw lzw-tiff mad mikmod motif mozilla mp3 mpeg multilib
mysql mythtv ncurses nls nptl nvidia ogg oggvorbis opengl oss pam perl php png
ppds python qt quicktime readline real sdl slang snmp ssl tcltk tcpd tiff
truetype truetype-fonts type1-fonts usb userlocales v4l v4l2 vorbis xine
xinerama xml xml2 xmms xpm xrandr xv xvidinfo zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Comment 1 SpanKY gentoo-dev 2005-06-11 13:21:58 UTC
what does your /etc/fstab look like
Comment 2 Steve Herber 2005-06-12 02:03:55 UTC
Here is my /etc/fstab after I removed comments and mount points for my card
reader, followed by the output from my ypcat -k auto.master command.

----- /etc/fstab
/dev/sda1       /boot           ext2            noatime                 1 1
/dev/sda3       /               xfs             noatime                 0 0
/dev/sda2       none            swap            sw                      0 0

/dev/sda5       /export/sys_backup      ext3    noatime                 0 2
/dev/sda6       /export/gif     ext3            noatime                 0 2
/dev/sda7       /export/mp3     ext3            noatime                 0 2
/dev/sda8       /export/home_backup     ext3    noatime                 0 2
/dev/sda9       /export/iso     ext3            noatime                 0 2
/dev/sda10      /export/fedora  ext3            noatime                 0 2

/dev/cdroms/cdrom0 /mnt/cdrom   iso9660         user,noauto,ro          0 0
none            /proc           proc            defaults                0 0
none            /dev/shm        tmpfs           defaults                0 0

-- ypcat -k auto.master
/home auto.home --timeout 1800
/misc auto.misc --timeout 1800
Comment 3 SpanKY gentoo-dev 2005-06-12 02:13:49 UTC
this is an autofs issue not a baselayout issue ... autofs already has its own
init.d script, there's no real good reason to incorporate it into netmount
Comment 4 Steve Herber 2005-06-12 17:39:25 UTC
Netmount is what apache, and probably other packages, use to make sure any
network mountable filesystems are available.  Isn't there a way to have netmount
conditionally depend upon autofs if autofs has been enabled?  Netmount seems
like the right place to make sure autofs is started if autofs is enabled.  How
do you implement a conditional depend in the initscripts?
Comment 5 INODE64 Sistemas 2005-06-27 08:24:11 UTC
the fix in http://bugs.gentoo.org/show_bug.cgi?id=97210 can solve this problem

I have the same problem with samba and apache
Comment 6 SpanKY gentoo-dev 2007-03-25 11:02:30 UTC
netmount now does:
    use afs-client amd autofs nfs nfsmount ...