mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
Merge pull request #309236 from ElvishJerricco/sd-s1-fix-xfs-fsck
nixos/systemd-stage-1: Fix fsck.xfs needing bash's sh symlink
This commit is contained in:
commit
aa5d9c30f8
3 changed files with 6 additions and 3 deletions
|
@ -473,8 +473,8 @@ in {
|
||||||
"${cfg.package.util-linux}/bin/umount"
|
"${cfg.package.util-linux}/bin/umount"
|
||||||
"${cfg.package.util-linux}/bin/sulogin"
|
"${cfg.package.util-linux}/bin/sulogin"
|
||||||
|
|
||||||
# required for script services
|
# required for script services, and some tools like xfs still want the sh symlink
|
||||||
"${pkgs.runtimeShell}"
|
"${pkgs.bash}/bin"
|
||||||
|
|
||||||
# so NSS can look up usernames
|
# so NSS can look up usernames
|
||||||
"${pkgs.glibc}/lib/libnss_files.so.2"
|
"${pkgs.glibc}/lib/libnss_files.so.2"
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
luksroot
|
luksroot
|
||||||
luksroot-format1
|
luksroot-format1
|
||||||
luksroot-format2
|
luksroot-format2
|
||||||
# lvm
|
lvm
|
||||||
separateBoot
|
separateBoot
|
||||||
separateBootFat
|
separateBootFat
|
||||||
separateBootZfs
|
separateBootZfs
|
||||||
|
|
|
@ -974,6 +974,9 @@ in {
|
||||||
"mount LABEL=nixos /mnt",
|
"mount LABEL=nixos /mnt",
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
|
extraConfig = optionalString systemdStage1 ''
|
||||||
|
boot.initrd.services.lvm.enable = true;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# Boot off an encrypted root partition with the default LUKS header format
|
# Boot off an encrypted root partition with the default LUKS header format
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue