0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-16 07:00:43 +03:00
nixpkgs/nixos/modules/system
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
..
activation treewide: remove Perl-based switch-to-configuration 2025-06-11 08:56:42 -07:00
boot nixos/systemd-initrd: Fix fsck.xfs failing due to missing sh 2025-06-28 14:50:51 +01:00
etc system.etc.overlay: build erofs also locally 2025-05-30 18:52:30 +02:00
build.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00