0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-16 23:20:56 +03:00
nixpkgs/nixos/modules/system/boot
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
..
loader limine-install: cleanup, improve type hinting (#416188) 2025-06-23 23:08:45 +05:30
systemd nixos/systemd-initrd: Fix fsck.xfs failing due to missing sh 2025-06-28 14:50:51 +01:00
binfmt.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
clevis.md
clevis.nix nixos/clevis: fix clevis in scripted initrd 2025-05-25 01:34:06 +02:00
emergency-mode.nix emergencyMode, emergencyAccess: cross reference options in docs. 2025-05-24 14:01:22 +07:00
grow-partition.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
initrd-network.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
initrd-openvpn.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
initrd-ssh.nix nixos/initrd-ssh: include sshd-auth binary in initrd 2025-05-05 17:23:47 +02:00
kernel.nix lib.types.attrNamesToTrue: unpublish temporarily 2025-05-16 11:52:36 +02:00
kernel_config.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
kexec.nix treewide: Format all Nix files 2025-04-01 20:10:43 +02:00
luksroot.nix nixos/luksroot: remove useless $new_k_luks 2025-04-04 23:39:29 +02:00
modprobe.nix lib.types.attrNamesToTrue: unpublish temporarily 2025-05-16 11:52:36 +02:00
networkd.nix nixos/networkd: update valid KeepConfiguration values (#395621) 2025-06-05 16:17:48 -07:00
nix-store-veritysetup.nix nixos/nix-store-veritysetup: init 2025-06-16 10:28:53 +02:00
pbkdf2-sha512.c
plymouth.nix treewide: Format all Nix files 2025-04-01 20:10:43 +02:00
resolved.nix Make systemd-resolved's config file a reload trigger 2025-01-08 13:38:04 -05:00
shutdown.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
stage-1-init.sh nixos/stage-1.init.sh: only remount bind fsType 2025-05-30 12:13:13 +05:30
stage-1.nix nixos/stage-1: Add option for allowing missing modules 2025-05-15 00:00:56 -04:00
stage-2-init.sh nixos/stage-2-init: support nosuid/nodev mount options for /nix/store 2025-05-18 12:07:10 +02:00
stage-2.nix nixos/stage-2-init: remove 'readOnlyNixStore' option 2025-05-18 12:08:03 +02:00
stratisroot.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
systemd.nix nixos/systemd: clarify what enableStrictShellChecks checks (#401460) 2025-04-27 14:15:15 +02:00
timesyncd.nix nixos/doc: convert links to manpages 2025-02-21 16:31:09 +01:00
tmp.nix nixos/boot/tmp: introduce adaptive huge memory pages 2025-05-05 22:52:02 +00:00
uki.nix chore: move meta option to top level in many modules 2025-04-19 18:27:48 +02:00
unl0kr.nix nixos/unl0kr: fix touchpads 2025-05-09 00:29:43 +02:00
uvesafb.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
zram-as-tmp.nix nixos/boot: add boot.tmp.useZram options 2025-05-24 23:01:41 +08:00