Bug 228389

Summary: daemon/automount.i needs rewrite for fedora
Product: [Fedora] Fedora Reporter: Jason Farrell <farrellj>
Component: initng-ifilesAssignee: Daniel Malmgren <dm>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-13 07:21:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jason Farrell 2007-02-12 20:33:29 UTC
daemon/automount.i does not work on Fedora out of the box. Fedora's autofs
initscript sources the envvars in /etc/sysconfig/autofs and then calls
"automount $OPTIONS" where by default $OPTIONS is empty. the /etc/auto.* conf
files then define the mounts.

I have verified that the following automount.i works on my FC6 system. I needed
to add "forks;", move "system/modules/autofs4" from the use= line to need=
(otherwise the old 'autofs' module was loaded), and change "daemon
daemon/automount/*" to "daemon daemon/automount" since it's standalone. old
lines commented out below:



#!/sbin/itype
# This is a i file, used by initng parsed by install_service

# NAME:
# DESCRIPTION:
# WWW:

#daemon daemon/automount/* {
daemon daemon/automount {
        #need = system/bootmisc;
        need = system/bootmisc system/modules/autofs4;
        #use = system/modules/autofs4;
        #env TIMEOUT=30;
        #env_file = /etc/conf.d/automount;
        env_file = /etc/sysconfig/autofs;
        #env MOUNTPOINT=/mnt/${NAME};
        #env PIDFILE=/var/run/autofs.${NAME}.pid;
        env PIDFILE=/var/lock/subsys/autofs;
        #env CONFFILE=/etc/autofs/auto.${NAME};
        #exec daemon = /usr/sbin/automount --timeout ${TIMEOUT} --pid-file
${PIDFILE} ${MOUNTPOINT} file ${CONFFILE};
        exec daemon = /usr/sbin/automount --pid-file ${PIDFILE} ${OPTIONS};
        pid_file = ${PIDFILE};
        forks;
}

Comment 1 Daniel Malmgren 2007-02-13 07:21:28 UTC
Thanks for your report. This has now been fixed in upstreams svn (thanks Ismael)
and will be included in the next release.