Commits

Uelsk8s committed 8625827

build VL-ISO-BB RC5 with new initrd

Comments (0)

Files changed (1)

var/vabs/VL-ISO-BB/src/VL-ISO-BB.SlackBuild

 LDFLAG_OPTIONS=${LDFLAG_OPTIONS:-""}
 ADDRB=${ADDRB:-""} #Add deps that need to be added to the slack-required file here
 EXRB=${EXRB:-""} #Add deps that need to be excluded from the slack-required file here
-MAKEDEPENDS=${MAKEDEPENDS:-"cdrkit bootsplash cpio"} #Add deps needed TO BUILD this package here.
+#MAKEDEPENDS=${MAKEDEPENDS:-"cdrkit bootsplash cpio"} #Add deps needed TO BUILD this package here.
+MKDEPS=${MKDEPS:-"cdrkit-1.1.11-i586-1vl70.txz bootsplash-3.2.9-i586-1vl70.txz  cpio-2.11-i586-1vl70.txz  lcms-1.19-i586-1vl70.txz  libmng-1.0.10-i586-2vl70.txz "} #Add deps needed TO BUILD this package here.
 #----------------------------------------------------------------------------
 
 # DO NOT EXECUTE if NORUN is set to 1
 PKG=$TMP/package-$NAME
 #--------------------------------------------
 
+#GET THE DEPS
+#for i in $MKDEPS;do
+#  wget 10.0.2.2/pkg/untested/veclinux-7.1/iso/$i
+#  installpkg $i
+#done
+
 for i in x86 x86_64;do
  mkdir -p $TMP
  rm -r /home/ftp/pub/veclinux/packages/*
  ARCH=$i
  cp $CWD/slapt-getrc /etc/slapt-get/slapt-getrc
  sed -i "s/ARCH/$i/" /etc/slapt-get/slapt-getrc
-if [[ "$ARCH" = "x86" ]]; then
+ if [[ "$ARCH" = "x86" ]]; then
    SG="veclinux-7.1"
-   sed -i "s/SG/veclinux-7.1/" /etc/slapt-get/slapt-getrc
-else
+   sed -i "s/SG/$SG/" /etc/slapt-get/slapt-getrc
+ else
 	SG="VL64-7.1"
-	sed -i "s/SG/VL64-7.1/" /etc/slapt-get/slapt-getrc
-fi
+   sed -i "s/SG/$SG/" /etc/slapt-get/slapt-getrc
+ fi
 
 #CFLAGS SETUP
 #--------------------------------------------
   KERNEL="kernel-$KERN-$ARCH-$KERNBUILD"
   MODULES="kernel-modules-$KERN-$ARCH-$KERNBUILD"
   SRC="kernel-src-$KERN-$ARCH-$KERNBUILD"
-  ARCH=i586
+  SSRC="kernel-stripped-src-$KERN-$ARCH-$KERNBUILD"
   SLKCFLAGS="-O2 -march=i586 -mtune=i686"
   CONFIGURE_TRIPLET="i586-vector-linux"
   LIBDIRSUFFIX=""
   THEME=std-7-Boot
+  ARCH=i586
 elif [ "$ARCH" = "x86_64" ]; then
   KERNEL="kernel-$KERN-$ARCH-$KERNBUILD"
   MODULES="kernel-modules-$KERN-$ARCH-$KERNBUILD"
 mv -v boot/vmlinuz* ../../isolinux/kernel/sata || exit 1
 sed -i '/^if/d' install/doinst.sh
 sed -i '/^fi/d' install/doinst.sh
-makepkg -l y -c n $kern
+makepkg -l y -c n $kern || exit 1
 cd ../ && rm -r PKG
 kern_ver=$(echo $kern|cut -d'-' -f2)
 
 ./makeinfo-slapt all
 cd $TMP/$NAME-$VERSION
 
+# if we have an isolinux.cfg copy it to the ISO
+if [ -e $CWD/isolinux.cfg ];then
+  cp $CWD/isolinux.cfg ISO/isolinux/isolinux.cfg
+fi
+
 #copy the veclinux folder to the ISO.
 cp -r $CWD/veclinux ISO
 
 echo bootsplash | cpio -o -H newc >> init-sm
 echo "Compressing initrd"
 xz -F lzma init-sm 
-mv -v init-sm.lzma $TMP/$NAME-$VERSION/ISO/isolinux/pyinit.lz 
+#mv -v init-sm.lzma $TMP/$NAME-$VERSION/ISO/isolinux/pyinit.lz 
+mv -v init-sm.lzma $TMP/$NAME-$VERSION/ISO/isolinux/init.lz 
 echo "initrd created"
 cd $TMP/$NAME-$VERSION
 
 -b isolinux/isolinux.bin -c isolinux/isolinux.boot ISO
 
 cd $RELEASEDIR
+isohybrid $CDNAME
 md5sum $CDNAME >$CDNAME.md5sum.txt
 #######################################################################
 #Miscellenious tweaks and things outside a normal ./configure go here #