# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.635 2006/06/20 19:32:31 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.636 2006/06/21 22:11:54 wolf31o2 Exp $
+
+ 21 Jun 2006; Chris Gianelloni <wolf31o2@gentoo.org> catalyst,
+ modules/netboot2_target.py, modules/stage1_target.py,
+ targets/netboot2/netboot2-copyfile.sh, targets/support/pre-kmerge.sh:
+ Added two patches from Joshua Kinard <kumba@gentoo.org> to fix stage1 not
+ having /proc mounted during the preclean stage and also to clean up the
+ netboot2 code. This is 2.0_rc48.
20 Jun 2006; Chris Gianelloni <wolf31o2@gentoo.org>
targets/support/unmerge.sh:
#!/usr/bin/python -OO
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.155 2006/06/09 00:31:51 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.156 2006/06/21 22:11:54 wolf31o2 Exp $
# Maintained in full by:
# Eric Edgar <rocket@gentoo.org>
import pdb
__maintainer__="Chris Gianelloni <wolf31o2@gentoo.org>"
-__version__="2.0_rc47"
+__version__="2.0_rc48"
conf_values={}
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/netboot2_target.py,v 1.2 2006/01/20 17:19:42 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/netboot2_target.py,v 1.3 2006/06/21 22:11:54 wolf31o2 Exp $
"""
Builder class for a netboot build, version 2
self.required_values=[
"boot/kernel",
"netboot2/builddate",
- "netboot2/busybox_config",
"netboot2/packages",
"netboot2/use"
]
# /tmp/image
self.settings["merge_path"]=normpath("/tmp/image")
- for envvar in "CFLAGS", "CXXFLAGS":
- if not os.environ.has_key(envvar) and not addlargs.has_key(envvar):
- self.settings[envvar] = "-Os -pipe"
-
def set_dest_path(self):
if self.settings.has_key("merge_path"):
self.settings["destpath"]=normpath(self.settings["chroot_path"]+self.settings["merge_path"])
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/stage1_target.py,v 1.23 2006/01/29 18:58:03 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/stage1_target.py,v 1.24 2006/06/21 22:11:54 wolf31o2 Exp $
"""
Builder class for a stage1 installation tarball build.
print "stage1 stage path is "+self.settings["stage_path"]
def set_root_path(self):
- # ROOT= variable for emerges
+ # sets the root path, relative to 'chroot_path', of the stage1 root
self.settings["root_path"]=normpath("/tmp/stage1root")
print "stage1 root path is "+self.settings["root_path"]
print "\tIf you break it, you buy it. Don't complain to us about it."
print "\tDont say we did not warn you\n"
+ def set_mounts(self):
+ # stage_path/proc probably doesn't exist yet, so create it
+ if not os.path.exists(self.settings["stage_path"]+"/proc"):
+ os.makedirs(self.settings["stage_path"]+"/proc")
+
+ # alter the mount mappings to bind mount proc onto it
+ self.mounts.append("/tmp/stage1root/proc")
+ self.mountmap["/tmp/stage1root/proc"]="/proc"
+
+
def register(foo):
foo.update({"stage1":stage1_target})
return foo
#!/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/netboot2/netboot2-copyfile.sh,v 1.1 2006/01/13 15:09:07 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/netboot2/netboot2-copyfile.sh,v 1.2 2006/06/21 22:11:54 wolf31o2 Exp $
. /tmp/chroot-functions.sh
[ ! -d "${clst_merge_path}" ] && mkdir -p ${clst_merge_path}
for f in ${clst_files}
do
+ # copy it to the merge path
cp -af --parents ${f} ${clst_merge_path}
+
+ # if the file is an ELF binary, strip unneeded stuff from it
+ if [ -x "${f}" ] && [ ! -L "${f}" ]; then
+ if [ "$(head -c 4 ${f} 2>/dev/null | tail -c 3)" = "ELF" ]; then
+ strip -R .comment -R .note ${clst_merge_path}${f}
+ fi
+ fi
done
echo ""
cp -af ${clst_root_path}usr/share/genkernel/netboot/misc/* ${clst_merge_path}
echo ">>> Copying busybox config ..."
- cp -f ${clst_netboot2_busybox_config} /usr/share/genkernel/${clst_mainarch}/busy-config
+ cp -f ${clst_root_path}usr/share/genkernel/${clst_mainarch}/nb-busybox.cf \
+ ${clst_root_path}usr/share/genkernel/${clst_mainarch}/busy-config
;;
esac