Closed sommoMicc closed 4 years ago
Could you please elaborate on the issue? I'm not sure I understand what the problem is.
On Fri, 1 Nov 2019, 18:30 Michele Tagliabue, notifications@github.com wrote:
Hi, I'm trying to create a bootable usb using your systemd-boot configuration. The problem is that it requires the kernel and rootfs to be in xz format and not in gz, while this script compiles them in xz. How can I edit the script to obtain "kernel.xz" and "rootfs.xz" instead of gz format?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ivandavidov/minimal-linux-script/issues/15?email_source=notifications&email_token=AB7VBJEC5P6SPFJLC3IAYJLQRRKUDA5CNFSM4JH5CGQKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HWE3S5Q, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7VBJHCRSR5OVU55Q723DDQRRKUDANCNFSM4JH5CGQA .
Basically I need to create a USB stick with the compiled minimal linux. However, kernel and rootfs are in .gz format. When I create the USB stick with "systemd-boot" and try to boot from the USB I obtain "kernel.gz: Invalid format" error message, so I think that I've to compile kernel and rootfs in xz format instead of gz, but I don't know how
Please be aware that the Minimal Linux Script kernel is compiled with default options and the EFI stub is not included. You should recompile your kernel and include EFI stub, then try again. Refer to one of the many online tutorials which describe how to use the kernel's make menuconfig
, then add the EFI stub option and compile the kernel.
Another simple change is to update the systemd-boot
configuration from xz
to gz
with whatever editor you want. Once you add the EFI stub and you update the boot configuration, there will be no need to recompile the kernel and compress it with xz
.
Hi, I'm trying to create a bootable usb using your systemd-boot configuration. The problem is that it requires the kernel and rootfs to be in xz format and not in gz, while this script compiles them in xz. How can I edit the script to obtain "kernel.xz" and "rootfs.xz" instead of gz format?