summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2019-08-17 17:46:50 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2019-08-17 18:04:15 -0700
commitfdc36a3d1f6fbcf8f1496c6e7887e94061a0aa54 (patch)
tree9d3b6935193cad0ce4904027a62dd3af6b364a0a /sys-fs
parentsys-fs/zfs: update live ebuild (diff)
downloadgentoo-fdc36a3d1f6fbcf8f1496c6e7887e94061a0aa54.tar.gz
gentoo-fdc36a3d1f6fbcf8f1496c6e7887e94061a0aa54.tar.bz2
gentoo-fdc36a3d1f6fbcf8f1496c6e7887e94061a0aa54.zip
sys-fs/zfs: update live ebuild
clarify initramfs support. many people try to use different unsupported or outdated tools, only genkernel and dracut are tested. Bug: https://bugs.gentoo.org/628404 Package-Manager: Portage-2.3.71, Repoman-2.3.17 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/zfs/zfs-9999.ebuild17
1 files changed, 13 insertions, 4 deletions
diff --git a/sys-fs/zfs/zfs-9999.ebuild b/sys-fs/zfs/zfs-9999.ebuild
index df1803820df7..2903557f382a 100644
--- a/sys-fs/zfs/zfs-9999.ebuild
+++ b/sys-fs/zfs/zfs-9999.ebuild
@@ -189,10 +189,19 @@ src_install() {
}
pkg_postinst() {
- if has_version "<=sys-kernel/genkernel-3.5.3.3"; then
- einfo "genkernel version 3.5.3.3 and earlier does NOT support"
- einfo " unlocking pools with native zfs encryption enabled at boot"
- einfo " use dracut or >=genkernel-4.0.0 if you requre this functionality"
+ if use rootfs; then
+ if ! has_version sys-kernel/genkernel && ! has_version sys-kernel/dracut; then
+ elog "root on zfs requires initramfs to boot"
+ elog "the following packages known to provide one and tested on regular basis:"
+ elog " sys-kernel/dracut"
+ elog " sys-kernel/genkernel"
+ fi
+
+ if has_version "<=sys-kernel/genkernel-3.5.3.3"; then
+ einfo "genkernel version 3.5.3.3 and earlier does NOT support"
+ einfo " unlocking pools with native zfs encryption enabled at boot"
+ einfo " use dracut or >=genkernel-4 if you requre this functionality"
+ fi
fi
if ! use kernel-builtin && [[ ${PV} = "9999" ]]; then