add -t flag to mkcpuboot, to skip building nvram Reference: /n/atom/patch/applied2013/cpuboott Date: Mon Oct 14 01:11:45 CES 2013 Signed-off-by: quanstro@quanstro.net --- /sys/src/cmd/disk/mkcpuboot Mon Oct 14 01:11:25 2013 +++ /sys/src/cmd/disk/mkcpuboot Mon Oct 14 01:11:25 2013 @@ -11,7 +11,7 @@ exit fail } -flagfmt='l loader,p pbs,m mbr,k kernel' +flagfmt='t,l loader,p pbs,m mbr,k kernel' args='drive' if(! ifs=() eval `{aux/getflags $*} || ! ~ $#* 1){ aux/usage @@ -55,4 +55,6 @@ fail missing required 9fat files disk/format -b $pbs -d -r 2 $d/9fat \ 9fat/^($bl plan9.ini $bk $extra) || fail -nvram=$d/nvram auth/wrkey +if(~ $#flagt 0) + nvram=$d/nvram auth/wrkey +~ 1 1 --- /386/bin/disk/mkcpuboot Mon Oct 14 01:11:25 2013 +++ /386/bin/disk/mkcpuboot Mon Oct 14 01:11:25 2013 @@ -11,7 +11,7 @@ exit fail } -flagfmt='l loader,p pbs,m mbr,k kernel' +flagfmt='t,l loader,p pbs,m mbr,k kernel' args='drive' if(! ifs=() eval `{aux/getflags $*} || ! ~ $#* 1){ aux/usage @@ -55,4 +55,6 @@ fail missing required 9fat files disk/format -b $pbs -d -r 2 $d/9fat \ 9fat/^($bl plan9.ini $bk $extra) || fail -nvram=$d/nvram auth/wrkey +if(~ $#flagt 0) + nvram=$d/nvram auth/wrkey +~ 1 1 --- /sys/man/8/mkcpuboot Mon Oct 14 01:11:25 2013 +++ /sys/man/8/mkcpuboot Mon Oct 14 01:11:25 2013 @@ -4,6 +4,8 @@ .SH SYNOPSIS .B disk/mkcpuboot [ +.B -t +][ .B -m .I mbr ][ @@ -39,6 +41,12 @@ .BR /386/9load , .BR /amd64/9cpu , respectively. +The +.B -t +flag skips building +.SM NVRAM +(see +.IR auth (8)). .SH EXAMPLE To prepare a bootable kernel using the defaults on .BR /dev/sdE0 , @@ -62,7 +70,7 @@ .IR authsrv (2), .IR auth (8), .IR booting (8), -.IR pcipl (8) +.IR iplpc (8) .SH BUGS Using fat is dubious. .I Iplpc