mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-18 16:10:19 +03:00
![]() 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`. |
||
---|---|---|
.. | ||
coredump.nix | ||
dm-verity.nix | ||
fido2.nix | ||
homed.nix | ||
initrd-secrets.nix | ||
initrd.nix | ||
journald-gateway.nix | ||
journald-remote.nix | ||
journald-upload.nix | ||
journald.nix | ||
logind.nix | ||
nspawn.nix | ||
oomd.nix | ||
repart.nix | ||
shutdown.nix | ||
sysupdate.nix | ||
sysusers.nix | ||
tmpfiles.nix | ||
tpm2.nix | ||
user.nix | ||
userdbd.nix |