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:
parent
0315b4e232
commit
7f1ec09c9b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user