Merge staging-next into staging

This commit is contained in:
github-actions[bot]
2024-09-28 12:06:02 +00:00
committed by GitHub
22 changed files with 96 additions and 94 deletions

View File

@@ -585,7 +585,8 @@ in
if ! [ -h "${k.path}" ]; then
rm -f "${k.path}"
fi
mkdir -m 0755 -p "$(dirname '${k.path}')"
mkdir -p "$(dirname '${k.path}')"
chmod 0755 "$(dirname '${k.path}')"
ssh-keygen \
-t "${k.type}" \
${lib.optionalString (k ? bits) "-b ${toString k.bits}"} \

View File

@@ -43,7 +43,7 @@ with lib;
while [ "''${parentDevice%[0-9]}" != "''${parentDevice}" ]; do
parentDevice="''${parentDevice%[0-9]}";
done
partNum="''${rootDevice#''${parentDevice}}"
partNum="''${rootDevice#"''${parentDevice}"}"
if [ "''${parentDevice%[0-9]p}" != "''${parentDevice}" ] && [ -b "''${parentDevice%p}" ]; then
parentDevice="''${parentDevice%p}"
fi

View File

@@ -523,7 +523,7 @@ in {
for o in $(< /proc/cmdline); do
case $o in
init=*)
IFS== read -r -a initParam <<< "$o"
IFS="=" read -r -a initParam <<< "$o"
closure="''${initParam[1]}"
;;
esac
@@ -559,7 +559,7 @@ in {
# Initialize the system
export IN_NIXOS_SYSTEMD_STAGE1=true
exec chroot /sysroot $closure/prepare-root
exec chroot /sysroot "$closure/prepare-root"
'';
};