0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-18 16:10:19 +03:00
nixpkgs/nixos/modules/system/boot/systemd
Bogdan-Cristian Tătăroiu 3332613add 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`.
2025-06-28 14:50:51 +01:00
..
coredump.nix nixos/*: tag manpage references 2025-01-27 02:47:01 +01:00
dm-verity.nix nixos: add support for dm-verity 2024-09-20 13:03:10 +02:00
fido2.nix nixos/systemd-stage-1: Fix FIDO2 udev rules 2025-01-06 11:41:39 -05:00
homed.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
initrd-secrets.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
initrd.nix nixos/systemd-initrd: Fix fsck.xfs failing due to missing sh 2025-06-28 14:50:51 +01:00
journald-gateway.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
journald-remote.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
journald-upload.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
journald.nix nixos/systemd: unconditional systemd-journald-audit.socket 2025-05-18 19:58:59 +00:00
logind.nix nixos/logind: add "sleep" option to logindHandlerType 2025-03-10 19:44:27 +01:00
nspawn.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
oomd.nix nixos/systemd-oomd: use the correct name for the top-level user slice 2025-06-20 18:53:16 +02: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 treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
userdbd.nix nixos: remove all uses of lib.mdDoc 2024-04-13 10:07:35 -07:00