Solaris 10 chroot & Jumpstart

From: Charles Gagnon (charlesg@unixrealm.com)
Date: Wed Oct 19 2005 - 08:46:40 EDT


I am still migrating my jumpstart environment over to Solaris 10 and
I ran into another isssue. A big part of our finish script is done
under chroot. The steps are:

  1. mount the install partition from the server in /a/mnt
  2. umount /etc/mnttab (so I can remount it in the chroot)
  3. mount -F proc /proc /a/proc (this works in 9, not in 10)
  4. echo '(cd /mnt; ./my_big_finish)' | chroot /a /usr/bin/sh
        Once inside the chroot'd environment I
        4a. /sbin/mount -F mntfs mnttab /etc/mnttab
        4b. patchadd -d -u somepatch
        4c. umount /etc/mnttab
  Now back out the chroot I cleanup
  5. umount /a/prod; umount /a/mnt

This was working very well in Solaris 9. I can't seem to get it
going in Solaris 10. First, I was getting very weird errors with
patchadd, so I tried switching to smpatch (/usr/sbin/smpatch add -i
${patch} -d ${dir}). But it seems like there is no way to stop
smpatch from checking for space so I get tons of:

    add patch 119060-06
    df: cannot statvfs /a/var: No such file or directory
    Insufficient space in /var/sadm/pkg to save old files.

Any ideas or recommendations?

-- 
Charles Gagnon                   | My views are my views and they
http://unixrealm.com             | do not represent those of anybody
charlesg at unixrealm.com        | but me.
   After finding no qualified candidates for the position of principal, the
   school board is extremely pleased to announce the appointment of David
   Steele to the post.
        -- Philip Streifer, Superintendent of Schools, Barrington, Rhode
           Island
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:33:03 EDT