jobcore/mkinitcpio/002-add-back-lvm2-hook.patch

30 lines
861 B
Diff
Raw Normal View History

2024-05-29 16:34:07 +02:00
diff --git a/install/lvm2 b/install/lvm2
index c2dc8a6..3bb20b0 100644
--- a/install/lvm2
+++ b/install/lvm2
@@ -19,6 +19,10 @@ build() {
'raid456' \
'dm-integrity'
+ # Obarun still needs binaries
+ add_binary 'dmsetup'
+ add_binary 'lvm'
+
# from thin-provisioning-tools
add_binary 'pdata_tools'
while IFS='' read -r -d '' symlink; do
@@ -33,12 +37,7 @@ build() {
'95-dm-notify.rules' \
'/usr/lib/initcpio/udev/11-dm-initramfs.rules'
- # this udev rule is specific for systemd and non-systemd systems
- if declare -F add_systemd_unit &>/dev/null; then
- add_udev_rule '69-dm-lvm.rules'
- else
- add_udev_rule '/usr/lib/initcpio/udev/69-dm-lvm.rules'
- fi
+ add_udev_rule '/usr/lib/initcpio/udev/69-dm-lvm.rules'
# config file
add_file '/etc/lvm/lvm.conf'