Re: Execute a command before mounting what's in /etc/fstab - how?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Chris G wrote:
> On Mon, Nov 19, 2007 at 11:59:26AM -0800, Michael Eager wrote:
>> Chris G wrote:
>>> I have a Freecom network disk which needs the following to be executed
>>> before I can mount it using an entry in /etc/fstab :-     echo 0 > 
>>> /proc/fs/cifs/LinuxExtensionsEnabled
>>> Is there any neat way I can get this command executed during the boot
>>> sequence before the entries in /etc/fstab are mounted?
>> Drives are mounted in rc.sysinit.  You can add your
>> line before this happens.
>>
> ... but it'll get lost on next install, surely there's a "proper"
> place to do it.
> 
I don't know if there is a "proper" place to do  it, but I wounder
if you could put a script to do it in /etc/sysconfig/modules? You
would have to check exactly when they are run, but I suspect it
would be between the mounting of the root file system and the
mounting of network file systems.

Another way to do it would be to create an init script to do it. You
could then control when it is run, and it would not vanish because
of an update.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux