# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.462 2005/12/16 19:32:31 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.463 2005/12/19 15:03:25 wolf31o2 Exp $
+
+ 19 Dec 2005; Chris Gianelloni <wolf31o2@gentoo.org>
+ targets/netboot/netboot-chroot.sh, targets/netboot/netboot-combine.sh,
+ targets/netboot/netboot-controller.sh, targets/netboot/netboot-image.sh:
+ Fixed up spacing/coding style on netboot.
16 Dec 2005; Chris Gianelloni <wolf31o2@gentoo.org>
targets/livecd-stage1/livecd-stage1-chroot.sh,
#!/bin/bash
# Copyright 1999-2005 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.4 2005/12/09 19:03:07 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/netboot/netboot-chroot.sh,v 1.5 2005/12/19 15:03:25 wolf31o2 Exp $
+
. /tmp/chroot-functions.sh
update_env_settings
setup_myfeatures
setup_myemergeopts
-# setup our environment
+# Setup our environment
export FEATURES="${clst_myfeatures}"
export USE_ORDER="env:pkg:conf:defaults"
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/netboot/netboot-combine.sh,v 1.6 2005/12/09 19:03:07 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/netboot/netboot-combine.sh,v 1.7 2005/12/19 15:03:25 wolf31o2 Exp $
. ${clst_sharedir}/targets/support/chroot-functions.sh
. ${clst_sharedir}/targets/support/functions.sh
setup_myfeatures
setup_myemergeopts
-# setup our environment
+# Ssetup our environment
export FEATURES="${clst_myfeatures}"
# First install the boot package that we need
booter=""
case ${clst_mainarch} in
- alpha) booter="";;
- arm) booter="";;
- hppa) booter=palo;;
- sparc*) booter=sparc-utils;;
- x86) booter=netboot;;
- *) exit 1;;
+ alpha)
+ booter=""
+ ;;
+ arm)
+ booter=""
+ ;;
+ hppa)
+ booter=palo
+ ;;
+ sparc*)
+ booter=sparc-utils
+ ;;
+ x86|amd64)
+ booter=netboot
+ ;;
+ *)
+ exit 1
+ ;;
esac
+
#if [ ! -z "${booter}" ] ; then
# run_emerge ${booter} || exit 1
#fi
# Then generate the netboot image ! :D
for kname in ${clst_boot_kernel}
do
-
mkdir -p ${clst_chroot_path}/tmp/staging/initrd-${kname}
cp -r ${clst_chroot_path}/tmp/image ${clst_chroot_path}/tmp/staging/initrd-${kname}
extract_modules ${clst_chroot_path}/tmp/staging/initrd-${kname} ${kname}
create_normal_loop ${clst_chroot_path}/tmp/staging/initrd-${kname} ${clst_target_path} initrd-${kname}.igz
rm -r ${clst_chroot_path}/tmp/staging/initrd-${kname}
-
-
case ${clst_mainarch} in
alpha)
- # Until aboot is patched this is broken currently.
+ # Until aboot is patched this is broken currently.
# please use catalyst 1.1.5 or older
#TEST TEST TEST TEST
# || exit 1
;;
hppa)
- # We have to remove the previous image because the file is considered
- # as a tape by palo and then not truncated but rewritten.
+ # We have to remove the previous image because the file is
+ # considered as a tape by palo and then not truncated but rewritten.
#TEST TEST TEST TEST
rm -f /netboot-${kname}.hppa
-
+
palo \
-k /${clst_chroot_path}/tmp/${kname} \
-r /${clst_target_path}/initrd-${kname}.igz \
#${piggy} /netboot-${kname}.${clst_mainarch} /usr/src/linux/System.map /initrd-${kname}.igz
;;
x86)
-
mknbi-linux \
-k /${clst_chroot_path}/tmp/${kname} \
-r /${clst_target_path}/initrd-${kname}.igz \
-a "root=/dev/ram0 ${cmdline_opts}" \
|| exit 1
;;
- *) exit 1;;
+ *)
+ exit 1
+ ;;
esac
done
#!/bin/bash
# Copyright 1999-2005 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.7 2005/11/30 21:34:03 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/netboot/netboot-controller.sh,v 1.8 2005/12/19 15:03:25 wolf31o2 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
+ 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
+ cp -v ${clst_netboot_busybox_config} \
+ ${clst_chroot_path}/etc/busybox/${clst_CHOST}/busybox.config
clst_use="savedconfig"
fi
-
+
# Main Busybox emerge
clst_root_path="/" \
clst_use="${clst_use} netboot" \
clst_myemergeopts="${clst_myemergeopts} -O" \
clst_packages="busybox" \
- exec_in_chroot ${clst_sharedir}/targets/${clst_target}/${clst_target}-chroot.sh
+ exec_in_chroot \
+ ${clst_sharedir}/targets/${clst_target}/${clst_target}-chroot.sh
+ ;;
+ pre-kmerge)
+ # Sets up the build environment before any kernels are compiled
+ #exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
+ ;;
+ post-kmerge)
+ # Cleans up the build environment after the kernels are compiled
+ #exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
;;
-
- pre-kmerge)
- # Sets up the build environment before any kernels are compiled
- #exec_in_chroot ${clst_sharedir}/targets/support/pre-kmerge.sh
- ;;
- post-kmerge)
- # Cleans up the build environment after the kernels are compiled
- #exec_in_chroot ${clst_sharedir}/targets/support/post-kmerge.sh
- ;;
-
kernel)
shift
- export clst_kname="$1"
+ 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
+ #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???
+ # 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
-
+ 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
+ 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;;
*)
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/netboot/netboot-image.sh,v 1.6 2005/07/05 21:53:41 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/netboot/netboot-image.sh,v 1.7 2005/12/19 15:03:25 wolf31o2 Exp $
. /tmp/chroot-functions.sh
update_env_settings
-
-echo "copying files to ${clst_root_path}"
+echo "Copying files to ${clst_root_path}"
clst_files="/bin/busybox ${clst_files} "
for f in ${clst_files}
do
copy_file ${f}
done
-echo "done copying files"
+echo "Done copying files"