Project

General

Profile

Bug #11782

Updated by Andy Fiddaman about 2 years ago

 
 A command such as the following: 
 <pre> 
 reboot -f -- "/platform/i86pc/kernel/amd64/unix -B console=ttya" 
 </pre> 
 causes reboot to invoke @uadmin()@ with boot arguments including a quoted boot path. uadmin calls bootadm: which in turns invokes (something like): 
 <pre> 
 bootadm -m update_temp -o '/platform/i86pc/kernel/amd64/unix -B zfs-bootfs=rpool/ROOT/20191003,bootpath="/pci@0,0/pci1af4,2@4/blkdev@0,0:b" -B console=ttya' 
 </pre> 
 which creates a @/boot/transient.conf@ file that loader cannot parse due to the quote characters around the bootpath. 
 <pre> 
 % cat /boot/transient.conf 
 bootfile="/platform/i86pc/kernel/amd64/unix;unix" 
 boot-args="-B zfs-bootfs=rpool/ROOT/20191003,bootpath="/pci@0,0/pci1af4,2@4/blkdev@0,0:b" -B console=ttya" 
 </pre> 

 One place that this occurs is when a stale boot archive is detected during boot. In that case @filesystem/usr@ reboots the system using a command such as this.

Back