Bug 228389 - daemon/automount.i needs rewrite for fedora
Summary: daemon/automount.i needs rewrite for fedora
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: initng-ifiles
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Malmgren
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-02-12 20:33 UTC by Jason Farrell
Modified: 2007-11-30 22:11 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2007-02-13 07:21:28 UTC


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.