On 04/02/2013 04:17 AM, Harald Hoyer wrote:
Am 01.04.2013 17:26, schrieb Robert Nichols:
If you really want to keep a separate /usr (I do, mounted read-only and
located on an SSD) you just need to arrange to have /usr mounted by dracut
early in the boot sequence. It's not hard:
1. Copy the /usr line from your /etc/fstab into a (probably new) file
/etc/fstab.sys .
2. Edit the file /etc/dracut.conf and change the line
#add_dracutmodules+=""
to read
add_dracutmodules+="fstab-sys"
3. IMPORTANT: In /etc/fstab, disable the automatic fsck for /usr by
putting a zero in field 6.
4. Run dracut to remake the initramfs in /boot.
That's it. Now your /usr gets mounted early in the boot sequence.
It is available when needed, and you can ignore the warning from systemd.
You will have to make your own arrangement for fsck on your /usr. If
you allowed the automatic fsck to run, it would be guaranteed to fail
since the filesystem is mounted. (The special handling for the root
filesystem is hard-coded into fsck and would not apply to a pre-mounted
/usr.)
Can you elaborate why you need this?
dracut already mounts /usr automatically with the 98usrmount dracut module.
The machines where I am doing that are running RHEL 5 and 6 clones, and that
module does not appear to be available. Looks like it's easier now. Sorry.
--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org