From owner-freebsd-bugs@freebsd.org Thu Apr 15 08:01:49 2021 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C5DCD5E4AB0 for ; Thu, 15 Apr 2021 08:01:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FLWyP53fzz3JP8 for ; Thu, 15 Apr 2021 08:01:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id ABD8D5E4B23; Thu, 15 Apr 2021 08:01:49 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AB9D75E4C0A for ; Thu, 15 Apr 2021 08:01:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FLWyP4NTXz3JM9 for ; Thu, 15 Apr 2021 08:01:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8974357AB for ; Thu, 15 Apr 2021 08:01:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 13F81nGP080432 for ; Thu, 15 Apr 2021 08:01:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 13F81nSk080431 for bugs@FreeBSD.org; Thu, 15 Apr 2021 08:01:49 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 255081] bsdinstall script installerconfig - does not install efi loader Date: Thu, 15 Apr 2021 08:01:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 13.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: nilsjohannsen@gmx.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Apr 2021 08:01:49 -0000 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.=