Fix update-initrd(8) not atomically replacing the initrd.
This commit is contained in:
parent
fafaf86ddb
commit
dc1fb1ceca
|
@ -94,5 +94,6 @@ EOF
|
||||||
fi
|
fi
|
||||||
mkdir -p "$output/boot"
|
mkdir -p "$output/boot"
|
||||||
LC_AL=C ls -A "$tmp" |
|
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 -
|
--numeric-owner --owner=0 --group=0 -T -
|
||||||
|
mv "$output/boot/sortix.initrd.new" "$output/boot/sortix.initrd"
|
||||||
|
|
Loading…
Reference in New Issue