http://cr.opensolaris.org/~wmsch/bug-1559/ http://defect.opensolaris.org/bz/show_bug.cgi?id=1559
bootadm update-menu is run in an ICT to create the grub menu for the target disk. It invokes /sbin/biosdev, which determines the BIOS order of devices, which mkmenu uses. When the USB drive is booted, this order is temporarily disrupted, displacing all other disk numbers by 1 in that order, so it no longer matches the normal order when the USB drive is removed and the computer is rebooted. Fix: mkmenu determines this by checking for the presence of /.liveusb and then decrementing the number for all Windows disks