Fix update-initrd(8) not atomically replacing the initrd.

This commit is contained in:
Jonas 'Sortie' Termansen 2024-02-24 23:23:32 +01:00
parent fafaf86ddb
commit dc1fb1ceca
1 changed files with 2 additions and 1 deletions

View File

@ -94,5 +94,6 @@ EOF
fi
mkdir -p "$output/boot"
LC_AL=C ls -A "$tmp" |
tar -C "$tmp" -cf "$output/boot/sortix.initrd" \
tar -C "$tmp" -cf "$output/boot/sortix.initrd.new" \
--numeric-owner --owner=0 --group=0 -T -
mv "$output/boot/sortix.initrd.new" "$output/boot/sortix.initrd"