Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 560706

Summary: sys-fs/lvm2 should not use awk in device-mapper.rc
Product: Gentoo Linux Reporter: Witaut Bajaryn <vitaut.bayaryn>
Component: [OLD] Core systemAssignee: Richard Yao <ryao>
Status: UNCONFIRMED ---    
Severity: normal CC: agk, cardoe, robbat2
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Witaut Bajaryn 2015-09-17 13:01:57 UTC
The device-mapper initscript uses awk (and uniq), which are in /usr/bin, and fails to find them if /usr is not mounted before boot.
Comment 1 Doug Goldstein gentoo-dev 2016-03-15 04:09:58 UTC
Do you not have an initrd which mounts /usr?
Comment 2 Witaut Bajaryn 2016-03-23 08:23:04 UTC
Genkernel can mount /usr when it's in /etc/initramfs.mounts, but then /usr has to also be specified in /etc/fstab. I avoid doing that because / and /usr are on ZFS, and /usr is a nested filesystem inside /, so writing it explicitly in /etc/fstab will make it more work to change the root filesystem (it will need to be changed not only in ZFS, but also in fstab) (currently I can switch to a different root filesystem just by changing the default boot filesystem in ZFS, and all the nested filesystems get mounted automatically by the zfs-mount initscript).

hts/funtoo on / type zfs (rw,relatime,xattr,posixacl)
hts/funtoo/usr on /usr type zfs (rw,noatime)
Comment 3 Doug Goldstein gentoo-dev 2016-03-23 20:07:31 UTC
Yeah I don't think that's a supported configuration. ryao as the ZFS guy I'll leave it up to you to comment.