tar2fs: do not chown ROOTFS and WORKDIR

Changing ROOTFS owner causes a problem:
created image's root directory is owned
by user executing make instead of root.

Changing WORKDIR owner is unnecessary
because it will be removed anyways.
This commit is contained in:
Mikhail Gordeev 2019-02-26 19:01:07 +03:00 committed by Michael Shigorin
parent 0315b4e232
commit 7f1ec09c9b

View File

@ -323,7 +323,7 @@ elif [ -x "$ROOTFS"/usr/sbin/grub-autoupdate ]; then
fi
if [ -n "$SUDO_USER" ]; then
chown "$SUDO_USER:$(id -g "$SUDO_USER")" "$IMG" "$ROOTFS" "$WORKDIR" ||:
chown "$SUDO_USER:$(id -g "$SUDO_USER")" "$IMG" ||:
fi
# maybe qemu interpreter was copied to chroot;
# this is no longer necessary, remove