9529 libefi: efi_alloc_and_read should check for PMBR
Review Request #348 - Created Feb. 6, 2017 and submitted - Latest diff uploaded
Information | |
---|---|
Toomas Soome | |
illumos-gate | |
9529 | |
75b6047... | |
Reviewers | |
general | |
9529 libefi: efi_alloc_and_read should check for PMBR
Trying to read MBR only usb stick:
installboot -i /dev/rdsk/c7t0d0p1
open: No such file or directory
open: No such file or directory
read: Bad file number
Error reading bootblock from /dev/rds1using fixed libefi:
env LD_LIBRARY_PATH=./lib/libefi/i386 installboot -i /dev/rdsk/c7t0d0p1
Extended version string: 1.1-2017.0.0.1
MD5 hash: e794b290bc596560f6980cccc78b0b4aenv LD_LIBRARY_PATH=./lib/libefi/i386 installboot -i /dev/rdsk/c3t0d0s1
Extended version string: 1.1-2017.0.0.2
MD5 hash: dfd0678f1e81dcc72cd4557881b520e8Also tested newfs:
root@test:/home/tsoome# newfs /dev/zvol/rdsk/raid/test newfs: construct a new file system /dev/zvol/rdsk/raid/test: (y/n)? y Warning: 4096 sector(s) in last cylinder unallocated /dev/zvol/rdsk/raid/test: 2097152 sectors in 342 cylinders of 48 tracks, 128 sectors 1024,0MB in 25 cyl groups (14 c/g, 42,00MB/g, 20160 i/g) super-block backups (for fsck -F ufs -o b=#) at: 32, 86176, 172320, 258464, 344608, 430752, 516896, 603040, 689184, 775328, 1292192, 1378336, 1464480, 1550624, 1636768, 1722912, 1809056, 1895200, 1981344, 2067488 root@test:/home/tsoome# fstyp /dev/zvol/rdsk/raid/test ufs root@test:/home/tsoome# root@test:/usr/lib# newfs /dev/zvol/rdsk/raid/swap newfs: construct a new file system /dev/zvol/rdsk/raid/swap: (y/n)? y /dev/zvol/dsk/raid/swap is currently used by swap. Please see swap(1M). root@test:/usr/lib# newfs /dev/zvol/rdsk/raid/dump newfs: construct a new file system /dev/zvol/rdsk/raid/dump: (y/n)? y /dev/zvol/dsk/raid/dump is in use by dump. Please see dumpadm(1M). root@test:/usr/lib#