Skip to content

Commit c915b50

Browse files
authored
Update patch
1 parent 6c6a561 commit c915b50

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

root/patch

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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 ;;
@@ -9,8 +9,8 @@
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
@@ -33,6 +33,9 @@
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}

0 commit comments

Comments
 (0)