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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux