don't touch file permissions in initramfs creation

This commit is contained in:
Tobias Powalowski 2023-03-02 10:53:01 +01:00
parent 35d20b4b53
commit 11c83ae896

View file

@ -241,7 +241,7 @@ _create_initramfs() {
# compress image with zstd # compress image with zstd
cd "${_W_DIR}"/tmp || exit 1 cd "${_W_DIR}"/tmp || exit 1
find . -mindepth 1 -printf '%P\0' | sort -z | find . -mindepth 1 -printf '%P\0' | sort -z |
bsdtar --uid 0 --gid 0 --null -cnf - -T - | bsdtar --null -cnf - -T - |
bsdtar --null -cf - --format=newc @- | zstd --rm -T0> ${_RAM}/${_INITRD} & bsdtar --null -cf - --format=newc @- | zstd --rm -T0> ${_RAM}/${_INITRD} &
sleep 2 sleep 2
while pgrep -x zstd &>/dev/null; do while pgrep -x zstd &>/dev/null; do