From 391ac85b374be4ba28646c0c3a8d8fd154a9b9d6 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Wed, 6 Nov 2024 19:08:35 -0500 Subject: [PATCH] Revert "snapcraft: patch lvm.conf at build time" This reverts commit 589ff0ee7fd6a0d7e4600bd4265a6c31648e0671. Signed-off-by: Simon Deziel --- snapcraft.yaml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index e769ece4..3a22fbf3 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -545,20 +545,6 @@ parts: sbin/: bin/ usr/lib/: lib/ usr/sbin/: bin/ - override-build: |- - # Patch lvm.conf - sed -i \ - -e "s%\(# \)\?obtain_device_list_from_udev = 1%obtain_device_list_from_udev = 0%" \ - -e "s%\(# \)\?cache_file_prefix = \"\"%cache_file_prefix = \"lxd\"%" \ - -e "s%\(# \)\?udev_sync = 1%udev_sync = 0%" \ - -e "s%\(# \)\?udev_rules = 1%udev_rules = 0%" \ - -e "s%\(# \)\?use_lvmetad = 1%use_lvmetad = 0%" \ - -e "s%\(# \)\?monitoring = 1%monitoring = 0%" \ - -e "/# .*_\?executable =/s/# //" \ - -e "s%\(/usr\)\?/s\?bin/%/snap/lxd/current/bin/%" \ - "${CRAFT_PART_INSTALL}/etc/lvm/lvm.conf" - - craftctl default prime: - bin/cache_* - bin/dmeventd