Gerard Henry wrote:
> J?rgen Keil wrote:
> > If you set compression=gzip, you would still get the "Error 16:
> > Inconsistent filesystem structure", though.
>  (Workaround would be to mount the zfs root, set compression=lzjb and
>  rewrite the /platform/i86pc/kernel/$ISADIR/unix and
>  /platform/i86pc/$ISADIR/boot_archive file)
>
> could you be more precise?
> mount the zfs root and set compression=lzjb, ok, i
> see (i don't have access to my laptop now)
> but the following? is executing installgrub enough?

No, installgrub does touch the above files.

> or "bootadm update-archive"?

That would work for the boot_archive file, if you force
creating a new archive, e.g. with

   touch /mnt/etc/system
   bootadm update-archive -R /mnt

(assuming the zfs root is monted at /mnt)

You still have to change the compression for the
unix file, from gzip to lzjb compressed data blocks.


Something like this should work

zfs set compression=lzjb rpool/ROOT/opensolaris

cp /platform/i86pc/kernel/amd64/unix /platform/i86pc/kernel/amd64/unix.temp
mv /platform/i86pc/kernel/amd64/unix.temp /platform/i86pc/kernel/amd64/unix

cp /platform/i86pc/kernel/unix /platform/i86pc/kernel/unix.temp
mv /platform/i86pc/kernel/unix.temp /platform/i86pc/kernel/unix

cp /platform/i86pc/amd64/boot_archive /platform/i86pc/amd64/boot_archive.temp
mv /platform/i86pc/amd64/boot_archive.temp /platform/i86pc/amd64/boot_archive

cp /platform/i86pc/boot_archive /platform/i86pc/boot_archive.temp
mv /platform/i86pc/boot_archive.temp /platform/i86pc/boot_archive


(adjiust /platform/i86pc/... to wherever you have the root fs mounted)
-- 
This message posted from opensolaris.org

Reply via email to