mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 19:55:49 +00:00
fix: Support read-only images
This commit is contained in:
parent
629db7e4a6
commit
66b82f139f
1 changed files with 3 additions and 2 deletions
|
|
@ -68,10 +68,11 @@ finish() {
|
|||
if [ ! -f "$STORAGE/windows.boot" ] && [ -f "$STORAGE/$BASE" ]; then
|
||||
# Remove CD-ROM ISO after install
|
||||
if ready; then
|
||||
rm -f "$STORAGE/$BASE"
|
||||
if rm -f "$STORAGE/$BASE" 2>/dev/null; then
|
||||
touch "$STORAGE/windows.boot"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
pid="/var/run/tpm.pid"
|
||||
[ -s "$pid" ] && pKill "$(<"$pid")"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue