fix user/group ownership of file.include files
@@ -29,7 +29,7 @@ aptVersion="$("$thisDir/.apt-version.sh" "$targetDir")"
[ "$features" = "full" ] && features=$(ls $featureDir | paste -sd, -)
for i in $(echo "base,$features" | tr ',' ' ' | sort -u); do
if [ -d "$featureDir/$i/file.include" ]; then
- out=$(tar -cC $featureDir/$i/file.include . | tar -xvC $targetDir 2>&1 | grep -v "^./$" | paste -sd' ' -)
+ out=$(tar --owner=0 --group=0 -cC $featureDir/$i/file.include . | tar -xvC $targetDir 2>&1 | grep -v "^./$" | paste -sd' ' -)
echo "copying from $i: $out"
fi
done
