Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Paste
P484
update ESP
Active
Public
Actions
Authored by
allanjude
on Fri, Feb 19, 10:26 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
imp
truncate -s 200m /tmp/efiboot.img
$MDDEV=$(mdconfig -a -t vnode -f /tmp/efiboot.img)
newfs_msdos -L EFISYS -F 32 -c 1 /dev/$MDDEV
mkdir /tmp/makefs
mount -t msdosfs /dev/$MDDEV /tmp/makefs
mkdir -p "/tmp/makefs/EFI/BOOT"
cp "${DESTDIR}/boot/loader.efi" "/tmp/makefs/EFI/BOOT/BOOTX64.efi"
umount /tmp/makefs
mdconfig -d -u $MDDEV
dd if=/tmp/efiboot.img of=/dev/ada0p1 bs=1m
Event Timeline
allanjude
created this paste.
Fri, Feb 19, 10:26 PM
2021-02-19 22:26:09 (UTC+0)
allanjude
created this object in space
S1 Global
.
imp
added a subscriber:
imp
.
Fri, Feb 19, 10:27 PM
2021-02-19 22:27:32 (UTC+0)
Comment Actions
cp /boot/boot1.efi /mnt/efi/boot/bootx64.efi
is easier :)
Log In to Comment