commit: f9e43f12b9961f034decc9093149b23d661c11bc
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 8 19:36:23 2022 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Wed Jun 8 19:36:23 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9e43f12
sys-apps/openrc: remove unused code
Version 0.44.x should try to install urandom if seedrng is in the boot
runlevel and we are downgrading.
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
sys-apps/openrc/openrc-0.44.10.ebuild | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/sys-apps/openrc/openrc-0.44.10.ebuild
b/sys-apps/openrc/openrc-0.44.10.ebuild
index e7337a132e40..c4028fe6262e 100644
--- a/sys-apps/openrc/openrc-0.44.10.ebuild
+++ b/sys-apps/openrc/openrc-0.44.10.ebuild
@@ -155,4 +155,15 @@ pkg_postinst() {
ewarn "without networking."
ewarn
fi
+
+ # added to handle downgrading from 0.45 (2022-06-08)
+ for v in ${REPLACING_VERSIONS}; do
+ [[ -x $(type rc-update) ]] || continue
+ if ver_test $v -gt 0.44.10; then
+ if rc-update show boot | grep -q seedrng; then
+ rc-update del seedrng boot
+ rc-update add urandom boot
+ fi
+ fi
+ done
}