nixpkgs/nixos/modules/system/boot/systemd
Bogdan-Cristian Tătăroiu 35b1c349e3 nixos/systemd-initrd: Fix fsck.xfs failing due to missing sh
When running with a xfs root partition and using systemd for stage 1
initrd, I noticed in journalctl that fsck.xfs always failed to execute.

The issue is that it is trying to use the below sh interpreter:

`#!/nix/store/xy4jjgw87sbgwylm5kn047d9gkbhsr9x-bash-5.2p37/bin/sh -f`

but the file does not exist in the initrd image.

/nix/store/xy4jjgw87sbgwylm5kn047d9gkbhsr9x-bash-5.2p37/bin/**bash**
exists since it gets pulled in by some package, but the rest of the
directory is not being pulled in.

boot/systemd/initrd.nix mentions that xfs_progs references the sh
interpreter and seems to explicitly try to address this by adding
${pkgs.bash}/bin to storePaths, but that's the wrong bash package.

Update the `storePaths` value to pull in `pkgs.bashNonInteractive`
rather than `pkgs.bash`.

(cherry picked from commit 3332613add)
2025-07-01 15:57:07 +00:00
..
coredump.nix
dm-verity.nix
fido2.nix
homed.nix
initrd-secrets.nix
initrd.nix nixos/systemd-initrd: Fix fsck.xfs failing due to missing sh 2025-07-01 15:57:07 +00:00
journald-gateway.nix
journald-remote.nix
journald-upload.nix
journald.nix nixos/systemd: unconditional systemd-journald-audit.socket 2025-05-20 13:30:26 +00:00
logind.nix nixos/logind: add "sleep" option to logindHandlerType 2025-03-10 19:44:27 +01:00
nspawn.nix
oomd.nix nixos/systemd-oomd: use the correct name for the top-level user slice 2025-06-24 21:07:45 +00:00
repart.nix repart: Enable discard option 2025-04-11 12:46:50 +02:00
shutdown.nix nixos/shutdown: Create /run/initramfs with mode 0700 2025-04-13 12:02:16 -04:00
sysupdate.nix nixos/doc: convert links to manpages 2025-02-21 16:31:09 +01:00
sysusers.nix nixos/sysusers: respect per user .enable 2025-03-20 20:43:00 +00:00
tmpfiles.nix nixos/tmpfiles: properly escape argument option 2025-04-02 13:23:42 +02:00
tpm2.nix nixos/systemd: conditionally leave out some upstream units 2025-03-19 08:14:48 -07:00
user.nix
userdbd.nix