Gentoo Archives: gentoo-commits

From: "Chris Gianelloni (wolf31o2)" <wolf31o2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] catalyst r1394 - in trunk: . targets/livecd-stage2 targets/support
Date: Sun, 13 Apr 2008 15:48:00
Message-Id: E1Jl4Qu-0007sx-TX@stork.gentoo.org
1 Author: wolf31o2
2 Date: 2008-04-13 15:47:55 +0000 (Sun, 13 Apr 2008)
3 New Revision: 1394
4
5 Modified:
6 trunk/ChangeLog
7 trunk/targets/livecd-stage2/livecd-stage2-controller.sh
8 trunk/targets/support/kmerge.sh
9 trunk/targets/support/livecdfs-update.sh
10 trunk/targets/support/rc-update.sh
11 Log:
12 Change all checks for livecd/type: gentoo-release-livecd to gentoo-release-live* so we can add a new gentoo-release-livedvd livecd/type to allow for auto-fetching of distfiles and stages onto official DVD media.
13
14 Modified: trunk/ChangeLog
15 ===================================================================
16 --- trunk/ChangeLog 2008-04-11 15:55:54 UTC (rev 1393)
17 +++ trunk/ChangeLog 2008-04-13 15:47:55 UTC (rev 1394)
18 @@ -1,6 +1,14 @@
19 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
20 # $Id: $
21
22 + 13 Apr 2008; Chris Gianelloni <wolf31o2@g.o>
23 + targets/livecd-stage2/livecd-stage2-controller.sh,
24 + targets/support/kmerge.sh, targets/support/livecdfs-update.sh,
25 + targets/support/rc-update.sh:
26 + Change all checks for livecd/type: gentoo-release-livecd to
27 + gentoo-release-live* so we can add a new gentoo-release-livedvd livecd/type
28 + to allow for auto-fetching of distfiles and stages onto official DVD media.
29 +
30 11 Apr 2008; Chris Gianelloni <wolf31o2@g.o> TODO,
31 targets/livecd-stage1/livecd-stage1-controller.sh,
32 targets/livecd-stage2/livecd-stage2-controller.sh:
33
34 Modified: trunk/targets/livecd-stage2/livecd-stage2-controller.sh
35 ===================================================================
36 --- trunk/targets/livecd-stage2/livecd-stage2-controller.sh 2008-04-11 15:55:54 UTC (rev 1393)
37 +++ trunk/targets/livecd-stage2/livecd-stage2-controller.sh 2008-04-13 15:47:55 UTC (rev 1394)
38 @@ -135,28 +135,28 @@
39 fi
40
41 # Move over Getting_Online.txt for minimal/GameCD
42 - if [ "${clst_livecd_type}" = "gentoo-gamecd" ] \
43 - || [ "${clst_livecd_type}" = "gentoo-release-minimal" ] \
44 - || [ "${clst_livecd_type}" = "gentoo-release-livecd" ]
45 - then
46 - cp -f ${clst_sharedir}/livecd/files/Getting_Online.txt $1
47 - fi
48 + case ${clst_livecd_type} in
49 + gentoo-gamecd|gentoo-release-minimal|gentoo-release-live*)
50 + cp -f ${clst_sharedir}/livecd/files/Getting_Online.txt $1
51 + ;;
52 + esac
53
54 - if [ "${clst_livecd_type}" = "gentoo-release-livecd" ]
55 - then
56 - mkdir -p $1/snapshots
57 - if [ -n "${clst_livecd_overlay}" ]
58 - then
59 - if [ -e ${clst_livecd_overlay}/snapshots/${clst_snapshot_path} ]
60 + case ${clst_livecd_type} in
61 + gentoo-release-live*)
62 + mkdir -p $1/snapshots
63 + if [ -n "${clst_livecd_overlay}" ]
64 then
65 - echo "ERROR: You have a snapshot in your overlay, please"
66 - echo "remove it, since catalyst adds it automatically."
67 - exit 1
68 + if [ -e ${clst_livecd_overlay}/snapshots/${clst_snapshot_path} ]
69 + then
70 + echo "ERROR: You have a snapshot in your overlay, please"
71 + echo "remove it, since catalyst adds it automatically."
72 + exit 1
73 + fi
74 fi
75 - fi
76 - cp -f ${clst_snapshot_path} $1/snapshots
77 - cp -f ${clst_snapshot_path}.DIGESTS $1/snapshots
78 - fi
79 + cp -f ${clst_snapshot_path} $1/snapshots
80 + cp -f ${clst_snapshot_path}.DIGESTS $1/snapshots
81 + ;;
82 + esac
83
84 ${clst_sharedir}/targets/support/bootloader-setup.sh $1
85 ;;
86
87 Modified: trunk/targets/support/kmerge.sh
88 ===================================================================
89 --- trunk/targets/support/kmerge.sh 2008-04-11 15:55:54 UTC (rev 1393)
90 +++ trunk/targets/support/kmerge.sh 2008-04-13 15:47:55 UTC (rev 1394)
91 @@ -76,12 +76,15 @@
92 export clst_kernel_merge
93 export clst_initramfs_overlay
94 # Build our list of kernel packages
95 - if [ "${clst_livecd_type}" = "gentoo-release-livecd" ] \
96 - && [ -n "${clst_kernel_merge}" ]
97 - then
98 - mkdir -p /usr/livecd
99 - echo "${clst_kernel_merge}" > /usr/livecd/kernelpkgs.txt
100 - fi
101 + case ${clst_livecd_type} in
102 + gentoo-release-live*)
103 + if [ -n "${clst_kernel_merge}" ]
104 + then
105 + mkdir -p /usr/livecd
106 + echo "${clst_kernel_merge}" > /usr/livecd/kernelpkgs.txt
107 + fi
108 + ;;
109 + esac
110 # Build with genkernel using the set options
111 # callback is put here to avoid escaping issues
112 gk_callback_opts="-qN"
113
114 Modified: trunk/targets/support/livecdfs-update.sh
115 ===================================================================
116 --- trunk/targets/support/livecdfs-update.sh 2008-04-11 15:55:54 UTC (rev 1393)
117 +++ trunk/targets/support/livecdfs-update.sh 2008-04-13 15:47:55 UTC (rev 1394)
118 @@ -34,7 +34,7 @@
119 # Since we're an official Gentoo release, we do things the official Gentoo way.
120 # As such, we override livecd/users.
121 case ${clst_livecd_type} in
122 - gentoo-release-livecd)
123 + gentoo-release-live*)
124 user_comment="Gentoo default user"
125 clst_livecd_users="gentoo"
126 ;;
127 @@ -180,22 +180,22 @@
128
129 # Tweak the MOTD for Gentoo releases
130 case ${clst_livecd_type} in
131 - gentoo-release-universal )
132 + gentoo-release-universal)
133 cat /etc/generic.motd.txt /etc/universal.motd.txt \
134 /etc/minimal.motd.txt > /etc/motd
135 sed -i 's:^##GREETING:Welcome to the Gentoo Linux Universal Installation CD!:' /etc/motd
136 ;;
137 - gentoo-release-minimal )
138 + gentoo-release-minimal)
139 cat /etc/generic.motd.txt /etc/minimal.motd.txt > /etc/motd
140 sed -i 's:^##GREETING:Welcome to the Gentoo Linux Minimal Installation CD!:' /etc/motd
141 ;;
142 - gentoo-release-livecd )
143 + gentoo-release-live*)
144 cat /etc/generic.motd.txt \
145 /etc/minimal.motd.txt /etc/livecd.motd.txt > /etc/motd
146 sed -i -e 's:^##GREETING:Welcome to the Gentoo Linux LiveCD!:' \
147 -e "s:##DISPLAY_MANAGER:${clst_livecd_xdm}:" /etc/motd
148 ;;
149 - gentoo-gamecd )
150 + gentoo-gamecd)
151 cat /etc/generic.motd.txt /etc/gamecd.motd.txt > /etc/motd
152 sed -i 's:^##GREETING:Welcome to the Gentoo Linux ##GAME_NAME GameCD!:' /etc/motd
153 ;;
154 @@ -261,7 +261,7 @@
155
156 touch /etc/startx
157 ;;
158 - gentoo-release-livecd)
159 + gentoo-release-live*)
160 # Setup Gnome theme
161 if [ "${clst_livecd_xsession}" == "gnome" ]
162 then
163
164 Modified: trunk/targets/support/rc-update.sh
165 ===================================================================
166 --- trunk/targets/support/rc-update.sh 2008-04-11 15:55:54 UTC (rev 1393)
167 +++ trunk/targets/support/rc-update.sh 2008-04-13 15:47:55 UTC (rev 1394)
168 @@ -27,18 +27,16 @@
169
170 # Do some livecd_type specific rc-update changes
171 case ${clst_livecd_type} in
172 - gentoo-gamecd )
173 + gentoo-gamecd)
174 rc-update add spind default
175 ;;
176 - gentoo-release-livecd )
177 + gentoo-release-live*)
178 rc-update add spind default
179 rc-update add xdm default
180 ;;
181 - generic-livecd )
182 + generic-livecd)
183 rc-update add spind default
184 ;;
185 - *)
186 - ;;
187 esac
188 fi
189
190
191 --
192 gentoo-commits@l.g.o mailing list