Skip to content

Commit

Permalink
Revert "snapcraft: patch lvm.conf at build time"
Browse files Browse the repository at this point in the history
This reverts commit 589ff0e.

Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Nov 7, 2024
1 parent 8c56cdf commit 391ac85
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 391ac85

Please sign in to comment.