diff options
author | Mike Gilbert <floppym@gentoo.org> | 2022-07-07 13:39:21 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2022-07-07 14:01:46 -0400 |
commit | 706fb4fc577585420b80f46af82b1efc459b9962 (patch) | |
tree | 0d6e1b939b50983a0d2dc0821ea042f09a4fc66e /sys-fs/lvm2 | |
parent | sys-kernel/gentoo-sources: add 5.18.10, remove redundant patch (diff) | |
download | gentoo-706fb4fc577585420b80f46af82b1efc459b9962.tar.gz gentoo-706fb4fc577585420b80f46af82b1efc459b9962.tar.bz2 gentoo-706fb4fc577585420b80f46af82b1efc459b9962.zip |
sys-fs/lvm2: call udev_reload
Closes: https://bugs.gentoo.org/850367
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-fs/lvm2')
-rw-r--r-- | sys-fs/lvm2/lvm2-2.02.188-r3.ebuild | 10 | ||||
-rw-r--r-- | sys-fs/lvm2/lvm2-2.03.14-r3.ebuild | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/sys-fs/lvm2/lvm2-2.02.188-r3.ebuild b/sys-fs/lvm2/lvm2-2.02.188-r3.ebuild index 50111c5fabb3..a7726256c6f8 100644 --- a/sys-fs/lvm2/lvm2-2.02.188-r3.ebuild +++ b/sys-fs/lvm2/lvm2-2.02.188-r3.ebuild @@ -266,6 +266,10 @@ pkg_postinst() { tmpfiles_process lvm2.conf fi + if use udev; then + udev_reload + fi + if [[ -z "${REPLACING_VERSIONS}" ]]; then # This is a new installation ewarn "Make sure the \"lvm\" init script is in the runlevels:" @@ -292,6 +296,12 @@ pkg_postinst() { fi } +pkg_postrm() { + if use udev && [[ -z ${REPLACING_VERSIONS} ]]; then + udev_reload + fi +} + src_test() { einfo "Tests are disabled because of device-node mucking, if you want to" einfo "run tests, compile the package and see ${S}/tests" diff --git a/sys-fs/lvm2/lvm2-2.03.14-r3.ebuild b/sys-fs/lvm2/lvm2-2.03.14-r3.ebuild index 281599b2fdf0..3c36db1adc1f 100644 --- a/sys-fs/lvm2/lvm2-2.03.14-r3.ebuild +++ b/sys-fs/lvm2/lvm2-2.03.14-r3.ebuild @@ -268,6 +268,10 @@ pkg_postinst() { tmpfiles_process lvm2.conf fi + if use udev; then + udev_reload + fi + if [[ -z "${REPLACING_VERSIONS}" ]]; then # This is a new installation ewarn "Make sure the \"lvm\" init script is in the runlevels:" @@ -294,6 +298,12 @@ pkg_postinst() { fi } +pkg_postrm() { + if use udev && [[ -z ${REPLACING_VERSIONS} ]]; then + udev_reload + fi +} + src_test() { einfo "Tests are disabled because of device-node mucking, if you want to" einfo "run tests, compile the package and see ${S}/tests" |