aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>2012-08-29 03:17:37 +0000
committerJorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org>2012-08-29 03:17:37 +0000
commite643d75151b22c2f5a7b8ae5a309c4114bd728a9 (patch)
treedf9174b73fbb74641e6b87e4aacf7ecd9b1820c6
parentAdd initial support to update the seed stage on stage1 - bug 397505. (diff)
downloadcatalyst-e643d75151b22c2f5a7b8ae5a309c4114bd728a9.tar.gz
catalyst-e643d75151b22c2f5a7b8ae5a309c4114bd728a9.tar.bz2
catalyst-e643d75151b22c2f5a7b8ae5a309c4114bd728a9.zip
Let's see if we can update the seed stage and fix bug 397505.
-rw-r--r--modules/stage1_target.py5
-rw-r--r--targets/stage1/stage1-chroot.sh2
2 files changed, 6 insertions, 1 deletions
diff --git a/modules/stage1_target.py b/modules/stage1_target.py
index ea29bb0a..773e3c89 100644
--- a/modules/stage1_target.py
+++ b/modules/stage1_target.py
@@ -13,7 +13,9 @@ class stage1_target(generic_stage_target):
def __init__(self,spec,addlargs):
self.required_values=[]
self.valid_values=["chost"]
+ self.valid_values.extend(["update_seed"])
generic_stage_target.__init__(self,spec,addlargs)
+ self.set_update_seed()
def set_stage_path(self):
self.settings["stage_path"]=normpath(self.settings["chroot_path"]+self.settings["root_path"])
@@ -95,6 +97,9 @@ class stage1_target(generic_stage_target):
self.mounts.append("/tmp/stage1root/proc")
self.mountmap["/tmp/stage1root/proc"]="/proc"
+ def set_update_seed(self):
+ if self.settings.has_key(self.settings["update_seed"]):
+ self.settings["update_seed_cache"]=self.settings["update_seed"]
def register(foo):
foo.update({"stage1":stage1_target})
diff --git a/targets/stage1/stage1-chroot.sh b/targets/stage1/stage1-chroot.sh
index 00f390d8..641f5c39 100644
--- a/targets/stage1/stage1-chroot.sh
+++ b/targets/stage1/stage1-chroot.sh
@@ -25,7 +25,7 @@ fi
run_merge "--oneshot --nodeps sys-apps/baselayout"
# Update stage3
-UPDATE_SEED_STAGE="yes"
+#UPDATE_SEED_STAGE="yes"
if [ -n ${UPDATE_SEED_STAGE} ]; then
echo "Updating seed stage..."
clst_root_path=/ run_merge "--update --deep --newuse @world"