Skip to content

Update dracut-mark.conf#431

Open
coffnix wants to merge 1 commit into
mark-unstablefrom
coffnix-patch-4
Open

Update dracut-mark.conf#431
coffnix wants to merge 1 commit into
mark-unstablefrom
coffnix-patch-4

Conversation

@coffnix
Copy link
Copy Markdown
Contributor

@coffnix coffnix commented May 26, 2026

This is just a small fix to adjust the path to the correct location: /usr/lib64/elogind/elogind-uaccess-command.

This is just a small fix to adjust the path to the correct location: /usr/lib64/elogind/elogind-uaccess-command.
@geaaru
Copy link
Copy Markdown
Contributor

geaaru commented May 27, 2026

About your discord question for $(get_libdir) probably you can do this:

  • in the dracut-mark.conf you can use a placeholder like this:
install_items="LIBDIR/elogind/elogind-uaccess-command"
  • and later in the ebuild add something like this:
sed -i -e "s|LIBDIR|/usr/$(get_libdir)|g" ${ED}/etc/dracut.conf.d/99-macaroni.conf

This will support both 64 bit and 32 bit.

Btw, i have a doubt, atm in Phoenix i have this:

$ anise q files elogind | grep uaccess
/lib/udev/rules.d/70-uaccess.rules
/lib64/elogind/elogind-uaccess-command

The path is without /usr. What version do you use?

@coffnix
Copy link
Copy Markdown
Contributor Author

coffnix commented May 27, 2026

my elogind on overlay local have --libexecdir="$(get_libdir)/elogind"

@geaaru
Copy link
Copy Markdown
Contributor

geaaru commented May 27, 2026

So the path is /lib or /lib64 not /usr/lib|/usr/lib64.
The fix in the PR is not valid

@geaaru
Copy link
Copy Markdown
Contributor

geaaru commented May 27, 2026

I dunno if there is a --prefix=/usr that is used as prefix

@geaaru
Copy link
Copy Markdown
Contributor

geaaru commented May 29, 2026

So, there are tree things to do:

  1. Fix our autogen: https://github.com/macaroni-os/kit-fixups/blob/mark-unstable/security-kit/autogen.kit.d/security.yml#L198 in order to use $(get_libdir)
  2. Set this on dracut-mark.conf: install_items="/usr/LIBDIR/elogind/elogind-uaccess-command"
  3. Add something like this:
sed -i -e "s|LIBDIR|$(get_libdir)|g" ${ED}/etc/dracut.conf.d/99-macaroni.conf

here https://github.com/macaroni-os/kit-fixups/blob/mark-unstable/kernel-kit/autogen.kit.d/debian.yml#L198

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants