File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ kubectl apply -f https://raw.githubusercontent.com/dockur/windows/refs/heads/mas
226
226
227
227
` ` ` yaml
228
228
volumes:
229
- - ./example.iso:/custom .iso
229
+ - ./example.iso:/boot .iso
230
230
` ` `
231
231
232
232
Replace the example path `./example.iso` with the filename of your desired ISO file. The value of `VERSION` will be ignored in this case.
Original file line number Diff line number Diff line change @@ -222,14 +222,12 @@ abortInstall() {
222
222
return 1
223
223
}
224
224
225
- detectCustom () {
225
+ findFile () {
226
226
227
227
local dir file base
228
- local fname=" custom.iso "
228
+ local fname=" $1 "
229
229
local boot=" $STORAGE /windows.boot"
230
230
231
- CUSTOM=" "
232
-
233
231
dir=$( find / -maxdepth 1 -type d -iname " $fname " -print -quit)
234
232
[ ! -d " $dir " ] && dir=$( find " $STORAGE " -maxdepth 1 -type d -iname " $fname " -print -quit)
235
233
@@ -256,12 +254,25 @@ detectCustom() {
256
254
[ -z " $size " ] || [[ " $size " == " 0" ]] && return 0
257
255
258
256
ISO=" $file "
259
- CUSTOM=" $ISO "
257
+ CUSTOM=" $file "
260
258
BOOT=" $STORAGE /windows.$size .iso"
261
259
262
260
return 0
263
261
}
264
262
263
+ detectCustom () {
264
+
265
+ CUSTOM=" "
266
+
267
+ ! findFile " custom.iso" && return 1
268
+ [ -n " $CUSTOM " ] && return 0
269
+
270
+ ! findFile " boot.iso" && return 1
271
+ [ -n " $CUSTOM " ] && return 0
272
+
273
+ return 0
274
+ }
275
+
265
276
extractESD () {
266
277
267
278
local iso=" $1 "
You can’t perform that action at this time.
0 commit comments