[Buildroot] [PATCH v2 1/1] boot/systemd-boot: new package

James Hilliard james.hilliard1 at gmail.com
Sat Dec 15 10:47:39 UTC 2018


On Sat, Dec 15, 2018 at 3:43 AM Peter Korsgaard <peter at korsgaard.com> wrote:
>
> >>>>> "Yann" == Yann E MORIN <yann.morin.1998 at free.fr> writes:
>
> Hi,
>
>  > Also, I wonder if it ever makes sense to provide systemd-boot to
>  > non-systemd init systems to begin with.
>
> I agree with everything Yann wrote.
>
> One feature of systemd-boot that some people (E.G. me) might find
> interesting even if they do not use systemd as init system is the fact
> that it comes with an EFI stub loader that allows you to combine Linux
> kernel, hardcoded command line and initramfs into a single (potentially
> signed) EFI PE image with objcopy:
Yeah, could be a useful option.
>
> objcopy \
>   --add-section .cmdline=cmdline --change-section-vma .osrel=0x20000 \
>   --add-section .linux=linux --change-section-vma .linux=0x30000 \
>   --add-section .initrd=initrd --change-section-vma .initrd=0x3000000 \
>   stubx64.efi linux.efi
>
> For some use cases (E.G. if these are not built by the same defconfigs
> or for A/B boot with different Linux command line) this late binding may
> be preferable to just building a Linux kernel with compile time
> hardcoded command line and embedded initramfs.
Yeah, maybe there should be a config option for that as well, I'm just
using the kernel compile time options.
>
> --
> Bye, Peter Korsgaard


More information about the buildroot mailing list