Peter Sramel wrote:
> Hi all,
> 
> I tried to change miniroot on indiana and after I tried to create image with 
> this modified miniroot, but I am not able to boot on livecd. Steps what I did 
> are bellow:
> 
> 1. Login in Indiana LiveCD
> 2. Copy miniroot "cp -p ../boot/x86.microroot /workdir
> 3. Unpack x86.microroot "root_archive unpack x86.microroot boot_workdir"
> 4. Provide some changes (here I want to turn off keyboard chooser and turn on 
> autofs after boot)
> 5. Pack miniroot "root_archive pack x86.microroot boot_workdir"
> 

I don't expect that root_archive does the right thing with the Indiana 
root archive, either packing or unpacking; it's designed for the Nevada 
root archive, and the two are quite different.

The way I do the above is:

cp boot/x86.microroot /tmp/x86.microroot.gz
gunzip /tmp/x86.microroot.gz
mount -o nologging `lofiadm -a /tmp/x86.microroot` /mnt
<make changes>
umount /mnt
lofiadm -d /tmp/x86.microroot
gzip -9 /tmp/x86.microroot

> Now I have problem howto add this miniroot back on cd or howto create 
> bootable cd with modified image. My steps:
> 
> 6. Copy mounted indiana image in new directory "cp -p mounted_image 
> new_directory" 
> 7. Replace miniroot "cp -p x86.microroot new_directory/boot/"
> 8. Create iso from new_directory 
> "mkisofs -o opensolaris.iso -b boot/grub/stage2_eltorito -c .catalog 
> -no-emul-boot -boot-info-table -relaxed-filenames -N -L -l -R -J -d -D -V 
> OpenSolaris new_directory"
> 
> Result is, that the image is created but not bootable. Some ideas? 
> 

Your above steps may be OK; typically I don't try to do hand-patching 
with ISO's, but instead convert it to a USB image with the Distribution 
Constructor's tools/usbgen script, then you can just copy the root 
archive generated above back into the USB image directly since that's a 
UFS file system.  1 GB USB sticks are really cheap and will save you a 
ton of time in doing this sort of thing considering how much faster they 
boot.

Dave

Reply via email to