|
From: <sa...@pe...> - 2006-09-25 20:35:29
|
Hello, I just started experimenting with DL and this is my first post to this list. I would like to have remote NFS directories mounted automatically when = the system boots. It there a proper way to do this with DL? I would prefer = not to have to alter the standard CD iso image, if possible. Here's what I'= ve tried so far: First a mount point is required for each NFS mount. I created these by adding mkdir commands to the file /etc/init.d/boot.local E.g.: mkdir /shm/nfsmnt && mkdir /shm/nfsmnt/nfs1 /shm/nfsmnt/nfs2 This works ok. Is there a better way? Next I need to mount the remote directories. This is usually done by ad= ding entries to /etc/fstab with the "auto" option. The problem with this is = that NFS requires the portmap daemon to be running, but DL tries to mount fs= tab entries before portmap has been started, so all the NFS entries in fsta= b fail. Is there a place that I could put a command (mount -a -t nfs) that woul= d be executed after the networking and portmap service is started? My only thoughts on this are to create a new service, e.g. nfsmount, in /etc/in= it.d containing the mount command and have it prioritised such that it runs after portmap. If adding a new service is the best way to do this, what is the proper = way to install it? Should I manually add the links in the /etc/init.d/rcX.d= directories, or is there a command that can be run to do this? (maybe insserv?) Is there a way to add the new service to the setup program without changing the CD? If it doesn't exist already and I missed it, it would be nice to have a= service file, similar to boot.local, except that is the last thing to r= un, instead of very early in the boot process. Thanks, Scott A.= |