Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Apr 2021 08:01:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 255081] bsdinstall script installerconfig - does not install efi loader
Message-ID:  <bug-255081-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255081

            Bug ID: 255081
           Summary: bsdinstall script installerconfig - does not install
                    efi loader
           Product: Base System
           Version: 13.0-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: nilsjohannsen@gmx.de

I have downloaded the memstick (link below), dd it to a usb stick, added the
`installerconfig` (see below) to `/etc/installerconfig` and tried to install
FreeBSD 13.0-RELEASE automatically to a PC. After rebooting the system came=
 not
up, because the `efi` partition should be created by `bsdinstall` was empty=
 and
did not include the `bootx64.efi`. After mounting the `efi` partition, crea=
ting
the directory and copied the `/boot/loader.efi` to `/efi/boot/bootx64.efi` =
the
new installed system booted up.

After `mount -u -rw /`, adding some `f_dprintf` to
`/usr/libexec/bsdinstall/bootconfig` and a manual installation with `bsdins=
tall
script /root/installerconfig | tee /root/installer.log` it generates this l=
og:
- https://gitlab.com/-/snippets/2105237

This log indicates me, that the `efi` partition is not mounted while the
`bootconfig` script tries to copy the `loader` to it... see below the extra=
ct
from the `installer.log`.

MemStick:
-
https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/13.0/FreeB=
SD-13.0-RELEASE-amd64-memstick.img

installerconfig:
```
export nonInteractive=3D"YES"
export ZFSBOOT_DISKS=3Dada0
DISTRIBUTIONS=3D"kernel.txz base.txz"

#!/bin/sh
# see `man bsdinstall`
sysrc ifconfig_DEFAULT=3DDHCP
sysrc sshd_enable=3DYES
```

installer.log:
```
DEBUG: Running installation step: bootconfig
DEBUG: dialog.subr: DEBUG_SELF_INITIALIZE=3D[]
DEBUG: UNAME_S=3D[FreeBSD] UNAME_P=3D[amd64] UNAME_R=3D[13.0-RELEASE]
DEBUG: common.subr: Successfully loaded.
DEBUG:  uname -m =3D> amd64
DEBUG:  mount =3D> /dev/ufs/FreeBSD_Install on / (ufs, local) devfs on /dev
(devfs) tmpfs on /tmp (tmpfs, local) tmpfs on /var (tmpfs, local)
zroot/ROOT/default on /mnt (zfs, local, noatime, nfsv4acls) zroot/tmp on
/mnt/tmp (zfs, local, noatime, nosuid, nfsv4acls) zroot/usr/home on
/mnt/usr/home (zfs, local, noatime, nfsv4acls) zroot/usr/ports on
/mnt/usr/ports (zfs, local, noatime, nosuid, nfsv4acls) zroot/usr/src on
/mnt/usr/src (zfs, local, noatime, nfsv4acls) zroot/var/audit on /mnt/var/a=
udit
(zfs, local, noatime, noexec, nosuid, nfsv4acls) zroot/var/crash on
/mnt/var/crash (zfs, local, noatime, noexec, nosuid, nfsv4acls) zroot/var/l=
og
on /mnt/var/log (zfs, local, noatime, noexec, nosuid, nfsv4acls) zroot/var/=
mail
on /mnt/var/mail (zfs, local, nfsv4acls) zroot/var/tmp on /mnt/var/tmp (zfs,
local, noatime, nosuid, nfsv4acls) zroot on /mnt/zroot (zfs, local, noatime,
nfsv4acls)
DEBUG: Installing loader.efi onto ESP
DEBUG:  mkdir -p "/mnt/boot/efi//efi/freebsd" "/mnt/boot/efi//efi/boot"
DEBUG:  cp "/mnt/boot/loader.efi" "/mnt/boot/efi//efi/freebsd/loader.efi"
DEBUG: Creating UEFI boot entry
DEBUG:  efibootmgr --create --activate --label "FreeBSD" --loader
"/mnt/boot/efi//efi/freebsd/loader.efi"
DEBUG: Finished configuring ESP
```

Regards from L=C3=BCbeck, Nils

See also:
- https://lists.freebsd.org/pipermail/freebsd-stable/2021-April/093543.html
Reproduced on:
- https://bsd-hardware.info/?probe=3D25df932cdf
- https://bsd-hardware.info/?probe=3Dab8247d8b5

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255081-227>