Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79023 - [stratisd] dracut module checks for stratisd-min in wrong location

Attached to Project: Arch Linux
Opened by Arnav Yash Chandra (Scale3975) - Sunday, 09 July 2023, 10:27 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 11 July 2023, 06:14 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jiachen Yang (farseerfc)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
In /usr/lib/dracut/modules.d/90stratis/module-setup.sh (provided by stratisd package), in check() and install() function, /usr/libexec/stratisd-min is used which does not exist in Archlinux (In Archlinux the equivalent is /usr/lib/stratisd-min from same package). This prevents dracut from including 'stratis' module in the dracut initramfs.

Additional info:
* package version(s)
* stratisd
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
* Install linux-zen, stratisd and stratis-cli (I have this kernel installed, but the bug in question doesn't seem to be related to the type of kernel used)
* Run 'sudo dracut --hostonly --no-hostonly-cmdline --quiet /boot/initramfs-linux-zen.img' (when forcing use of stratis and stratis-clevis dracut modules in dracut configuration)
* Output would be -

dracut: dracut module 'stratis-clevis' depends on 'stratis', which can't be installed
dracut: dracut module 'stratis' cannot be found or installed.

Temporary mitigation:

Create directory /usr/libexec and symlink /usr/lib/stratisd-min to /usr/libexec/stratisd-min. After the mitigation, the above mentioned command successfully creates a initramfs.
This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 11 July 2023, 06:14 GMT
Reason for closing:  Upstream
Additional comments about closing:  Ok, thanks. We will let upstream fix it.
Comment by Arnav Yash Chandra (Scale3975) - Sunday, 09 July 2023, 11:17 GMT
The version of stratisd package used is 3.5.7
Comment by Laszlo Gombos (laszlogombos) - Sunday, 09 July 2023, 23:06 GMT
Ideally this should be worked out at https://github.com/stratis-storage/stratisd/issues .

This is an "out of tree dracut module".. For reference similar issue has been resolved upstream for some other dracut modules for arch https://github.com/dracutdevs/dracut/commit/22d6863ef1b2eb2a22264f2bfdb2b9329ab5dfdb
Comment by Toolybird (Toolybird) - Monday, 10 July 2023, 00:23 GMT
Agree that dracut issue could be solved by stratisd upstream. Please submit to stratisd upstream as per recommendation by @laszlogombos

But let's also give the Arch PM's an opportunity to fix this at the packaging level if they would prefer.
Comment by Arnav Yash Chandra (Scale3975) - Monday, 10 July 2023, 04:49 GMT
Created github issue #3378: https://github.com/stratis-storage/stratisd/issues/3378

The Arch package defines $LIBEXECDIR=/usr/lib in PKGBUILD (https://gitlab.archlinux.org/archlinux/packaging/packages/stratisd/-/blob/3.5.7-1/PKGBUILD?ref_type=tags#L27 and https://gitlab.archlinux.org/archlinux/packaging/packages/stratisd/-/blob/3.5.7-1/PKGBUILD?ref_type=tags#L48) which is used by Makefile (https://github.com/stratis-storage/stratisd/blob/3ed2e0e486c784000327449efa68dfb3e49b5761/Makefile) of stratisd. So it seems that this is an upstream problem.

Loading...