Hi,
started to prepare a snv_101 jumpstart. 2 more or less minor problems:
1) on snv_98 U40 unpackmedia causes a kernel panic after the 'rm'
messages (see below), which reboots the machine
2) on snv_101 (luupgraded from snv_98) I get:
$ + $ROOT_ARCHIVE unpackmedia /net/install/$DEST_PATH $SCRATCH
rm: Cannot remove any directory in the path of the current working directory
/export/scratch/elkner/i386
rmdir: directory "/tmp/mnt12579": Directory is a mount point or in use
lofiadm: could not unmap file /tmp/mr12579: Device busy
rmdir: directory "/tmp/mnt12579": Directory is a mount point or in use
So the miniroot gets not unmounted ...
For completeness, here the script I usually use to recreate the
miniroot:
[
OS_RELEASE=Solaris_11
OS_SUBRELEASE=b101
PARCH=i386
]
DEST_PATH=/pool1/install/$PARCH/${OS_RELEASE}_${OS_SUBRELEASE}
SCRATCH=/export/scratch/$USER/$PARCH
ROOT_ARCHIVE=/export/scratch/$USER/root_archive.$OS_SUBRELEASE.$PARCH
+ rm -rf $SCRATCH ; mkdir -p $SCRATCH
if [ "$OS_RELEASE" = "Solaris_10" ]; then
SRCF=Product/SUNWcakr.i/reloc/boot/solaris/bin/root_archive
cp -p /net/install/$DEST_PATH/$OS_RELEASE/$SRCF $ROOT_ARCHIVE
else
SRCF=/net/install/$DEST_PATH/$OS_RELEASE/Product/SUNWcsu/archive/none
cd $SCRATCH
if [ -f ${SRCF}.bz2 ]; then
bunzip2 -c ${SRCF}.bz2 | cpio -id usr/sbin/root_archive
else
7z x ${SRCF}.7z -so | cpio -id usr/sbin/root_archive
fi
mv usr/sbin/root_archive $ROOT_ARCHIVE
rm -rf usr
fi
+ $ROOT_ARCHIVE unpackmedia /net/install/$DEST_PATH $SCRATCH
+ pkgadd -R $SCRATCH -d /net/install/$DEST_PATH/$OS_RELEASE/Product SUNWxcu4
DST=/export/scratch/$USER/miniroot/${OS_RELEASE}_${OS_SUBRELEASE}_$PARCH
+ rm -rf $DST
+ mkdir -p $DST/${OS_RELEASE}
+ mkdir -p $DST/boot/grub
+ $ROOT_ARCHIVE packmedia $DST $SCRATCH
Regards,
jel.
--
Otto-von-Guericke University http://www.cs.uni-magdeburg.de/
Department of Computer Science Geb. 29 R 027, Universitaetsplatz 2
39106 Magdeburg, Germany Tel: +49 391 67 12768