Gentoo Archives: gentoo-commits

From: "Chris Gianelloni (wolf31o2)" <wolf31o2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] catalyst r1328 - in trunk: . targets/support
Date: Wed, 27 Feb 2008 16:31:29
Message-Id: E1JUPBm-0002lL-0k@stork.gentoo.org
1 Author: wolf31o2
2 Date: 2008-02-27 16:31:25 +0000 (Wed, 27 Feb 2008)
3 New Revision: 1328
4
5 Modified:
6 trunk/ChangeLog
7 trunk/catalyst
8 trunk/targets/support/bootloader-setup.sh
9 Log:
10 Removed checks on livecd/splash_type, since we only support one type, removed remaining bootsplash code from bootloader-setup.sh, added automatic copying of splash.xpm.gz for Gentoo releases when using grub, and moved grub help to bottom of titles. This is catalyst 2.0.6_pre10 for testing.
11
12 Modified: trunk/ChangeLog
13 ===================================================================
14 --- trunk/ChangeLog 2008-02-27 01:46:33 UTC (rev 1327)
15 +++ trunk/ChangeLog 2008-02-27 16:31:25 UTC (rev 1328)
16 @@ -1,6 +1,13 @@
17 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
18 # $Id: $
19
20 + 27 Feb 2008; Chris Gianelloni <wolf31o2@g.o> catalyst,
21 + targets/support/bootloader-setup.sh:
22 + Removed checks on livecd/splash_type, since we only support one type,
23 + removed remaining bootsplash code from bootloader-setup.sh, added automatic
24 + copying of splash.xpm.gz for Gentoo releases when using grub, and moved grub
25 + help to bottom of titles. This is catalyst 2.0.6_pre10 for testing.
26 +
27 27 Feb 2008; Chris Gianelloni <wolf31o2@g.o>
28 targets/livecd-stage2/livecd-stage2-controller.sh:
29 Let's automatically copy in the snapshot if livecd/type is
30
31 Modified: trunk/catalyst
32 ===================================================================
33 --- trunk/catalyst 2008-02-27 01:46:33 UTC (rev 1327)
34 +++ trunk/catalyst 2008-02-27 16:31:25 UTC (rev 1328)
35 @@ -8,7 +8,7 @@
36 import pdb
37
38 __maintainer__="Chris Gianelloni <wolf31o2@g.o>"
39 -__version__="2.0.6_pre9"
40 +__version__="2.0.6_pre10"
41
42 conf_values={}
43
44
45 Modified: trunk/targets/support/bootloader-setup.sh
46 ===================================================================
47 --- trunk/targets/support/bootloader-setup.sh 2008-02-27 01:46:33 UTC (rev 1327)
48 +++ trunk/targets/support/bootloader-setup.sh 2008-02-27 16:31:25 UTC (rev 1328)
49 @@ -34,10 +34,10 @@
50 echo "init=/linuxrc ${cmdline_opts} cdroot" >> ${acfg}
51 ((bctr=${bctr}+1))
52 done
53 - ;;
54 + ;;
55 arm)
56 # NO SOFTLEVEL SUPPORT YET
57 - ;;
58 + ;;
59 hppa)
60 # NO SOFTLEVEL SUPPORT YET
61 icfg=$1/boot/palo.conf
62 @@ -46,28 +46,9 @@
63 echo "--commandline=0/${first} initrd=${first}.igz root=/dev/ram0 init=/linuxrc ${cmdline_opts}" >> ${icfg}
64 echo "--bootloader=boot/iplboot" >> ${icfg}
65 echo "--ramdisk=boot/${first}.igz" >> ${icfg}
66 - ;;
67 + ;;
68 ppc)
69 # NO SOFTLEVEL SUPPORT YET
70 -
71 - # PPC requirements:
72 - # -----------------
73 - # The specs indicate the kernels to be build. We need to put
74 - # those kernels and the corresponding initrd.img.gz(s) in the
75 - # /boot directory. This directory contains a message boot.msg
76 - # containing some info to be displayed on boot, a configuration
77 - # (yaboot.conf) specifying the boot options (kernel/initrd
78 - # combinations). The boot directory also contains a file called
79 - # yaboot, which normally gets copied from the live environment.
80 - # For now we supply a prebuilt file, prebuilt configuration
81 - # and prebuilt boot message. This can be enhanced later on
82 - # but the following suffices for now:
83 -
84 - # this sets up the config file for yaboot
85 -
86 -
87 - # ADD RUNLEVEL SUPPORT ???
88 -
89 icfg=$1/boot/yaboot.conf
90 kmsg=$1/boot/boot.msg
91
92 @@ -80,7 +61,7 @@
93 echo "message=/boot/boot.msg" >> ${icfg}
94
95 # Here is where I fix up the boot.msg file.
96 - sed -e 's/ARCH/PPC/' \
97 + sed -e 's/ARCH/PowerPC/' \
98 -e 's/HARDWARE/32-bit Apple and Pegasos hardware/' \
99 -i $kmsg
100
101 @@ -100,7 +81,7 @@
102
103 echo "label=${x}" >> ${icfg}
104 echo "read-write" >> ${icfg}
105 - if [ "${clst_livecd_splash_type}" == "gensplash" -a -n "${clst_livecd_splash_theme}" ]
106 + if [ -n "${clst_livecd_splash_theme}" ]
107 then
108 echo "append=\"${default_append_line} splash=silent,theme:${clst_livecd_splash_theme} CONSOLE=/dev/tty1 quiet\"" >> ${icfg}
109 else
110 @@ -108,28 +89,8 @@
111 fi
112 done
113 ;;
114 -
115 ppc64)
116 # NO SOFTLEVEL SUPPORT YET
117 -
118 - # PPC requirements:
119 - # -----------------
120 - # The specs indicate the kernels to be build. We need to put
121 - # those kernels and the corresponding initrd.img.gz(s) in the
122 - # /boot directory. This directory contains a message boot.msg
123 - # containing some info to be displayed on boot, a configuration
124 - # (yaboot.conf) specifying the boot options (kernel/initrd
125 - # combinations). The boot directory also contains a file called
126 - # yaboot, which normally gets copied from the live environment.
127 - # For now we supply a prebuilt file, prebuilt configuration
128 - # and prebuilt boot message. This can be enhanced later on
129 - # but the following suffices for now:
130 -
131 - # this sets up the config file for yaboot
132 -
133 -
134 - # ADD RUNLEVEL SUPPORT ???
135 -
136 icfg=$1/boot/yaboot.conf
137 kmsg=$1/boot/boot.msg
138
139 @@ -140,7 +101,7 @@
140 echo "message=/boot/boot.msg" >> ${icfg}
141
142 # Here is where I fix up the boot.msg file.
143 - sed -e 's/ARCH/PPC/' \
144 + sed -e 's/ARCH/PowerPC/' \
145 -e 's/HARDWARE/64-bit Apple and IBM hardware/' \
146 -i $kmsg
147
148 @@ -175,7 +136,7 @@
149
150 echo "label=${x}" >> ${etc_icfg}
151 echo "read-write" >> ${icfg}
152 - if [ "${clst_livecd_splash_type}" == "gensplash" -a -n "${clst_livecd_splash_theme}" ]
153 + if [ -n "${clst_livecd_splash_theme}" ]
154 then
155 echo "append=\"${default_append_line} splash=silent,theme:${clst_livecd_splash_theme} CONSOLE=/dev/tty1 quiet\"" >> ${etc_icfg}
156 else
157 @@ -208,7 +169,7 @@
158
159 echo "label=${x}" >> ${etc_icfg}
160 echo "read-write" >> ${etc_icfg}
161 - if [ "${clst_livecd_splash_type}" == "gensplash" -a -n "${clst_livecd_splash_theme}" ]
162 + if [ -n "${clst_livecd_splash_theme}" ]
163 then
164 echo "append=\"${default_append_line} splash=silent,theme:${clst_livecd_splash_theme} CONSOLE=/dev/tty1 quiet\"" >> ${etc_icfg}
165 else
166 @@ -228,7 +189,7 @@
167
168 echo "label=${x}" >> ${icfg}
169 echo "read-write" >> ${icfg}
170 - if [ "${clst_livecd_splash_type}" == "gensplash" -a -n "${clst_livecd_splash_theme}" ]
171 + if [ -n "${clst_livecd_splash_theme}" ]
172 then
173 echo "append=\"${default_append_line} splash=silent,theme:${clst_livecd_splash_theme} CONSOLE=/dev/tty1 quiet\"" >> ${icfg}
174 else
175 @@ -260,7 +221,7 @@
176
177 echo "label=${x}" >> ${icfg}
178 echo "read-write" >> ${icfg}
179 - if [ "${clst_livecd_splash_type}" == "gensplash" -a -n "${clst_livecd_splash_theme}" ]
180 + if [ -n "${clst_livecd_splash_theme}" ]
181 then
182 echo "append=\"${default_append_line} splash=silent,theme:${clst_livecd_splash_theme} CONSOLE=/dev/tty1 quiet\"" >> ${icfg}
183 else
184 @@ -280,10 +241,9 @@
185 fi
186 fi
187
188 - ;;
189 + ;;
190 sparc*)
191 # NO SOFTLEVEL SUPPORT YET
192 -
193 scfg=$1/boot/silo.conf
194 echo "default=\"help\"" > ${scfg}
195 echo "message=\"/boot/boot.msg\"" >> ${scfg}
196 @@ -305,10 +265,9 @@
197 echo -e "label=\"help\"" >> ${scfg}
198 echo "image=\"cat /boot/parameters.msg\"" >> ${scfg}
199 echo -e "label=\"parameters\"" >> ${scfg}
200 - ;;
201 + ;;
202 ia64)
203 # NO SOFTLEVEL SUPPORT YET
204 -
205 iacfg=$1/boot/elilo.conf
206 echo 'prompt' > ${iacfg}
207 echo 'message=/efi/boot/elilo.msg' >> ${iacfg}
208 @@ -336,7 +295,7 @@
209 mv $1/boot/${x}{,.igz} $1/boot/efi/boot
210 done
211 cp ${iacfg} $1/boot/efi/boot
212 - ;;
213 + ;;
214 x86|amd64)
215 if [ -e $1/isolinux/isolinux.bin ]
216 then
217 @@ -377,12 +336,9 @@
218 do
219 echo "label ${x}-${y}" >> ${icfg}
220 echo " kernel ${x}" >> ${icfg}
221 - if [ "${clst_livecd_splash_type}" == "gensplash" -a -n "${clst_livecd_splash_theme}" ]
222 + if [ -n "${clst_livecd_splash_theme}" ]
223 then
224 echo " append ${default_append_line} softlevel=${y} initrd=${x}.igz vga=791 splash=silent,theme:${clst_livecd_splash_theme} CONSOLE=/dev/tty1 quiet" >> ${icfg}
225 - elif [ "${clst_livecd_splash_type}" == "bootplash" -a -n "${clst_livecd_splash_theme}" ]
226 - then
227 - echo " append ${default_append_line} softlevel=${y} initrd=${x}.igz vga=791 splash=silent" >> ${icfg}
228 else
229 echo " append ${default_append_line} softlevel=${y} initrd=${x}.igz vga=791" >> ${icfg}
230 fi
231 @@ -398,12 +354,9 @@
232 else
233 echo "label ${x}" >> ${icfg}
234 echo " kernel ${x}" >> ${icfg}
235 - if [ "${clst_livecd_splash_type}" == "gensplash" -a -n "${clst_livecd_splash_theme}" ]
236 + if [ -n "${clst_livecd_splash_theme}" ]
237 then
238 echo " append ${default_append_line} initrd=${x}.igz vga=791 splash=silent,theme:${clst_livecd_splash_theme} CONSOLE=/dev/tty1 quiet" >> ${icfg}
239 - elif [ "${clst_livecd_splash_type}" == "bootplash" -a -n "${clst_livecd_splash_theme}" ]
240 - then
241 - echo " append ${default_append_line} initrd=${x}.igz vga=791 splash=silent" >> ${icfg}
242 else
243 echo " append ${default_append_line} initrd=${x}.igz vga=791" >> ${icfg}
244 fi
245 @@ -457,17 +410,19 @@
246 echo "timeout 15" >> ${icfg}
247 echo "pager on" >> ${icfg}
248
249 + # Copy our splash if we're a Gentoo release
250 + case ${clst_livecd_type} in
251 + gentoo-*)
252 + [ -e ${clst_chroot_path}/boot/grub/splash.xpm.gz ] && \
253 + cp -f ${clst_chroot_path}/boot/grub/splash.xpm.gz \
254 + ${1}/boot/grub
255 + ;;
256 + esac
257 +
258 if [ -e ${1}/boot/grub/splash.xpm.gz ]; then
259 echo "splashimage=/boot/grub/splash.xpm.gz" >> ${icfg}
260 fi
261
262 - # Setup help message
263 - echo >> ${icfg}
264 - echo "title help" >> ${icfg}
265 - cp ${clst_sharedir}/livecd/files/README.txt \
266 - $1/boot/help.msg
267 - echo "cat /boot/help.msg" >> ${icfg}
268 -
269 for x in ${clst_boot_kernel}
270 do
271 eval custom_kopts=\$${x}_kernelopts
272 @@ -481,12 +436,9 @@
273 for y in ${clst_kernel_softlevel}
274 do
275 echo "title ${x}-${y}" >> ${icfg}
276 - if [ "${clst_livecd_splash_type}" == "gensplash" -a -n "${clst_livecd_splash_theme}" ]
277 + if [ -n "${clst_livecd_splash_theme}" ]
278 then
279 echo "kernel /boot/${x} softlevel=${y} ${default_append_line} vga=791 splash=silent,theme:${clst_livecd_splash_theme} CONSOLE=/dev/tty1 quiet" >> ${icfg}
280 - elif [ "${clst_livecd_splash_type}" == "bootplash" -a -n "${clst_livecd_splash_theme}" ]
281 - then
282 - echo " append ${default_append_line} softlevel=${y} initrd=${x}.igz vga=791 splash=silent" >> ${icfg}
283 else
284 echo " append ${default_append_line} softlevel=${y} initrd=${x}.igz vga=791" >> ${icfg}
285 fi
286 @@ -505,12 +457,9 @@
287 done
288 else
289 echo "title ${x}" >> ${icfg}
290 - if [ "${clst_livecd_splash_type}" == "gensplash" -a -n "${clst_livecd_splash_theme}" ]
291 + if [ -n "${clst_livecd_splash_theme}" ]
292 then
293 echo "kernel /boot/${x} ${default_append_line} vga=791 splash=silent,theme:${clst_livecd_splash_theme} CONSOLE=/dev/tty1 quiet" >> ${icfg}
294 - elif [ "${clst_livecd_splash_type}" == "bootplash" -a -n "${clst_livecd_splash_theme}" ]
295 - then
296 - echo "kernel /boot/${x} ${default_append_line} vga=791 splash=silent" >> ${icfg}
297 else
298 echo "kernel /boot/${x} ${default_append_line} vga=791" >> ${icfg}
299 fi
300 @@ -529,6 +478,13 @@
301
302 done
303
304 + # Setup help message
305 + echo >> ${icfg}
306 + echo "title help" >> ${icfg}
307 + cp ${clst_sharedir}/livecd/files/README.txt \
308 + $1/boot/help.msg
309 + echo "cat /boot/help.msg" >> ${icfg}
310 +
311 if [ -f $1/boot/memtest86 ]
312 then
313 echo >> ${icfg}
314 @@ -536,12 +492,10 @@
315 echo "kernel /boot/memtest86" >> ${icfg}
316 fi
317 fi
318 - ;;
319 + ;;
320 mips)
321 -
322 # NO SOFTLEVEL SUPPORT YET
323
324 -
325 # Mips is an interesting arch -- where most archs will
326 # use ${1} as the root of the LiveCD, an SGI LiveCD lacks
327 # such a root. Instead, we will use ${1} as a scratch
328
329 --
330 gentoo-commits@l.g.o mailing list