I needed a webserver in the mode Solaris failsafe, done.
Here is my procedure:
1) Compile Cherokee
#./configure –prefix=/usr/cherokee –with-geoip=no –with-mysql=no –with-ldap=no –disable-ipv6 –disable-pam
#make
#make install
2) Make a copy of x86.miniroot-safe, we work over this new file.
#cd /boot
#cp x86.miniroot-safe /var/tmp/cherokeeminiroot.gz
#cd /var/tmp
#gunzip cherokeeminiroot.gz
#lofiadm -a /tmp/cherokeeminiroot /dev/lofi/1
# mount -o ro /dev/lofi/1 /mnt
3) You must create a new miniroot device and mount it then copy the contents of the old miniroot to your new miniroot.
#mkfile 256000000 /var/tmp/cherokeeroot.new
#lofiadm -a /var/tmp/cherokeeroot.new /dev/lofi/2
#newfs /dev/lofi/2
#/dev/rlofi/2: Unable to find Media type. Proceeding with system determined parameters.
#newfs: construct a new file system /dev/rlofi/2: (y/n)? y
Warning: inode blocks/cyl group (39) >= data blocks (37) in last
cylinder group. This implies 600 sector(s) cannot be allocated.
/dev/rlofi/2: 499200 sectors in 832 cylinders of 1 tracks, 600 sectors
243.8MB in 52 cyl groups (16 c/g, 4.69MB/g, 2240 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 9632, 19232, 28832, 38432, 48032, 57632, 67232, 76832, 86432,
403232, 412832, 422432, 432032, 441632, 451232, 460832, 470432, 480032, 489632
#mkdir /var/tmp/cherokeeroot_mount
#mount /dev/lofi/2 /var/tmp/cherokeeroot_mount/
#find . | cpio -pvdm /var/tmp/cherokeeroot_mount/
4) You copy the Cherokee files to /var/tmp/cherokeeroot_mount/usr/ also the libs that you can need for Cherokee.
(DTrace can help you to view the open files of cherokee.)
#cp -rp /usr/cherokee/ /var/tmp/cherokeeroot_mount/usr/
#cp /usr/sfw/lib/libgcc_s.so.1 /var/tmp/cherokeeroot_mount/usr/sfw/lib
5) umount devices.
#umount /dev/lofi/1
#umount /dev/lofi/2
#lofiadm -d /dev/lofi/1
#lofiadm -d /dev/lofi/2
6) You compress new miniroot and add the entry to GRUB
#gzip -c /var/tmp/cherokeeroot.new > /boot/cherookeex6miniroot
add to /boot/grub/menu.lst:
#———- ADDED BY BOOTADM - DO NOT EDIT ———-
title Solaris miniroot with Cherokee
kernel /boot/multiboot kernel/unix -s
module /boot/cherookeex6miniroot
#———————END BOOTADM——————–
7) Reboot the system for entry with the new failsafe and Cherokee.










