Date: Fri, 07 Sep 2018 14:28:25 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 227808] FreeBSD-11.1-STABLE-amd64-bootonly.iso fails to mount root w/ error 19 on HP DL360 G8 and G9 via PXE Message-ID: <bug-227808-227-Hx53n6OHAf@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-227808-227@https.bugs.freebsd.org/bugzilla/> References: <bug-227808-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227808 --- Comment #22 from vmiller@verisign.com --- FWIW, one can workaround this problem by deploying a bootonly ISO configured with an MFS_IMAGE. EFI_STAGING_SIZE may need adjusting to accommodate larger objects; It defaults to 64. EFI_STAGING_SIZE can be defined within make.con= f, release.conf, or on the command line. While not illustrated below, EFI_STAGING_SIZE is implicitly defined specifying a make.conf that includes= the knob in the environment via MAKE_CONF. MFS_IMAGE is necessary because the project=E2=80=99s bootonly ISO fails to = PXE boot at mountroot() w/ error 19 indicating the boot media cannot be located. The hardware platform is HP DL360g9 in UEFI boot mode. MFS_IMAGE implies a MD_R= OOT root filesystem. The build system doesn't seem provide a mechanism to build a default MFS_IM= AGE and is therefore done outside the context of a build. The following procedu= re builds a binary distribution from the source tree in it's default form (including the default bootonly.iso). It rebuilds the bootonly.iso after generating a root partition and MDROOT kernel. # Create CHROOTDIR w/ GENERIC kernel (also builds binary release) root # cd ~/projects/freebsd root # git checkout releng/11.2 root # release/release.sh -c release/release.conf # Create root.part from ${OBJDIR} bootonly root # cd ${CHROOTDIR}/usr/obj/usr/src/release root # rm bootonly/boot/kernel/kernel root # rm bootonly/boot/geom_md.ko root # echo "/dev/ufs/FreeBSD_Install / ufs rw 0 0" > bootonly/etc/fstab root # makefs -B little -o label=3DFreeBSD_Install root.part bootonly/ root # cd .. && mkdir -p sys/MDROOT root # mv release/root.part sys/MDROOT/ # Build MDROOT kernel root # cat ${CHROOTDIR}/usr/src/sys/amd64/conf/MDROOT include GENERIC ident MDROOT makeoptions MFS_IMAGE=3Droot.part root # eval chroot ${CHROOTDIR} env KERNCONF=3DMDROOT make \=20 -C /usr/src buildkernel # Build bootonly ISO w MDROOT kernel root # mount -t devfs devs ${CHROOTDIR}/dev root # chflags -R noschg ${CHROOTDIR}/usr/obj/usr/src/release/bootonly && \ rm -rf ${CHROOTDIR}/usr/obj/usr/src/bootonly root # eval chroot ${CHROOTDIR} env KERNCONF=3DMDROOT \=20 NOPKG=3D1 NOSRC=3D1 NODOC=3D1 NOPORTS=3D1 make -C /usr/src/release boot= only.iso --=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-227808-227-Hx53n6OHAf>