multipath-tools >= 0.9.7 changed location of statedir to /usr/etc/multipath, which doesn't work when /usr is read-only
Package Information
- Package name: multipath-tools
- Package version: 0.9.8-r0
- Alpine version: 3.20.3
- Alpine architecture: x86_64
Summary
Themultipath
binary in the multipath-tools package now uses /usr/etc/multipath
for @statedir. Up until multipath 0.9.6, it used /etc/multipath
for state (i.e., bindings, wwids, etc.). However, starting with 0.9.7, it now uses /usr/etc/multipath
which is an issue when building an immutable OS with /usr as a read-only filesystem. The upstream project here https://github.com/opensvc/multipath-tools makes mention in the README.md of setting etc_prefix
to ""
for such a case, as an example.
Steps to reproduce
On alpine 3.20:
apk add multipath-tools
multipath
ls -l /usr/etc/multipath
On alpine 3.18 (the last version with multipath-tools < 0.9.7)
apk add multipath-tools
multipath
ls -l /etc/multipath