systemd: ensure fsck Requires/After links are created in mount units
systemd-fsck-generator only produces these lines if it can find the necessary fsck executable in its PATH. fixes #29139.
This commit is contained in:
committed by
Robin Gloster
parent
69b4f427b6
commit
94a906b59a
@@ -159,6 +159,6 @@ exec {logOutFd}>&- {logErrFd}>&-
|
||||
|
||||
# Start systemd.
|
||||
echo "starting systemd..."
|
||||
PATH=/run/current-system/systemd/lib/systemd \
|
||||
PATH=/run/current-system/systemd/lib/systemd:@fsPackagesPath@ \
|
||||
LOCALE_ARCHIVE=/run/current-system/sw/lib/locale/locale-archive \
|
||||
exec systemd
|
||||
|
||||
@@ -17,6 +17,7 @@ let
|
||||
pkgs.utillinux
|
||||
pkgs.openresolv
|
||||
];
|
||||
fsPackagesPath = lib.makeBinPath config.system.fsPackages;
|
||||
postBootCommands = pkgs.writeText "local-cmds"
|
||||
''
|
||||
${config.boot.postBootCommands}
|
||||
|
||||
Reference in New Issue
Block a user