Added additional catalyst 2.0.0 files
authorEric Edgar <rocket@gentoo.org>
Mon, 4 Apr 2005 17:50:30 +0000 (17:50 +0000)
committerEric Edgar <rocket@gentoo.org>
Mon, 4 Apr 2005 17:50:30 +0000 (17:50 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@574 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
targets/netboot/netboot-chroot.sh [new file with mode: 0755]
targets/netboot/netboot-controller.sh [new file with mode: 0755]

index 373328023a0466c0d8cec3c52b4b66118e2e18c2..84b7b52fb258c1d2b587099e55f5c0a38eed7a95 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
 # ChangeLog for gentoo/src/catalyst 
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.199 2005/04/04 17:48:32 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.200 2005/04/04 17:50:30 rocket Exp $
+
+  04 Apr 2005; Eric Edgar <rocket@gentoo.org>
+  +targets/netboot/netboot-chroot.sh, +targets/netboot/netboot-controller.sh:
+  Additional catalyst 2.0.0 files
 
   04 Apr 2005; Eric Edgar <rocket@gentoo.org> catalyst, arch/arm.py,
   +livecd/cdtar/grub-memtest86+-cdtar.tar.bz2,
diff --git a/targets/netboot/netboot-chroot.sh b/targets/netboot/netboot-chroot.sh
new file mode 100755 (executable)
index 0000000..5ab595a
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/netboot/netboot-chroot.sh,v 1.1 2005/04/04 17:50:30 rocket Exp $
+. /tmp/chroot-functions.sh
+
+update_env_settings
+
+check_portage_version
+setup_myfeatures
+setup_myemergeopts
+
+# setup our environment
+export FEATURES="${clst_myfeatures}"
+export CONFIG_PROTECT="-*"
+export USE_ORDER="env:pkg:conf:defaults"
+
+# START BUILD
+
+run_emerge ${clst_myemergeopts} ${clst_packages}
diff --git a/targets/netboot/netboot-controller.sh b/targets/netboot/netboot-controller.sh
new file mode 100755 (executable)
index 0000000..ea6ef36
--- /dev/null
@@ -0,0 +1,75 @@
+#!/bin/bash
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/netboot/netboot-controller.sh,v 1.1 2005/04/04 17:50:30 rocket Exp $
+. ${clst_sharedir}/targets/support/functions.sh
+. ${clst_sharedir}/targets/support/filesystem-functions.sh
+
+
+case ${1} in
+
+       #### Couldnt busybox step be in packages ....
+
+       build_packages)
+               shift
+               clst_root_path="/" \
+               clst_packages="$*" \
+               exec_in_chroot ${clst_sharedir}/targets/${clst_target}/${clst_target}-chroot.sh
+       ;;
+
+       busybox)
+               # Custom busybox config support
+               if [ -f "${clst_netboot_busybox_config}" ]
+               then
+                       mkdir -p ${clst_chroot_path}/etc/busybox/${clst_CHOST}
+                       cp -v ${clst_netboot_busybox_config} ${clst_chroot_path}/etc/busybox/${clst_CHOST}/busybox.config
+                       clst_netboot_use="savedconfig" 
+               fi
+               
+               # Main Busybox emerge
+               clst_root_path="/" \
+               clst_netboot_use="${clst_netboot_use} netboot" \
+               clst_myemergeopts="${clst_myemergeopts} -O" \
+               clst_packages="busybox" \
+               exec_in_chroot ${clst_sharedir}/targets/${clst_target}/${clst_target}-chroot.sh
+       ;;
+
+       kernel)
+               shift
+                export clst_kname="$1"
+               export clst_root_path="/"
+                #exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
+                #exec_in_chroot ${clst_sharedir}/targets/support/kmerge.sh
+                #exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
+               #extract_kernels kernels
+               
+       ;;
+
+       image)
+               #Creates the base initrd image for the netboot
+
+               shift
+
+               # Could this step be a parameter in case there is a different baselayout to add???
+               clst_myemergeopts="${clst_myemergeopts} --nodeps" \
+               clst_packages="netboot-base" \
+               exec_in_chroot ${clst_sharedir}/targets/${clst_target}/${clst_target}-chroot.sh
+               
+               clst_files="${@}" \
+               exec_in_chroot ${clst_sharedir}/targets/${clst_target}/${clst_target}-image.sh
+       ;;
+
+       finish)
+       
+
+               
+               ${clst_sharedir}/targets/${clst_target}/${clst_target}-combine.sh
+       ;;
+
+       clean)
+               exit 0;;
+       *)
+               exit 1;;
+esac
+
+exit 0