Skip to content

Commit

Permalink
snapcraft: remove lvm.conf patching for 22.04/core22
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
  • Loading branch information
simondeziel committed Nov 14, 2024
1 parent a7099ab commit 8955058
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -550,13 +550,6 @@ parts:
usr/sbin/: bin/
override-build: |-
# Patch lvm.conf
# lvm.conf changes for lvm2 from 22.04/core22
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\"%" \
"${CRAFT_PART_INSTALL}/etc/lvm/lvm.conf"
# Generic lvm.conf changes
sed -i \
-e "s%\(# \)\?udev_sync = 1%udev_sync = 0%" \
-e "s%\(# \)\?udev_rules = 1%udev_rules = 0%" \
Expand Down

0 comments on commit 8955058

Please sign in to comment.