Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/u-boot/pi3/mkboot

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc -e
# mkboot - prepare disk for booting(8)

fn usage {
	echo >[1=2] usage: mkboot disk
	exit usage
}

if (~ $#* 0)
	usage

disk/mbr $1/data	# keep fdisk happy
{
	echo a p1 . '$'
	echo t p1 FAT32LBA
	echo A p1
	echo w
} | disk/fdisk -b $1/data >/dev/null >[2=1]
disk/format -d -c 32 -l boot $1/dos README dos/*
exit ''

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.