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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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