File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1- --- casper 2020-04-08 21:24:58.000000000 +0000
2- +++ casper.new 2020-04-23 17:13:23.139096816 +0000
3- @@ -47 ,7 +47 ,7 @@
1+ --- casper 2020-04-08 21:24:58.000000000 +0000
2+ +++ casper.new 2020-04-23 17:13:23.139096816 +0000
3+ @@ -46 ,7 +46 ,7 @@ parse_cmdline() {
44 STATICIP="frommedia"
55 fi
66 export STATICIP ;;
99 export NETBOOT=url
1010 export URL="${x#url=}" ;;
1111 uuid=*)
12- @@ -256 ,22 +256,13 @@
13-
12+ @@ -255 ,22 +255,16 @@ do_nfsmount() {
13+
1414 do_urlmount() {
1515 rc=1
1616- modprobe "${MP_QUIET}" isofs
3333+ if /bin/curl -L ${URL} -o ${mountpoint}/casper/root.squashfs; then rc=0; fi
3434+ if [ ! -z "$(/bin/curl -sI "${URL}".part2 | grep "200 OK\|302 Found" || :)" ]; then
3535+ if /bin/curl -L ${URL}.part2 -o ->> ${mountpoint}/casper/root.squashfs; then rc=0; fi
36+ + fi
37+ + if [ ! -z "$(/bin/curl -sI "${URL}".part3 | grep "200 OK\|302 Found" || :)" ]; then
38+ + if /bin/curl -L ${URL}.part3 -o ->> ${mountpoint}/casper/root.squashfs; then rc=0; fi
3639 fi
3740-
3841 return ${rc}
You can’t perform that action at this time.
0 commit comments