Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 2021 09:23:13 +0000
From:      Nils Johannsen <N.Johannsen@beckhoff.com>
To:        "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>
Subject:   13.0-RELEASE MemStick does not install EFI Loader
Message-ID:  <55d4a8aa47674322bd12c5e856345ac4@beckhoff.com>

next in thread | raw e-mail | index | archive | help
Hi all together,

I have downloaded the memstick (link below), dd it to a usb stick, added th=
e `installerconfig` (see below) to `/etc/installerconfig` and tried to inst=
all 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` p=
artition, creating 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 `bsdinstall script /root/instal=
lerconfig | tee /root/installer.log` it generates this log:
- https://gitlab.com/-/snippets/2105237

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

MemStick:
- https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/13.0/Fre=
eBSD-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/audit (zfs, local, noatime, noexec, nosuid, nfs=
v4acls)
zroot/var/crash on /mnt/var/crash (zfs, local, noatime, noexec, nosuid, nfs=
v4acls)
zroot/var/log on /mnt/var/log (zfs, local, noatime, noexec, nosuid, nfsv4ac=
ls)
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/boo=
t/efi//efi/freebsd/loader.efi"
DEBUG: Finished configuring ESP
```

Regards from L=FCbeck, Nils
Beckhoff Automation GmbH & Co. KG | Managing Director: Dipl. Phys. Hans Bec=
khoff Registered office: Verl, Germany | Register court: Guetersloh HRA 707=
5





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