mirror of
https://github.com/dockur/windows.git
synced 2026-08-03 12:37:20 +01:00
fix: Preserve installation ISO when marker creation fails (#1856)
This commit is contained in:
+10
-2
@@ -152,8 +152,16 @@ markWindowsBooted() {
|
||||
# Remove CD-ROM ISO after install
|
||||
! ready && return 0
|
||||
|
||||
touch "$file"
|
||||
! setOwner "$file" && error "Failed to set the owner for \"$file\" !"
|
||||
if ! touch "$file"; then
|
||||
error "Failed to create Windows installation marker!"
|
||||
return 0
|
||||
fi
|
||||
|
||||
if ! setOwner "$file"; then
|
||||
rm -f "$file"
|
||||
error "Failed to set the owner for \"$file\" !"
|
||||
return 0
|
||||
fi
|
||||
|
||||
if ! disabled "$REMOVE"; then
|
||||
rm -f "$BOOT" 2>/dev/null || true
|
||||
|
||||
Reference in New Issue
Block a user