Added initial framework for creating the CD's root on livecd/livedvd. Currently...
authorChris Gianelloni <wolf31o2@gentoo.org>
Sun, 13 Apr 2008 21:55:03 +0000 (21:55 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Sun, 13 Apr 2008 21:55:03 +0000 (21:55 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1395 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
targets/livecd-stage2/livecd-stage2-controller.sh

index bfc0bdae1841755ae40c219c63d762e43b57c45e..ba391f229acd76acfb3e0423c552c94ec05ca890 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
 # $Id: $
 
+  13 Apr 2008; Chris Gianelloni <wolf31o2@gentoo.org>
+  targets/livecd-stage2/livecd-stage2-controller.sh:
+  Added initial framework for creating the CD's root on livecd/livedvd.
+  Currently, the end result is the same, but I'll be adding code to
+  automatically copy the stages and to automatically download the distfiles.
+
   13 Apr 2008; Chris Gianelloni <wolf31o2@gentoo.org>
   targets/livecd-stage2/livecd-stage2-controller.sh,
   targets/support/kmerge.sh, targets/support/livecdfs-update.sh,
index e34ffdb97255c42ee46ed904702375eebc515c4b..0b15c59909601604fcb8a66bedcfaaca3d41bda1 100755 (executable)
@@ -142,7 +142,7 @@ case $1 in
                esac
 
                case ${clst_livecd_type} in
-                       gentoo-release-live*)
+                       gentoo-release-livecd)
                                mkdir -p $1/snapshots
                                if [ -n "${clst_livecd_overlay}" ]
                                then
@@ -156,6 +156,37 @@ case $1 in
                                cp -f ${clst_snapshot_path} $1/snapshots
                                cp -f ${clst_snapshot_path}.DIGESTS $1/snapshots
                        ;;
+                       gentoo-release-livedvd)
+                               targets="distfiles snapshots stages"
+                               for i in ${targets}
+                               do
+                                       mkdir -p $1/$i
+                                       if [ -n "${clst_livecd_overlay}" ]
+                                       then
+                                               if [ -e ${clst_livecd_overlay}/$i ] && \
+                                               [ -n "$(ls ${clst_livecd_overlay}/$i |grep -v README)" ]
+                                               then
+                                                       echo "ERROR: You have files in $i in your overlay!"
+                                                       echo "This directory is now populated by catalyst."
+                                                       exit 1
+                                               fi
+                                       fi
+                                       case ${target} in
+                                               distfiles)
+                                                       ### TODO: make this fetch the distfiles
+                                                       continue
+                                               ;;
+                                               snapshots)
+                                                       cp -f ${clst_snapshot_path} $1/snapshots
+                                                       cp -f ${clst_snapshot_path}.DIGESTS $1/snapshots
+                                               ;;
+                                               stages)
+                                                       ### TODO: make this copy stages
+                                                       continue
+                                               ;;
+                                       esac
+                               done
+                       ;;
                esac
 
                ${clst_sharedir}/targets/support/bootloader-setup.sh $1