|
From: Heiko Z. <he...@zu...> - 2006-09-26 01:13:41
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, just a quick answer, since I don't have much time. Your best bet is to copy the script /etc/init.d/skeleton and add your commands there. As you already suspected, add the script with insserv to the boot order. Of course don't forgett to run a save-config before you reboot. ;-) cu Heiko On Mon, September 25, 2006 15:28, sa...@pe... wrote: > > > 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 > adding 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 fstab entries before portmap has been started, so all the NFS > entries in fstab fail. > > Is there a place that I could put a command (mount -a -t nfs) that would > 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/init.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 run, > instead of very early in the boot process. > > Thanks, > Scott > A.----------------------------------------------------------------------- > -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys -- and earn > cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Devil-linux-discuss mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss > > - -- Regards Heiko Zuerker http://www.devil-linux.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iEYEARECAAYFAkUYfrcACgkQUcytMSbs+YWJ7gCeLmnYOeYqAwgmm4UvttT7NPUF JD4An1Em1hEuohXGMAT2tqD7NW4XDEh6 =0bB6 -----END PGP SIGNATURE----- |