Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560706 - sys-fs/lvm2 should not use awk in device-mapper.rc
Summary: sys-fs/lvm2 should not use awk in device-mapper.rc
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Richard Yao
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-17 13:01 UTC by Witaut Bajaryn
Modified: 2016-03-23 20:07 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.