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
|
fi
|
||||||
|
|
||||||
if [ -n "$SUDO_USER" ]; then
|
if [ -n "$SUDO_USER" ]; then
|
||||||
chown "$SUDO_USER:$(id -g "$SUDO_USER")" "$IMG" "$ROOTFS" "$WORKDIR" ||:
|
chown "$SUDO_USER:$(id -g "$SUDO_USER")" "$IMG" ||:
|
||||||
fi
|
fi
|
||||||
# maybe qemu interpreter was copied to chroot;
|
# maybe qemu interpreter was copied to chroot;
|
||||||
# this is no longer necessary, remove
|
# this is no longer necessary, remove
|
||||||
|
Loading…
Reference in New Issue
Block a user