Flatcar can't benefit from this performance boost for several reasons,
the main one being the use of binary packages.
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
The final part of the script differed only the name of the qemu binary
to execute and in network device driver (virtio-net-pci on amd64 vs
virtio-net-device on arm64). virtio-net-pci seems to be working also
on arm64, so simplify the code to avoid repetition.
There's no need to differentiate between amd64 and arm64 boards here
any more. This also adds bootindex=1 option to the -device flag, so we
can pass more secondary disks without affecting the boot order.
This version writes fewer temporary files and tries cpio multiple times
for concatenated archives again.
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
Again, zstd is faster but we're getting seriously short on space. Unlike
the kernel itself, this applies to both amd64 and arm64.
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
zstd is faster but we're getting seriously short on space.
Unfortunately, the arm64 kernel still cannot be compressed, but it has
benefited from another space saving measure recently, and GRUB also
takes up less space in /boot.
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
We need this for dracut-install to have JSON support. It doesn't matter
that the Flatcar image will still have v256.
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
Updating only the SDK to systemd-257 caused this script to break, as it
saw this version being pulled in as a BDEPEND and then tried to build it
using the board profile. See the comment for details.
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
These dependencies are always present in CI by the time this package
gets built, but this may not be the case when building manually. This
leads to gaps in the initrd and ultimately failed boots.
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
The missing soname symlinks were causing ldconfig to create them later,
breaking the sandbox. The upstream Makefile installs them for you, so
let's use it even though it needs some taming.
This adds the systemd timer to refresh the NSS cache. This seems
important, and I can't see any reason to omit it.
This also moves the binaries from /usr/libexec to /usr/bin. Upstream has
always put them in /usr/bin, and putting them elsewhere requires tweaks.
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>