fix: Inherit owner from parent folder (#1526)

This commit is contained in:
Kroese
2025-10-22 10:06:26 +02:00
committed by GitHub
parent c1c44c4da7
commit 122d1ff98e
3 changed files with 74 additions and 19 deletions

View File

@@ -105,7 +105,9 @@ finish() {
if [ ! -f "$STORAGE/windows.boot" ] && [ -f "$BOOT" ]; then
# Remove CD-ROM ISO after install
if ready; then
touch "$STORAGE/windows.boot"
local file="$STORAGE/windows.boot"
touch "$file"
! setOwner "$file" && error "Failed to set the owner for \"$file\" !"
if [[ "$REMOVE" != [Nn]* ]]; then
rm -f "$BOOT" 2>/dev/null || true
fi