summaryrefslogtreecommitdiff
path: root/system/lvm2
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2019-08-01 22:23:55 -0500
committerSamuel Holland <samuel@sholland.org>2019-08-01 22:25:09 -0500
commitf782f26af11f6d6ddc0074506f410d36409ebeae (patch)
tree975f4167f80e38fa1a9c5b1c0e7769aab1f5759c /system/lvm2
parenta4bf8c0b7d41663aee20f8064c920e653eb820e1 (diff)
downloadpackages-f782f26af11f6d6ddc0074506f410d36409ebeae.tar.gz
packages-f782f26af11f6d6ddc0074506f410d36409ebeae.tar.bz2
packages-f782f26af11f6d6ddc0074506f410d36409ebeae.tar.xz
packages-f782f26af11f6d6ddc0074506f410d36409ebeae.zip
system/lvm2: Always use /run for ephemeral state
Previously, autodetection on the arm64 builder chose to put lockfiles in /var/lock. This broke running pvscan from a udev rule with read-only / and separate /var. Make this option and related ones always use /run, independent of the build environment.
Diffstat (limited to 'system/lvm2')
-rw-r--r--system/lvm2/APKBUILD4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/lvm2/APKBUILD b/system/lvm2/APKBUILD
index 842dee2fa..fc491a70a 100644
--- a/system/lvm2/APKBUILD
+++ b/system/lvm2/APKBUILD
@@ -51,6 +51,10 @@ build () {
--with-thin=internal \
--enable-dmeventd \
--enable-cmdlib \
+ --with-default-dm-run-dir=/run \
+ --with-default-locking-dir=/run/lock/lvm \
+ --with-default-pid-dir=/run \
+ --with-default-run-dir=/run/lvm \
--with-thin-check=/sbin/thin_check \
--with-thin-dump=/sbin/thin_dump \
--with-thin-repair=/sbin/thin_repair \