diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2016-01-17 03:32:37 +0000 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2016-01-18 03:56:51 +0000 |
commit | ac289ce3f5eb3f13806f7c631c6b23cee18b26da (patch) | |
tree | ee68fb9f0f201f68ccb031780797c79b876adb4a /test/test-functions | |
parent | 9974ff63b182e67bf3d3d9262e2bfa84f0a1378b (diff) |
tests: fix TEST-02-CRYPTSETUP on Debian/Ubuntu
Diffstat (limited to 'test/test-functions')
-rw-r--r-- | test/test-functions | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test-functions b/test/test-functions index d6be7f867d..55d43134ea 100644 --- a/test/test-functions +++ b/test/test-functions @@ -159,7 +159,13 @@ install_dmevent() { instmods dm_crypt =crypto type -P dmeventd >/dev/null && dracut_install dmeventd inst_libdir_file "libdevmapper-event.so*" - inst_rules 10-dm.rules 13-dm-disk.rules 95-dm-notify.rules + if [[ "$LOOKS_LIKE_DEBIAN" ]]; then + # dmsetup installs 55-dm and 60-persistent-storage-dm on Debian/Ubuntu + # see https://anonscm.debian.org/cgit/pkg-lvm/lvm2.git/tree/debian/patches/0007-udev.patch + inst_rules 55-dm.rules 60-persistent-storage-dm.rules + else + inst_rules 10-dm.rules 13-dm-disk.rules 95-dm-notify.rules + fi } install_systemd() { |