Skip to content

Commit

Permalink
Update patch
Browse files Browse the repository at this point in the history
  • Loading branch information
antonym authored Oct 24, 2023
1 parent 651e0d8 commit 5af8f4c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions root/patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- casper 2020-04-08 21:24:58.000000000 +0000
+++ casper.new 2020-04-23 17:13:23.139096816 +0000
@@ -47,7 +47,7 @@
--- casper 2020-04-08 21:24:58.000000000 +0000
+++ casper.new 2020-04-23 17:13:23.139096816 +0000
@@ -46,7 +46,7 @@ parse_cmdline() {
STATICIP="frommedia"
fi
export STATICIP ;;
Expand All @@ -9,8 +9,8 @@
export NETBOOT=url
export URL="${x#url=}" ;;
uuid=*)
@@ -256,22 +256,13 @@
@@ -255,22 +255,16 @@ do_nfsmount() {

do_urlmount() {
rc=1
- modprobe "${MP_QUIET}" isofs
Expand All @@ -33,6 +33,9 @@
+ if /bin/curl -L ${URL} -o ${mountpoint}/casper/root.squashfs; then rc=0; fi
+ if [ ! -z "$(/bin/curl -sI "${URL}".part2 | grep "200 OK\|302 Found" || :)" ]; then
+ if /bin/curl -L ${URL}.part2 -o ->> ${mountpoint}/casper/root.squashfs; then rc=0; fi
+ fi
+ if [ ! -z "$(/bin/curl -sI "${URL}".part3 | grep "200 OK\|302 Found" || :)" ]; then
+ if /bin/curl -L ${URL}.part3 -o ->> ${mountpoint}/casper/root.squashfs; then rc=0; fi
fi
-
return ${rc}
Expand Down

0 comments on commit 5af8f4c

Please sign in to comment.