Skip to content

Commit 4a034be

Browse files
committed
*: prefer systemd-boot stub to gummiboot
supported on more versions of linux (6.2+ without EFI_HANDOVER) and supports more features (like splash images, better secureboot support)
1 parent 5747d30 commit 4a034be

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

bin/generate-zbm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,8 +683,8 @@ sub createUEFIBundle {
683683

684684
# For now, default stub locations are x86_64 only
685685
my @uefi_stub_defaults = qw(
686-
/usr/lib/gummiboot/linuxx64.efi.stub
687686
/usr/lib/systemd/boot/efi/linuxx64.efi.stub
687+
/usr/lib/gummiboot/linuxx64.efi.stub
688688
);
689689

690690
foreach my $stubloc (@uefi_stub_defaults) {

docs/guides/void-linux/_include/zbm-install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Install ZFSBootMenu
1515

1616
.. code-block::
1717
18-
xbps-install -S zfsbootmenu gummiboot-efistub
18+
xbps-install -S zfsbootmenu systemd-boot-efistub
1919
2020
.. include:: ../_include/configure-gen-zbm.rst
2121

docs/man/generate-zbm.5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ EFI
120120

121121
**Stub**
122122

123-
The path to the EFI stub loader used to boot the unified bundle. If not set, a default of ``/usr/lib/gummiboot/linuxx64.efi.stub`` is assumed.
123+
The path to the EFI stub loader used to boot the unified bundle. If not set, a default of either ``/usr/lib/systemd/boot/efi/linuxx64.efi.stub`` or ``/usr/lib/gummiboot/linuxx64.efi.stub`` is assumed.
124124

125125
EXAMPLE
126126
=======

releng/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ RUN --mount=type=cache,target=/var/cache/xbps <<-EOF
5656
# Install ZFSBootMenu dependencies and components necessary to build images
5757
zbm_deps="$(xbps-query -Rp run_depends zfsbootmenu)"
5858
xbps-install -y ${KERNELS} ${kern_headers} ${zbm_deps} \
59-
zstd gummiboot-efistub curl yq-go bash kbd \
59+
zstd systemd-boot-efistub curl yq-go bash kbd \
6060
dracut mkinitcpio dracut-network gptfdisk iproute2 iputils parted \
6161
dosfstools e2fsprogs efibootmgr cryptsetup openssh util-linux kpartx
6262

releng/docker/image-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ buildah run "${host_mounts[@]}" "${container}" \
182182

183183
buildah run "${host_mounts[@]}" "${container}" \
184184
xbps-install -y "${kern_series[@]}" "${kern_headers[@]}" \
185-
git zstd gummiboot-efistub curl yq-go bash kbd \
185+
git zstd systemd-boot-efistub curl yq-go bash kbd \
186186
dracut mkinitcpio dracut-network gptfdisk iproute2 iputils parted \
187187
curl dosfstools e2fsprogs efibootmgr cryptsetup openssh util-linux kpartx
188188

testing/helpers/chroot-void.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ sed -i 's/^#PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config
6969
# Pre-install zfsbootmenu
7070
if [ -x /root/zbm-populate.sh ]; then
7171
xbps-query -Rp run_depends zfsbootmenu | xargs xbps-install -y
72-
xbps-install -y git gummiboot-efistub
72+
xbps-install -y git systemd-boot-efistub
7373
SKIP_PERL=yes /root/zbm-populate.sh
7474
rm /root/zbm-populate.sh
7575
fi

testing/helpers/zbm-populate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if [ -f /etc/zfsbootmenu/config.yaml ]; then
1717
-e '/BootMountPoint:/d' -i /etc/zfsbootmenu/config.yaml
1818

1919
# Build the EFI executable if the stub is available
20-
for stubdir in /usr/lib/gummiboot /usr/lib/systemd/boot/efi; do
20+
for stubdir in /usr/lib/systemd/boot/efi /usr/lib/gummiboot; do
2121
[ -r "${stubdir}/linuxx64.efi.stub" ] || continue
2222
sed -e 's/Enabled:.*/Enabled: true/' -i /etc/zfsbootmenu/config.yaml
2323
break

0 commit comments

Comments
 (0)