Skip to content

Commit

Permalink
snapcraft: explain what/why the sed patching of lvm.conf does (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomponline authored Nov 18, 2024
2 parents 4329499 + 25ba893 commit 43c8f6c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,16 @@ parts:
usr/lib/: lib/
usr/sbin/: bin/
override-build: |-
# Patch lvm.conf
# Patch lvm.conf to:
# 1) Disable bits that don't apply in a snap'ed env. Handle commented
# out variants that represent builtin values.
# * udev_sync
# * udev_rules
# * use_lvmetad
# * monitoring
# 2) Uncomment all executable directives to override their builtin
# values. Replace paths in /usr/bin, /usr/sbin, /bin and /sbin
# by /snap/lxd/current/bin to use executables from the snap.
sed -i \
-e "s%\(# \)\?udev_sync = 1%udev_sync = 0%" \
-e "s%\(# \)\?udev_rules = 1%udev_rules = 0%" \
Expand Down

0 comments on commit 43c8f6c

Please sign in to comment.