Changeset View
Changeset View
Standalone View
Standalone View
release/amd64/make-memstick.sh
Context not available. | |||||
rm ${1}/etc/fstab | rm ${1}/etc/fstab | ||||
rm ${1}/etc/rc.conf.local | rm ${1}/etc/rc.conf.local | ||||
dd if=/dev/zero of=efiboot.img bs=1k count=33292 | |||||
rpokala: A comment for the magic `count` value would be appreciated. | |||||
device=`mdconfig -a -t vnode -f efiboot.img` | |||||
newfs_msdos -F 32 -c 1 -L EFISYS /dev/$device | |||||
Done Inline ActionsI'm not at all sure I like this construct... How do we know what SRCTOP is? imp: I'm not at all sure I like this construct...
How do we know what SRCTOP is?
Also the typical… | |||||
mkdir efi | |||||
mount -t msdosfs /dev/$device efi | |||||
Done Inline Actionsdoes makefs support msdos yet? imp: does makefs support msdos yet? | |||||
Done Inline ActionsNot according to makefs(8). bcran: Not according to makefs(8).
It looks like work on https://reviews.freebsd.org/D16438 stalled in… | |||||
Done Inline ActionsIt might make sense to use mktemp to create a better name. That would allow multiple copies of this script to be run at the same time by different users (or the same one). imp: It might make sense to use mktemp to create a better name. That would allow multiple copies of… | |||||
mkdir -p efi/efi/boot | |||||
cp -p "${1}/boot/loader.efi" efi/efi/boot/bootx64.efi | |||||
umount efi | |||||
rmdir efi | |||||
mdconfig -d -u $device | |||||
Done Inline ActionsYou have this same code in multiple .sh files (modulo filename). Any chance you could make it a function somewhere? imp: You have this same code in multiple .sh files (modulo filename). Any chance you could make it a… | |||||
mkimg -s mbr \ | mkimg -s mbr \ | ||||
-b ${1}/boot/mbr \ | -b ${1}/boot/mbr \ | ||||
-p efi:=${1}/boot/boot1.efifat \ | -p efi:=efiboot.img \ | ||||
-p freebsd:-"mkimg -s bsd -b ${1}/boot/boot -p freebsd-ufs:=${2}.part" \ | -p freebsd:-"mkimg -s bsd -b ${1}/boot/boot -p freebsd-ufs:=${2}.part" \ | ||||
-a 2 \ | -a 2 \ | ||||
-o ${2} | -o ${2} | ||||
rm efiboot.img | |||||
rm ${2}.part | rm ${2}.part | ||||
Context not available. |
A comment for the magic count value would be appreciated.