File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1010# nbd devices. Path prefix is /lib/modules/<kernel version>
1111REQUIRED_MODULES=" net/virtio_net block/virtio_blk block/nbd"
1212
13- # Scaleway kernel/initrd HTTP mirror
14- SCW_MIRROR=" http://mirror.scaleway.com/initrd"
15- # current Scaleway initrd for this architecture. Keep it up-to-date.
16- SCW_INITRD=" initrd-Linux-x86_64-v3.12.3"
13+ # current Scaleway IPXE boot script
14+ SCW_IPXE_SCRIPT=" http://169.254.42.42/ipxe"
1715
1816# where to account current Ubuntu kernel version
1917UBUNTU_KERNEL_STAMP=" /boot/.ubuntukernel-version"
@@ -45,7 +43,8 @@ fatal() {
4543rebuild_initrd () {
4644 local workdir=$( mktemp -d)
4745
48- local orig_initrd=$SCW_MIRROR /$SCW_INITRD .gz
46+ # get original initrd url from IPXE
47+ local orig_initrd=$( curl -s $SCW_IPXE_SCRIPT | grep ^initrd | cut -f2 -d" " )
4948 log " Scaleway initrd: $orig_initrd "
5049
5150 log " + get scaleway initrd"
You can’t perform that action at this time.
0 commit comments