mirror of
https://github.com/dockur/windows.git
synced 2026-02-05 00:19:44 +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
|
if [ ! -f "$STORAGE/windows.boot" ] && [ -f "$STORAGE/$BASE" ]; then
|
||||||
# Remove CD-ROM ISO after install
|
# Remove CD-ROM ISO after install
|
||||||
if ready; then
|
if ready; then
|
||||||
rm -f "$STORAGE/$BASE"
|
if rm -f "$STORAGE/$BASE" 2>/dev/null; then
|
||||||
touch "$STORAGE/windows.boot"
|
touch "$STORAGE/windows.boot"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
pid="/var/run/tpm.pid"
|
pid="/var/run/tpm.pid"
|
||||||
[ -s "$pid" ] && pKill "$(<"$pid")"
|
[ -s "$pid" ] && pKill "$(<"$pid")"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue