]> git.ipfire.org Git - thirdparty/systemd.git/commit
Some post unmerged-usr cleanups (#38696)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 17 Sep 2025 12:22:05 +0000 (14:22 +0200)
committerGitHub <noreply@github.com>
Wed, 17 Sep 2025 12:22:05 +0000 (14:22 +0200)
commit28021f6e8897f63a2dedb5c32a09862f9d653a01
tree86f96830a484b76263eea4a7b21a8d61d409f392
parenteb654a769da308ed1f3fd502b3148827d30c2028
parentfa7e3a96e402547c11d0a61ee68faf022a399c56
Some post unmerged-usr  cleanups (#38696)

I noticed in our NixOS packaging that we were working around the fact
that core/swap.c looks for swapon and swapoff in /sbin

Lets make it configurable just like all the other util-linux binaries
through meson and make it default to /usr/sbin/{swapon,swapoff}

This way mounts work on a systemd without the /sbin -> /usr/sbin
compatibility symlink. (And as a side-effect has NixOS be able to have
it in /nix/store too like the other util-linux tools).

Given that `unmerged-usr` support was dropped in 255 I think this is a
safe change?
meson.build