Glynn -
One thing that seems a bit off is the snapshot instructions
appear to have a 'despamification' filter applied, which might not be
obvious to people who aren't familiar with ZFS
i.e:
zfs snapshot zpl_slim/root at 2
versus
zfs snapshot zpl_slim/[EMAIL PROTECTED]
I created a shell script to perform the steps and have attached it.
#!/bin/sh
# Author: William Hathaway
# Version History
# 20071210 0901 - Added pkg install SUNWpkgcmds
# 20071119 1712 - Initial creation
# 20071120 1000 - Fixed missing escape for $ in menu.lst
#
# This script will create a new set of ZFS file systems, updates vfstab and grub
# and uses pkg image-update to update the packages on the new file systems.
# Based off the steps from
http://mail.opensolaris.org/pipermail/indiana-discuss/2007-November/003777.html
ZFS_CLONE_TAG=2
MENU_LST=/zpl_slim/boot/grub/menu.lst
TIMESTAMP=`date +%Y%m%d_%H%M`
echo "Creating clones labeled ${ZFS_CLONE_TAG} of zpl_slim/root and
zpl_slim/opt"
zfs snapshot zpl_slim/[EMAIL PROTECTED]
zfs clone zpl_slim/[EMAIL PROTECTED] zpl_slim/root${ZFS_CLONE_TAG}
zfs set mountpoint=/mnt zpl_slim/root${ZFS_CLONE_TAG}
zfs snapshot zpl_slim/[EMAIL PROTECTED]
zfs clone zpl_slim/[EMAIL PROTECTED] zpl_slim/opt${ZFS_CLONE_TAG}
zfs set mountpoint=/mnt/opt zpl_slim/opt${ZFS_CLONE_TAG}
echo "Backing up ${MENU_LST} with timestamp ${TIMESTAMP}"
cp -p ${MENU_LST} ${MENU_LST}.${TIMESTAMP}
echo "Creating new ${MENU_LST} with extra entry"
cat > ${MENU_LST} <<EOF
splashimage /boot/grub/splash.xpm.gz
timeout 10
default 0
title OpenSolaris Developer Preview snv_75a X86 UPDATED
bootfs zpl_slim/root${ZFS_CLONE_TAG}
kernel\$ /platform/i86pc/kernel/\$ISADIR/unix -B \$ZFS-BOOTFS
module\$ /platform/i86pc/\$ISADIR/boot_archive
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title OpenSolaris Developer Preview snv_75a X86
kernel\$ /platform/i86pc/kernel/\$ISADIR/unix -B \$ZFS-BOOTFS
module\$ /platform/i86pc/\$ISADIR/boot_archive
#---------------------END BOOTADM--------------------
EOF
echo "Adding /opt mount to current /etc/vfstab"
echo "zpl_slim/opt - /opt zfs - yes -"
>> /etc/vfstab
echo "Updating /mnt/etc/vfstab to use the cloned filesystems"
perl -pi -e "s|zpl_slim/root|zpl_slim/root${ZFS_CLONE_TAG}|" /mnt/etc/vfstab
echo "zpl_slim/opt${ZFS_CLONE_TAG} - /opt zfs -
yes -" >> /mnt/etc/vfstab
echo "Refreshing pkg catalog"
pkg refresh
echo "Installing latest SUNWipkg"
pkg install SUNWipkg
echo "Installing latest pkg commands"
pkg install SUNWpkgcmds
echo "Refreshing pkg catalog on /mnt"
pkg -R /mnt refresh
echo "Upgrading image on /mnt"
pkg -R /mnt image-update
echo "Updating boot archive on /mnt"
bootadm update-archive -R /mnt
echo "Setting zfs mountpoints to legacy"
zfs set mountpoint=legacy zpl_slim/opt${ZFS_CLONE_TAG}
zfs set mountpoint=legacy zpl_slim/root${ZFS_CLONE_TAG}
zfs set mountpoint=legacy zpl_slim/opt
--
William D. Hathaway
[EMAIL PROTECTED]
aim: wdhPO
cell: 717-314-5461
On Dec 9, 2007, at 4:55 PM, Glynn Foster wrote:
Hey,
I copied Bart's instructions for updating the image and put it onto
opensolaris.org here -
http://opensolaris.org/os/project/indiana/resources/
update_guidelines/
If something looks wrong, let me know and I'll fix as soon as I can.
Barbara, FYI, I've gone ahead and updated the 'getit' page to
include this.
Glynn
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss