Re: Fedora 18 existing /usr partition -- need to merge into rootfs?

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

 



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




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux