Skip to content

Commit 3b6f5b9

Browse files
authored
Update for changes to Scaleway's IPXE script
Scaleway recently changed their `initrd` line to include a `--name`: ``` initrd --name initrd http://169.254.42.24/initrd/initrd-Linux-x86_64-v3.12.4.gz || goto error ``` The `orig_initrd` variable in the script was being incorrectly set to `--name` instead of the URL.
1 parent 28f17d8 commit 3b6f5b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ubuntukernel-load.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ rebuild_initrd() {
4444
local workdir=$(mktemp -d)
4545

4646
# get original initrd url from IPXE
47-
local orig_initrd=$(curl -s $SCW_IPXE_SCRIPT | grep ^initrd | cut -f2 -d" ")
47+
local orig_initrd=$(curl -s $SCW_IPXE_SCRIPT | grep ^initrd | grep -P -o 'http://\S+')
4848
log "Scaleway initrd: $orig_initrd"
4949

5050
log "+ get scaleway initrd"

0 commit comments

Comments
 (0)