]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/swap: /sbin -> /usr/sbin
authorArian van Putten <arian.vanputten@gmail.com>
Sun, 24 Aug 2025 11:24:26 +0000 (13:24 +0200)
committerArian van Putten <arian.vanputten@gmail.com>
Sun, 24 Aug 2025 11:59:22 +0000 (13:59 +0200)
commitef8517f024740cd9fce26e0f97eb63e30cd30c1c
tree630527de0fa39a4c65f0128357a0b2a980484a18
parent46a688c559886230cc41018348415dda9b59b3cd
core/swap: /sbin -> /usr/sbin

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).
meson.build
meson_options.txt
src/core/swap.c