-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check for zimage style kernel on aarch64+sles (#553)
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
components/provisioning/warewulf-vnfs/SOURCES/warewulf-vnfs.bootstrap.aarch64.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- wwbootstrap.orig 2017-10-13 18:34:31.987826928 -0400 | ||
+++ wwbootstrap 2017-10-13 18:39:15.904564374 -0400 | ||
@@ -153,7 +153,7 @@ | ||
|
||
mkpath("$tmpdir/initramfs"); | ||
|
||
-if (! -f "$opt_chroot/boot/vmlinuz-$opt_kversion" && -f "$opt_chroot/boot/vmlinux-$opt_kversion.gz") { | ||
+if (! -f "$opt_chroot/boot/Image-$opt_kversion" ) { | ||
&eprint("Can't locate the boot kernel\n"); | ||
exit 1; | ||
} | ||
@@ -308,12 +308,9 @@ | ||
close MODCONFFILE; | ||
} | ||
|
||
-# Attempt to gunzip the kernel, aarch64 kernels are compressed and iPXE can't boot gzip compressed kernels. | ||
-# Note, if the kernel isn't a gzip, IO::Uncompress::Gunzip makes a direct copy of the file. | ||
-if (-e "$opt_chroot/boot/vmlinuz-$opt_kversion") { | ||
- gunzip "$opt_chroot/boot/vmlinuz-$opt_kversion" => "$tmpdir/kernel" or die "gunzip of kernel failed: $GunzipError\n"; | ||
-} elsif (-e "$opt_chroot/boot/vmlinux-$opt_kversion.gz") { | ||
- gunzip "$opt_chroot/boot/vmlinux-$opt_kversion.gz" => "$tmpdir/kernel" or die "gunzip of kernel failed: $GunzipError\n"; | ||
+# copy zimage | ||
+if( -e "$opt_chroot/boot/Image-$opt_kversion" ) { | ||
+ copy("$opt_chroot/boot/Image-$opt_kversion", "$tmpdir/kernel"); | ||
} | ||
|
||
&nprint("Building and compressing bootstrap\n"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters