diff options
author | Bart Ribbers <bribbers@disroot.org> | 2020-02-28 13:07:23 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-02-28 09:50:13 -0300 |
commit | 0a0d062e47b6349a625bb9a67232ea3fcf54f898 (patch) | |
tree | fde4d4e364a82ee55bc4d7585205a19857f84980 /main/lvm2 | |
parent | af5722a7e09aa2686a1d02398240212da33c79c5 (diff) | |
download | aports-0a0d062e47b6349a625bb9a67232ea3fcf54f898.tar.bz2 aports-0a0d062e47b6349a625bb9a67232ea3fcf54f898.tar.xz |
main/lvm2: reload udev rules after installing device-mapper-udev
Diffstat (limited to 'main/lvm2')
-rw-r--r-- | main/lvm2/APKBUILD | 3 | ||||
-rw-r--r-- | main/lvm2/device-mapper-udev.post-install | 6 | ||||
l--------- | main/lvm2/device-mapper-udev.post-upgrade | 1 |
3 files changed, 9 insertions, 1 deletions
diff --git a/main/lvm2/APKBUILD b/main/lvm2/APKBUILD index 1ba88ea51a..0ed8e4f2d2 100644 --- a/main/lvm2/APKBUILD +++ b/main/lvm2/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=lvm2 pkgver=2.02.186 -pkgrel=0 +pkgrel=1 pkgdesc="Logical Volume Manager 2 utilities" url="https://sourceware.org/lvm2/" arch="all" @@ -94,6 +94,7 @@ dm() { udev() { pkgdesc="Device mapper udev rules" + install="$subpkgname.post-install $subpkgname.post-upgrade" install_if="device-mapper eudev" mkdir -p "$subpkgdir"/usr/lib/udev mv "$pkgdir"/usr/lib/udev/rules.d "$subpkgdir"/usr/lib/udev/ diff --git a/main/lvm2/device-mapper-udev.post-install b/main/lvm2/device-mapper-udev.post-install new file mode 100644 index 0000000000..95a3590b84 --- /dev/null +++ b/main/lvm2/device-mapper-udev.post-install @@ -0,0 +1,6 @@ +#!/bin/sh + +udevadm control --reload-rules +udevadm trigger + +exit 0 diff --git a/main/lvm2/device-mapper-udev.post-upgrade b/main/lvm2/device-mapper-udev.post-upgrade new file mode 120000 index 0000000000..bd0acc24c6 --- /dev/null +++ b/main/lvm2/device-mapper-udev.post-upgrade @@ -0,0 +1 @@ +device-mapper-udev.post-install
\ No newline at end of file |