Rob McMahon wrote:
> andrew wrote:
>>> 17451: open("/rpool/boot/grub/menu.lst", O_RDONLY) = 6
>>> 17451: fstat64(6, 0x08045F50) = 0
>>> 17451: fstat64(6, 0x08045E80) = 0
>>> 17451: ioctl(6, TCGETA, 0x08045F1C) Err#25 ENOTTY
>>> 17451: read(6, " s p l a s h i m a g e ".., 1536) = 1046
>>> 17451: llseek(6, 0xFFFFFFFFFFFFFF69, SEEK_CUR) = 895
>>> 17451: close(6) = 0
>>>
>> This looks broken - it is reading in the first 1536 bytes of menu.lst (which
>> is presumably the size of the file as returned by the call to fstat64).
>> However, only 1046 bytes are returned. It then tries to seek another 895
>> bytes past the end of the file, then closes it.
>>
>> Can you try manually adding an entry for opensolaris-7 to the grub menu and
>> booting that? Just copy the lines for opensolaris-5 and change any ocurrence
>> of opensolaris-5 to opensolaris-7.
>>
> Well, 1046 is the size of the file, and opensolaris-7 has made it in there:
>
> > ls -l /rpool/boot/grub/menu.lst
> -rw------- 1 root root 1046 2008-08-20 10:48
> /rpool/boot/grub/menu.lst
> > wc /rpool/boot/grub/menu.lst
> 26 89 1046 /rpool/boot/grub/menu.lst
> > tail -11 /rpool/boot/grub/menu.lst
> #============ End of LIBBE entry =============
> title opensolaris-5
> bootfs rpool/ROOT/opensolaris-5
> kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS
> module$ /platform/i86pc/$ISADIR/boot_archive
> #============ End of LIBBE entry =============
> title opensolaris-7
> bootfs rpool/ROOT/opensolaris-7
> kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS
> module$ /platform/i86pc/$ISADIR/boot_archive
> #============ End of LIBBE entry =============
> >
>
> I don't know where 1536 comes in. Hmm, I wonder if the issue is that it
> *is* already in there (maybe from a previous failed attempt).
>
> Cheers,
>
> Rob
>
The fact that it's in there shouldn't be a problem because it's the create the
adds this entry. The activate code should be verifying that the entry is there
and only adding it if it doesn't fine the entry.
Looking at the truss output I'm not sure where the error is originally coming
from. :-(
-evan
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss