Hi all together,

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, 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/installerconfig | 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 
`bootconfig` 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/FreeBSD-13.0-RELEASE-amd64-memstick.img

installerconfig:
```
export nonInteractive="YES"
export ZFSBOOT_DISKS=ada0
DISTRIBUTIONS="kernel.txz base.txz"

#!/bin/sh
# see `man bsdinstall`
sysrc ifconfig_DEFAULT=DHCP
sysrc sshd_enable=YES
```

installer.log:
```
DEBUG: Running installation step: bootconfig
DEBUG: dialog.subr: DEBUG_SELF_INITIALIZE=[]
DEBUG: UNAME_S=[FreeBSD] UNAME_P=[amd64] UNAME_R=[13.0-RELEASE]
DEBUG: common.subr: Successfully loaded.
DEBUG:  uname -m => amd64
DEBUG:  mount => /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, 
nfsv4acls)
zroot/var/crash on /mnt/var/crash (zfs, local, noatime, noexec, nosuid, 
nfsv4acls)
zroot/var/log 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übeck, Nils
Beckhoff Automation GmbH & Co. KG | Managing Director: Dipl. Phys. Hans 
Beckhoff Registered office: Verl, Germany | Register court: Guetersloh HRA 7075


_______________________________________________
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to