Hi!

I had some struggle with a separate /usr on top of LVM and the dracut
thing. I noticed that udev was complaining at boot that it could not
find some scripts.

The usmount dracut module did not work for me because it could not
find /usr. So what I did was to include the fstab-sys smodule in
dracut:

/etc/dracut.conf

# Dracut modules to omit
omit_dracutmodules+="usrmount"

# Dracut modules to add to the default
add_dracutmodules+="fstab-sys"

Then I created /etc/fstab.sys with just the /usr partition

/dev/disk/by-uuid/90d82b02-e6c2-4011-940e-783d12b0c4fe          /usr            
ext4            noatime         1 2

Dracut could only find the partition by using the uuid (use blkid to
find it easily).

The next step was to remove /usr from /etc/fstab to prevent /usr from
being mounted twice (the boot process does not like it).

The last obstacle is /etc/mtab. By the time /usr is mounted I believe
/ is mounted as read only, so mount cannot update /etc/mtab. The
trivial solutions is to delete /etc/mtab and make it a symlink to
/proc/mounts . In that case it is always up to date.

Of course, YMMV. Be careful when changing things that can prevent your
machine from booting and make sure you have a live CD at hand.

Cheers,
-- 
Jorge Martínez López <jorg...@gmail.com> http://www.jorgeml.net
      Google Talk / XMPP: jorg...@gmail.com

Reply via email to