[livemedia-discuss] Re: Exploring the live media kit

Eric Boutilier Eric.Boutilier at Sun.COM
Mon Sep 11 22:25:59 PDT 2006


Previously, I wrote:
> ...
> Per a comment on my blog, I'll post my changes (temporary
> hacks) too...

OK, below is a diff -u showing the changes I made to the build_live_dvd
script. Some things that aren't obvious:
- I converted the add-on Blastwave (CSW) packages from
   datastream to file system format and put them in /tmp --
   this is reflected in the added elif block.
- I put a listing of those packages and SUNWbash in a file
   and called it /tmp/u2. This is reflected in the added
   /usr/bin/cp line.
- Why add SUNWbash? Because the kit makes it the default
   shell for root, but SUNWbash is not part of the SUNWCreq
   metacluster. (An alternative solution might be to edit
   livekit/bootcd_skel/etc/passwd and change root's shell to
   /bin/sh or /bin/ksh -- but I haven't tried that.)

Eric

__

$ diff -u build_live_dvd.orig build_live_dvd

--- build_live_dvd.orig	Mon Aug 28 23:47:42 2006
+++ build_live_dvd	Sun Sep 10 13:15:27 2006
@@ -147,12 +147,16 @@

  echo "Generating ordered package list from $PKGREPOS and installing to $BOOTCD_PROTO"

-/usr/bin/perl proc_toc.pl SUNWCXall $SOLPRODUCT | /usr/ccs/bin/tsort | grep -v "INFORM: cycle" | grep -v "SUNWdummy" > $TMPDIR/ordered
+/usr/bin/cp /tmp/u2 $TMPDIR/ordered
+/usr/bin/perl proc_toc.pl SUNWCreq $SOLPRODUCT | /usr/ccs/bin/tsort | grep -v "INFORM: cycle" | grep -v "SUNWdummy" >> $TMPDIR/ordered
  perl rev_file.pl $TMPDIR/ordered | while read pkg
  do
  	if [ -d $PKGREPOS/$pkg ]
  	then
  		pkgadd -a $ADMIN_FILE -d $PKGREPOS -R $BOOTCD_PROTO $pkg
+	elif [ -d /tmp/$pkg ]
+	then
+		pkgadd -a $ADMIN_FILE -d /tmp -R $BOOTCD_PROTO $pkg
  	else
  		pkgi="${pkg}.i"
  		if [ -d $PKGREPOS/$pkgi ]



More information about the livemedia-discuss mailing list