Lines Matching full:boot
4 # Installs/updates the necessary boot blocks for the desired boot environment
7 # be a boot tool for regression testing.
59 mkdir -p "${stagedir}/EFI/BOOT"
74 cp "$1" "${stagedir}/EFI/BOOT/${efibootname}.efi"
123 # Check if /EFI/BOOT/BOOTxx.EFI is the FreeBSD boot1.efi
125 efibootfile="${mntpt}/EFI/BOOT/${efibootname}.efi"
127 isboot1=$(strings "${efibootfile}" | grep "FreeBSD EFI boot block")
130 …echo "Only ${kbfree}KB space remaining: removing old FreeBSD boot1.efi file /EFI/BOOT/${efibootnam…
132 rmdir "${mntpt}/EFI/BOOT"
134 …KB space remaining on ESP: renaming old boot1.efi file /EFI/BOOT/${efibootname}.efi /EFI/BOOT/${ef…
135 mv "${efibootfile}" "${mntpt}/EFI/BOOT/${efibootname}-old.efi"
159 # since we only use it to boot the 64-bit kernel
169 echo "Creating UEFI boot entry for FreeBSD"
172 die "Failed to create new boot entry"
180 echo "Marking UEFI boot entry ${bootentry} active"
183 echo "Existing UEFI FreeBSD boot entry found: not creating a new one"
187 if [ ! -d "${mntpt}/EFI/BOOT" ]; then
188 mkdir -p "${mntpt}/EFI/BOOT"
190 cp "${file}" "${mntpt}/EFI/BOOT/${efibootname}.efi"
222 make_esp /dev/${dev}s${s} ${dst}/boot/loader.efi
233 make_esp /dev/${dev}p${idx} ${dst}/boot/loader.efi
240 idx=$(find_part $dev "freebsd-boot")
242 die "No freebsd-boot partition found"
260 idx=$(find_part $dev "freebsd-boot")
262 die "No freebsd-boot partition found"
312 doit gpart bootcode -b ${dst}/boot/mbr ${dev}
313 dd if=${dst}/boot/zfsboot of=/tmp/zfsboot1 count=1
315 sysctl kern.geom.debugflags=0x10 # Put boot2 into ZFS boot slot
316 doit dd if=${dst}/boot/zfsboot of=/dev/${dev}s${s}a skip=1 seek=1024
381 printf ' bootdev device to install the boot code on\n'
396 # Note: we really don't support geli boot in this script yet.
437 # For gpt, we need to install pmbr as the primary boot loader
439 gpt0=${srcroot}/boot/pmbr
440 gpt2=${srcroot}/boot/gptboot
441 gptzfs2=${srcroot}/boot/gptzfsboot
444 mbr0=${srcroot}/boot/mbr
445 mbr2=${srcroot}/boot/boot
452 …eval boot_${geli}_${scheme}_${fs}_${bios} $dev $srcroot $opts || echo "Unsupported boot env: ${gel…