summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-sysadm/2011-February/002600.html
blob: 3ae597b5a66269d64b163bbadce94949d00ff6f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-sysadm] [473] Import images
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B473%5D%20Import%20images&In-Reply-To=%3C20110207112050.B973540361%40valstar.mageia.org%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="002599.html">
   <LINK REL="Next"  HREF="002601.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-sysadm] [473] Import images</H1>
    <B>root at mageia.org</B> 
    <A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20%5B473%5D%20Import%20images&In-Reply-To=%3C20110207112050.B973540361%40valstar.mageia.org%3E"
       TITLE="[Mageia-sysadm] [473] Import images">root at mageia.org
       </A><BR>
    <I>Mon Feb  7 12:20:50 CET 2011</I>
    <P><UL>
        <LI>Previous message: <A HREF="002599.html">[Mageia-sysadm] [472] List broken dependencies instead of mdv packages now that none is left
</A></li>
        <LI>Next message: <A HREF="002601.html">[Mageia-sysadm] [474] Add tags dir
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#2600">[ date ]</a>
              <a href="thread.html#2600">[ thread ]</a>
              <a href="subject.html#2600">[ subject ]</a>
              <a href="author.html#2600">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Revision: 473
Author:   dmorgan
Date:     2011-02-07 12:20:50 +0100 (Mon, 07 Feb 2011)
Log Message:
-----------
Import images

Added Paths:
-----------
    drakx/trunk/images/
    drakx/trunk/images/.perl_checker
    drakx/trunk/images/Makefile
    drakx/trunk/images/NEWS
    drakx/trunk/images/advanced.msg.xml
    drakx/trunk/images/help.msg.xml
    drakx/trunk/images/make_boot_img
    drakx/trunk/images/update_kernel

Added: drakx/trunk/images/.perl_checker
===================================================================
--- drakx/trunk/images/.perl_checker	                        (rev 0)
+++ drakx/trunk/images/.perl_checker	2011-02-07 11:20:50 UTC (rev 473)
@@ -0,0 +1 @@
+XML::Parser

Added: drakx/trunk/images/Makefile
===================================================================
--- drakx/trunk/images/Makefile	                        (rev 0)
+++ drakx/trunk/images/Makefile	2011-02-07 11:20:50 UTC (rev 473)
@@ -0,0 +1,57 @@
+include ../Makefile.config
+
+VERSION=1.50
+PRODUCT=drakx-installer-images
+KERNELS=$(shell rpm -qf /lib/modules/2.*)
+
+IMAGES_DEST = $(ROOTDEST)/install/images
+
+all: images
+
+images: all.kernels
+	DISTRIB_DESCR=$(DISTRIB_DESCR) ./make_boot_img
+	rm -rf images/alternatives 
+	if [ `ls images/*.img-* 2&gt;/dev/null | wc -l` -gt 0 ]; then	\
+	  mkdir images/alternatives; cd images/alternatives; mv ../*.img-* .; md5sum *.img-* &gt; MD5SUM; \
+	fi
+	cd images ; md5sum *.{img,iso}* &gt; MD5SUM
+
+all.kernels: update_kernel ../kernel/list_modules.pm
+	./update_kernel $(KERNELS)
+
+dist: tar
+tar:
+	@rm -rf $(PRODUCT)*.tar* $(PRODUCT)-$(VERSION)
+	@if [ -e &quot;.svn&quot; ]; then \
+		$(MAKE) dist-svn; \
+	elif [ -e &quot;../.git&quot; ]; then \
+		$(MAKE) dist-git; \
+	else \
+		echo &quot;Unknown SCM (not SVN nor GIT)&quot;;\
+		exit 1; \
+	fi;
+	$(info $(PRODUCT)-$(VERSION).tar.bz2 is ready)
+
+dist-svn:
+	mkdir -p $(PRODUCT)-$(VERSION) 
+	svn export -q -rBASE . $(PRODUCT)-$(VERSION)/images
+	svn export -q -rBASE ../kernel $(PRODUCT)-$(VERSION)/kernel
+	cp ../Makefile.config $(PRODUCT)-$(VERSION)/
+	tar cfj $(PRODUCT)-$(VERSION).tar.bz2 $(PRODUCT)-$(VERSION)
+	rm -rf $(PRODUCT)-$(VERSION)
+
+dist-git:
+	@cd ..; git archive --prefix=$(PRODUCT)-$(VERSION)/ HEAD images kernel Makefile.config | bzip2 &gt;images/$(PRODUCT)-$(VERSION).tar.bz2;
+
+clean:
+	rm -rf images isolinux all.kernels modules.description
+	find . -name &quot;*~&quot; -o -name &quot;.#*&quot; | xargs rm -f
+
+install:
+	install -d $(IMAGES_DEST)
+	rm -rf $(IMAGES_DEST)/alternatives 
+	cp -r images/* $(IMAGES_DEST)
+    ifneq (,$(findstring $(ARCH), i386 x86_64))
+	rm -rf $(ROOTDEST)/isolinux
+	cp -af isolinux $(ROOTDEST)
+    endif


Property changes on: drakx/trunk/images/Makefile
___________________________________________________________________
Added: svn:eol-style
   + native

Added: drakx/trunk/images/NEWS
===================================================================
--- drakx/trunk/images/NEWS	                        (rev 0)
+++ drakx/trunk/images/NEWS	2011-02-07 11:20:50 UTC (rev 473)
@@ -0,0 +1,208 @@
+Version 1.50 - 13 Oct 2010, by Thierry Vignaud
+
+- 2011.0 build
+
+Version 1.49 - 27 May 2010, by Olivier Blin
+
+- disable restore option
+
+Version 1.48 -  28 February 2010, by Thierry Vignaud
+
+- handle new SCSI driver: mpt2sas (#57833)
+
+Version 1.47 -  4 January 2010, by Pascal Terjan
+
+- use /bin/busybox.static
+
+Version 1.46 - 12 October 2009, by Olivier Blin
+
+- properly fix FileHandle issue
+
+Version 1.45 - 12 October 2009, by Thierry Vignaud
+
+- fix firmware again (#53220)
+
+Version 1.44 - 6 October 2009, by Thierry Vignaud
+
+- do not do anything anymore with bootsplash.cfg
+
+Version 1.43 - 22 September 2009, by Olivier Blin
+
+- fix firmware loading (#49195)
+- revert squashfs-lzma and sqlzma inclusion (this breaks install)
+- list asix module in network/usb group
+
+Version 1.42 - 9 September 2009, by Pascal Terjan
+
+- include squashfs-lzma and sqlzma kernel modules in all.rdz
+- add /dev/ptmx (for screen to work)
+- drop duplicated code including busybox, ka version is better than
+  the one of DEBUGSTAGE1
+- embed all firmwares that are needed by the modules we embed
+
+Version 1.40 - 14 April 2009, by Pascal Terjan
+
+- handle firmware loading in stage2 too
+
+Version 1.39 - 6 April 2009, by Pascal Terjan
+
+- fix firmware helper generation
+
+Version 1.38 - 3 April 2009, by Thierry Vignaud
+
+- include firmwares for most common network cards (#49195)
+- pass restore instead of --restore option
+- add a userspace helper to load firmwares
+
+Version 1.37 - 3 April 2009, by Pascal Terjan
+
+- fix crypto module names when arch is not i586 (#46814)
+
+Version 1.36 - 9 March 2009, by Thierry Vignaud
+
+- add /dev/random and /dev/urandom (for curl)
+
+Version 1.35 - 18 February 2009, by Thierry Vignaud
+
+- pass --restore instead of restore option
+
+Version 1.34 - 10 February 2009, by Thierry Vignaud
+
+- enable to select restore option
+
+Version 1.33 - 23 January 2009, by Christophe Fergeau
+
+- adjust to new syslinux 3.72 gfxboot COM32 module
+
+Version 1.32 - 15 January 2008, by Thierry Vignaud
+
+- include:
+  o network drivers: enic, et131x, qlge, smsc95xx, sxg &amp; w35und
+  o IDE driver: tx4939ide
+- ext4dev was renamed as ext4 in 2.6.29-rc1 (keep ext4dev for older kernels)
+
+Version 1.31 - 19 September 2008, by Pascal &quot;pixel&quot; Rigaux
+
+- add modules &quot;sha256_generic cbc amd768_rng&quot; for crypsetup/LUKS
+
+Version 1.30 - 12 June 2008, by Olivier &quot;blino&quot; Blin
+
+- handle ide-cd being renamed as ide-cd_mod
+
+Version 1.29 - 2 April 2008, by Olivier &quot;blino&quot; Blin
+
+- use &quot;Mdv Boot ISO&quot; as label for boot.iso
+
+Version 1.28 - 12 February 2008, by Olivier &quot;blino&quot; Blin
+
+- restore full modules.alias (depmod keeps only available modules in
+  modules.alias, but we want them all)
+
+Version 1.27 - 12 February 2008, by Olivier &quot;blino&quot; Blin
+
+- add modules in /modules/`uname -r` and use depmod to build
+  modules.dep and modules.alias
+- remove symlinks in toplevel /modules
+- fix custom bootsplash theme support
+
+Version 1.26 - 21 December 2007, by Olivier &quot;blino&quot; Blin
+
+- rebuild with list_modules to handle atl2 ethernet driver
+- fix live stage2 support
+
+Version 1.25 - 12 December 2007, by Pascal &quot;Pixel&quot; Rigaux
+
+- rebuild for new list_modules
+
+Version 1.24 - 15 October 2007, by Olivier &quot;blino&quot; Blin
+
+- rebuild for new list_modules (to include ipw3945)
+
+Version 1.23 - 17 September 2007, by Pascal &quot;Pixel&quot; Rigaux
+
+- add dm-zero for dmraid
+
+Version 1.22 - 11 September 2007, by Olivier &quot;blino&quot; Blin
+
+- add /lib/module-init-tools/ldetect-lst-modules.alias
+
+Version 1.21 - 7 September 2007, by Olivier &quot;blino&quot; Blin
+
+- add jmicron driver
+- provide /usr/share/ldetect-lst/*-modules.alias in installer images
+
+Version 1.20 - 31 August 2007, by Pascal &quot;Pixel&quot; Rigaux
+
+- dynamically determine the size of all.img
+
+Version 1.19 - 27 August 2007, by Olivier &quot;blino&quot; Blin
+
+- add raid456 module
+
+Version 1.18 - 21 August 2007, by Olivier &quot;blino&quot; Blin
+
+- release with latest scripts from drakx/kernel
+
+Version 1.17 - 21 August 2007, by Olivier &quot;blino&quot; Blin
+
+- keep modules without dependencies in modules.dep
+
+Version 1.16 - 21 August 2007, by Olivier &quot;blino&quot; Blin
+
+- build with new list_modules
+
+Version 1.15 - 15 August 2007, by Olivier &quot;blino&quot; Blin
+
+- add pcitable, usbtable and pci.ids
+- fix typos affecting mtab and /var/run creation
+- add a /lib/modules symlink
+
+Version 1.14 - 9 August 2007, by Pascal &quot;Pixel&quot; Rigaux
+
+- update_kernel: now require install rpms or rpm files as arguments
+  (this allow specifying precisely which installed kernels are used)
+
+Version 1.13 - 8 August 2007, by Pascal &quot;Pixel&quot; Rigaux
+
+- add modules.alias in /modules/&lt;version&gt; as required by stage2 with new libldetect
+- add unionfs module
+- revert isolinux starting install by default instead of booting on harddrive (#32040)
+
+Version 1.12 - 17 July 2007, by Olivier &quot;blino&quot; Blin
+
+- add ide-disk module
+
+Version 1.11 - 29 June 2007, by Pascal &quot;Pixel&quot; Rigaux
+
+- increase all.img size to 10.5MB
+- default to theme Mandriva-Free, and allow setting another one through THEME
+  environment variable
+
+Version 1.9 - 3 April 2007, by Pascal &quot;Pixel&quot; Rigaux
+
+- include mmc_block for card readers
+
+Version 1.8 - 23 March 2007, by Pascal &quot;Pixel&quot; Rigaux
+
+- restore F1 &amp; F2 in boot.iso (#29766)
+
+Version 1.6 - 14 March 2007, by Olivier Blin
+
+- add tifm modules (Titi)
+
+Version 1.5 - 9 March 2007, by Pascal &quot;Pixel&quot; Rigaux
+
+- copy isolinux images for x86_64 as well
+
+Version 1.4 - 8 March 2007, by Pascal &quot;Pixel&quot; Rigaux
+
+- restore vga= and automatic= default options.
+  also restore noacpi, alt0, vgalo, vgahi, text entries
+  (all this is needed when gfxboot is not working or not there)
+
+Version 1.3 - 16 February 2007, by Pascal &quot;Pixel&quot; Rigaux
+
+- rely on gfxboot for options (vga=, automatic=...)
+- really use memtest instead of memtest.bin
+  (with file name &quot;memtest.bin&quot; it fails with error 8000, with &quot;memtest&quot; it works)
+  (it seems to be an ancient bug as far as google says)

Added: drakx/trunk/images/advanced.msg.xml
===================================================================
--- drakx/trunk/images/advanced.msg.xml	                        (rev 0)
+++ drakx/trunk/images/advanced.msg.xml	2011-02-07 11:20:50 UTC (rev 473)
@@ -0,0 +1,17 @@
+&lt;document&gt;
+The following install types may be used instead of previously notified :
+ o  &lt;white&gt;vgahi&lt;/white&gt; for high resolution graphical installation.
+ o  &lt;white&gt;vga16&lt;/white&gt; for 640x480 in 16 colors graphical installation.
+
+The following options may be added on the command line :
+ o  &lt;white&gt;readonly=1&lt;/white&gt; to disable editing disk partitions.
+ o  &lt;white&gt;display=ackbar:0&lt;/white&gt; to export display to &lt;blue&gt;ackbar&lt;/blue&gt; machine screen 0 during
+    installation (only for network installations).
+ o  &lt;white&gt;noauto&lt;/white&gt; to disable automatic detection.
+ o  &lt;white&gt;nodmraid&lt;/white&gt; to disable BIOS software RAID.
+ o  &lt;white&gt;updatemodules&lt;/white&gt; to use the special update floppy containing modules updates.
+ o  &lt;white&gt;patch&lt;/white&gt; to use a patch from the floppy (file named &lt;blue&gt;patch.pl&lt;/blue&gt;).
+ o  &lt;white&gt;auto_install=floppy&lt;/white&gt; to enable auto_install using &lt;blue&gt;auto_inst.cfg&lt;/blue&gt; file on the
+    floppy.
+ o  &lt;white&gt;memtest&lt;/white&gt; to test your computer RAM for faulty memory modules.
+&lt;/document&gt;

Added: drakx/trunk/images/help.msg.xml
===================================================================
--- drakx/trunk/images/help.msg.xml	                        (rev 0)
+++ drakx/trunk/images/help.msg.xml	2011-02-07 11:20:50 UTC (rev 473)
@@ -0,0 +1,21 @@
+&lt;document&gt;
+                  &lt;green&gt;Welcome to &lt;blue&gt;Mageia&lt;/blue&gt; install help&lt;/green&gt;
+
+In most cases, the best way to get started is to simply press the &lt;yellow&gt;&amp;lt;Enter&amp;gt;&lt;/yellow&gt; key.
+If you experience problems with standard install, try one of the following 
+install types (type the highlighted text and press &lt;yellow&gt;&amp;lt;Enter&amp;gt;&lt;/yellow&gt;):
+
+ o  &lt;white&gt;text&lt;/white&gt; for text installation instead of the graphical one.
+ o  &lt;white&gt;linux&lt;/white&gt; for standard graphical installation at normal resolution.
+ o  &lt;white&gt;linux vga=785&lt;/white&gt; for low resolution graphical installation.
+
+
+To repair an already installed system type &lt;white&gt;rescue&lt;/white&gt; followed
+by &lt;yellow&gt;&amp;lt;Enter&amp;gt;&lt;/yellow&gt;.
+
+You can also pass some &lt;white&gt;&amp;lt;specific kernel options&amp;gt;&lt;/white&gt; to the Linux kernel. 
+For example, try &lt;white&gt;linux noapic&lt;/white&gt; if your system has trouble operating
+your network adapter correctly.
+&lt;red&gt;NOTE&lt;/red&gt;: You cannot pass options to modules (SCSI, ethernet card) or devices
+such as CD-ROM drives in this way. If you need to do so, use noauto mode.
+&lt;/document&gt;

Added: drakx/trunk/images/make_boot_img
===================================================================
--- drakx/trunk/images/make_boot_img	                        (rev 0)
+++ drakx/trunk/images/make_boot_img	2011-02-07 11:20:50 UTC (rev 473)
@@ -0,0 +1,826 @@
+#!/usr/bin/perl
+
+use Config;
+use FileHandle;
+use MDK::Common;
+Config-&gt;import;
+my ($arch) = $Config{archname} =~ /(.*?)-/;
+
+my $default_append = '';
+my $default_acpi = '';
+my $default_vga = &quot;vga=788 splash=silent&quot;;
+my $timeout = 150;
+my $isolinux_bin = $arch eq 'x86_64' ? '/usr/lib/syslinux/isolinux-x86_64.bin' : '/usr/lib/syslinux/isolinux-i586.bin';
+my $lib = $arch eq 'x86_64' ? 'lib64' : 'lib';
+
+my $tmp_mnt = '/tmp/drakx_mnt';
+my $tmp_initrd = '/tmp/drakx_initrd';
+
+my $sudo;
+if ($&gt;) {
+    $sudo = &quot;sudo&quot;;
+    $ENV{PATH} = &quot;/sbin:/usr/sbin:$ENV{PATH}&quot;;
+}
+
+sub __ { print @_, &quot;\n&quot;; system(@_) }
+sub _ { __ @_; $? and die }
+sub mke2fs { 
+    my ($f) = @_;
+    _ &quot;/sbin/mke2fs -q -m 0 -F -s 1 $f&quot;;
+    _ &quot;/sbin/tune2fs -c 0 -U clear -T 1970010101 $f&quot;;
+}
+
+_ &quot;mkdir -p $tmp_mnt&quot;;
+mkdir &quot;images&quot;;
+
+my @kernels = chomp_(cat_('all.kernels/.list'));
+
+my @all_images = (
+		  if_($arch =~ /i.86/, 'isolinux', 'boot.iso', 'all.img', 'hd_grub.img'),
+		  if_($arch =~ /x86_64/, 'isolinux', 'boot.iso', 'all.img', 'hd_grub.img'),
+		  if_($arch =~ /ia64/, 'all.img'),
+		  if_($arch =~ /ppc/, 'all.img'),
+		 );
+
+my @images = @ARGV ? @ARGV : map { &quot;images/$_&quot; } @all_images;
+
+foreach my $img (@images) {
+    my ($type, $I, $extension) = $img =~ m!([^/]*)(64)?\.([^.]*)$!;
+
+    if ($img =~ /hd_grub/) {
+	hd_grub($img);
+    } elsif ($img =~ /isolinux/) {
+	isolinux(\@kernels);
+
+	if (my ($tftpboot) = grep { -e $_ } qw(/tftpboot /var/lib/tftpboot)) {
+	    system(&quot;/bin/cp -f isolinux/alt0/* $tftpboot&quot;);
+	}
+    } elsif ($img =~ /boot.iso/) {
+	boot_iso($img, \@kernels);
+    } elsif ($extension eq 'rdz') {
+	initrd($type, $I, &quot;$img-$_&quot;) foreach @kernels;
+    } elsif ($extension eq 'img') {
+	print STDERR &quot;calling boot_img_$arch for $img\n&quot;;
+	$::{&quot;boot_img_$arch&quot;}-&gt;($type, $I, &quot;$img-$_&quot;, &quot;all.kernels/$_/vmlinuz&quot;) foreach @kernels;
+	rename(&quot;$img-$kernels[0]&quot;, $img);
+    } else {
+	die &quot;unknown image $img&quot;;
+    }
+}
+
+sub syslinux_color {
+    &quot;0&quot; . {
+	default =&gt; '7',
+	blue    =&gt; '9',
+	green   =&gt; 'a',
+	red     =&gt; 'c',
+	yellow  =&gt; 'e',
+	white   =&gt; 'f',
+    }-&gt;{$_[0]} || die &quot;unknown color $_[0]\n&quot;;
+}
+
+sub syslinux_msg { 
+    my ($msg_xml_file, @more_text) = @_;
+
+    require XML::Parser;
+
+    sub xml_tree2syslinux {
+	my ($current_color, $tree) = @_;
+	my (undef, @l) = @$tree;
+	join('', map {
+	    my ($type, $val) = @$_;
+	    if ($type eq '0') {
+		$val;
+	    } else {
+		syslinux_color($type) . xml_tree2syslinux($type, $val) . syslinux_color($current_color);
+	    }
+	} group_by2(@l));
+    }
+
+    print &quot;parsing $msg_xml_file\n&quot;;
+    my $tree = XML::Parser-&gt;new(Style =&gt; 'Tree')-&gt;parsefile($msg_xml_file);
+    $tree-&gt;[0] eq 'document' or die &quot;bad file $msg_xml_file\n&quot;;
+    my $text = xml_tree2syslinux('default', $tree-&gt;[1]);
+
+    pack(&quot;C*&quot;, 0x0E, 0x80, 0x03, 0x00) . &quot;&quot;
+      . $text . join('', @more_text)
+      . &quot;\n&quot; . syslinux_color('red') . &quot;[F1-Help] [F2-Advanced Help]&quot; . syslinux_color('default') . &quot;\n&quot;;
+}
+
+sub syslinux_cfg {
+    my ($entries, $b_gfxboot) = @_;
+    my $default = 'linux';
+
+    my $header = &lt;&lt;EOF;
+default $default
+prompt 1
+timeout $timeout
+display help.msg
+implicit 1
+EOF
+    my $header_gfxboot = &lt;&lt;EOF;
+ui gfxboot.com bootlogo
+label harddisk
+  localboot 0x80
+EOF
+    my $header_non_gfxboot = &lt;&lt;EOF;
+F1 help.msg
+F2 advanced.msg
+F3 boot.msg
+EOF
+
+    my @l = map {
+	$_-&gt;{append} =~ s/\s+/ /g;
+	&quot;label $_-&gt;{label}\n&quot; .
+	&quot;  kernel $_-&gt;{kernel}\n&quot; .
+	($_-&gt;{initrd} ? &quot;  append initrd=$_-&gt;{initrd} $_-&gt;{append}\n&quot; : '');
+    } @$entries;
+
+    $header . ($b_gfxboot ? $header_gfxboot : $header_non_gfxboot) . join('', @l);
+}
+
+sub initrd {
+    my ($type, $I, $img) = @_;
+    my $stage1_root = $ENV{DEBUGSTAGE1} ? &quot;../mdk-stage1&quot; : &quot;/usr/$lib/drakx-installer-binaries&quot;;
+    my ($ext) = $img =~ /rdz-(.*)/ or die &quot;bad initrd name ($img)&quot;;
+
+    _ &quot;rm -rf $tmp_initrd&quot;;
+    mkdir_p(&quot;$tmp_initrd$_&quot;) foreach qw(/etc /firmware /lib /modules /sbin /tmp /var);
+    symlink &quot;../modules&quot;, &quot;$tmp_initrd/lib/modules&quot;;
+    symlink &quot;../firmware&quot;, &quot;$tmp_initrd/lib/firmware&quot;;
+
+    symlink &quot;/proc/mounts&quot;, &quot;$tmp_initrd/etc/mtab&quot;;
+    symlink &quot;../tmp&quot;, &quot;$tmp_initrd/var/run&quot;;
+    _ &quot;install -D /usr/share/terminfo/l/linux $tmp_initrd/usr/share/terminfo/l/linux&quot;;
+    foreach ('pcitable', 'usbtable') {
+        _ &quot;install -D /usr/share/ldetect-lst/$_.gz $tmp_initrd/usr/share/ldetect-lst/$_.gz&quot;;
+    }
+    _ &quot;install -D /usr/share/pci.ids $tmp_initrd/usr/share/pci.ids&quot;;
+    foreach (&quot;/usr/share/ldetect-lst/fallback-modules.alias&quot;, &quot;/lib/module-init-tools/ldetect-lst-modules.alias&quot;) {
+        _ &quot;install -D $_ $tmp_initrd$_&quot;;
+    }
+    foreach my $firm (glob_(&quot;all.kernels$I/$ext/firmware/*&quot;)) {
+        my $dest=$firm;
+        $dest =~ s|all.kernels$I/$ext/||;
+        _ &quot;cp -a $firm $tmp_initrd/$dest&quot;;
+    };
+
+    output(&quot;$tmp_initrd/hotplug&quot;, q{#!/bin/sh -e
+if [ &quot;$SUBSYSTEM&quot; = firmware ] &amp;&amp; [ &quot;$ACTION&quot; = add ] &amp;&amp; [ -n &quot;$FIRMWARE&quot; ] ; then
+  if [ ! -e /sys$DEVPATH/loading ]; then
+    exit 1
+  fi
+  if [ -e &quot;/lib/firmware/$FIRMWARE&quot; ]; then
+    echo 1 &gt; /sys$DEVPATH/loading
+    cat &quot;/lib/firmware/$FIRMWARE&quot; &gt; /sys$DEVPATH/data
+    echo 0 &gt; /sys$DEVPATH/loading
+    exit 0
+  fi
+  echo -1 &gt; /sys$DEVPATH/loading
+  exit 1
+fi
+});
+    _ &quot;chmod 755 $tmp_initrd/hotplug&quot;;
+    symlink &quot;../hotplug&quot;, &quot;$tmp_initrd/sbin/hotplug&quot;;
+    _ &quot;install $stage1_root/init $tmp_initrd/&quot;;
+    foreach ('stage1', 'pppd', 'pppoe') {
+	_ &quot;install $stage1_root/$_ $tmp_initrd/sbin/&quot;;
+    }
+
+    if ($arch !~ /ppc|ia64/) {
+	mkdir_p(&quot;$tmp_initrd/etc/pcmcia&quot;);
+	 _ &quot;cp -a /etc/pcmcia/config.opts $tmp_initrd/etc/pcmcia&quot;;
+    }
+    {
+	my $modz = &quot;all.kernels$I/$ext&quot;;
+	mkdir_p(&quot;$tmp_initrd/modules/$ext&quot;);
+	__ &quot;tar xC $tmp_initrd/modules/$ext -f $modz/${type}_modules.tar&quot;;
+	_ &quot;depmod -b $tmp_initrd $ext&quot;;
+	# depmod keeps only available modules in modules.alias, but we want them all
+	_ &quot;cp -f $modz/modules.alias $modz/modules.description $tmp_initrd/modules/$ext&quot;;
+    }
+    # ka deploy need some files in all.rdz 
+    {
+	mkdir_p(&quot;$tmp_initrd/$_&quot;) foreach qw(dev ka proc var/tmp tmp/stage2);
+	symlink(&quot;/sbin&quot;, &quot;$tmp_initrd/bin&quot;);
+	cp_af(&quot;/usr/bin/ka-d-client&quot;, &quot;$tmp_initrd/ka/ka-d-client&quot;);
+	cp_af(&quot;/bin/busybox.static&quot;, &quot;$tmp_initrd/sbin/busybox&quot;);
+	my @funct = map { /functions:/ .. /^$/ ? do { s/\s//g; split /,/ } : () } `busybox.static`;
+	shift @funct;
+	symlink('busybox', $tmp_initrd . &quot;/sbin/$_&quot;) foreach @funct;
+    }
+
+    my $devs = sprintf &quot;ls /dev/{%s}&quot;, join(',', qw(console fb0 fd0 loop3 mem null ppp ptmx ptyp0 ram3 random tty[0-7] ttyp0 ttyS0 urandom));
+
+    _ &quot;(cd $tmp_initrd; (find . ; $devs) | cpio -o -c --quiet) | gzip -9 &gt; $img&quot;;
+    _ &quot;rm -rf $tmp_initrd&quot;;
+}
+
+sub entries_append {
+    my ($type) = @_;
+
+    my $automatic = $type =~ /cdrom/ ? 'automatic=method:cdrom ' : '';
+    $automatic .= 'changedisk ' if $type =~ /changedisk/;
+
+    my @simple_entries = (
+	linux =&gt; $default_vga,
+	vgalo =&gt; &quot;vga=785&quot;,
+	vgahi =&gt; &quot;vga=791&quot;,
+	text =&gt; &quot;text&quot;,
+#	patch =&gt; &quot;patch $default_vga&quot;,
+	rescue =&gt; &quot;rescue&quot;,
+    );
+    my @entries = (
+        (map { $_-&gt;[0] =&gt; &quot;$automatic$default_acpi $_-&gt;[1]&quot; } group_by2(@simple_entries)),
+	noacpi =&gt; &quot;$automatic$default_vga acpi=off&quot;,
+#	restore =&gt; &quot;$automatic$default_vga restore&quot;,
+    );
+
+    map { { label =&gt; $_-&gt;[0], append =&gt; join(' ', grep { $_ } $default_append, $_-&gt;[1]) } }
+      group_by2(@entries);
+}
+
+sub syslinux_cfg_all {
+    my ($type, $b_gfxboot) = @_;
+
+    syslinux_cfg([
+	(map {
+	    { kernel =&gt; 'alt0/vmlinuz', initrd =&gt; 'alt0/all.rdz', %$_ };
+	} entries_append($type)),
+	(map_index {
+	    { label =&gt; &quot;alt$::i&quot;, kernel =&gt; &quot;alt$::i/vmlinuz&quot;, initrd =&gt; &quot;alt$::i/all.rdz&quot;, 
+	      append =&gt; join(' ', grep { $_ } $default_append, $default_acpi, $default_vga) };
+	} @kernels),
+	{ label =&gt; 'memtest', kernel =&gt; 'memtest' },
+    ], $b_gfxboot);
+}
+sub remove_ending_zero {
+    my ($img) = @_;
+    _(q(perl -0777 -pi -e 's/\0+$//' ) . $img);
+}
+
+sub boot_img_i386 {
+    my ($type, $I, $img, $kernel) = @_;
+
+    _ &quot;rm -rf $tmp_mnt&quot;; mkdir $tmp_mnt;
+    _ &quot;cat $kernel &gt; $tmp_mnt/vmlinuz&quot;;
+
+    output(&quot;$tmp_mnt/help.msg&quot;, syslinux_msg('help.msg.xml'));
+    output(&quot;$tmp_mnt/advanced.msg&quot;, syslinux_msg('advanced.msg.xml'));
+
+    (my $rdz = $img) =~ s/\.img/.rdz/;
+    (my $initrd_type = $type) =~ s/-changedisk//;
+    initrd($initrd_type, $I, $rdz);
+    my $short_type = substr($type, 0, 8);
+
+    output(&quot;$tmp_mnt/syslinux.cfg&quot;, 
+	   syslinux_cfg([ map {
+			    { kernel =&gt; 'vmlinuz', initrd =&gt; &quot;$short_type.rdz&quot;, %$_ };
+			} entries_append($type) ]));
+
+    _ &quot;cp -f $rdz $tmp_mnt/$short_type.rdz&quot;;
+    unlink $rdz;
+
+    my $size = max(chomp_(`du -s -k $tmp_mnt`) + 50, 1440);
+    _ &quot;dd if=/dev/zero of=$img bs=1k count=$size&quot;;
+
+    _ &quot;mkdosfs-with-dir $tmp_mnt $img&quot;;
+    _ &quot;syslinux $img&quot;;
+    _ &quot;rm -rf $tmp_mnt&quot;;
+}
+
+# alias to x86 variant, slightly bigger with images though
+sub boot_img_x86_64 { &amp;boot_img_i386 }
+
+sub boot_img_alpha {
+    my ($type, $I, $img) = @_;
+
+    __ &quot;$sudo umount $tmp_mnt 2&gt;/dev/null&quot;;
+    _ &quot;dd if=/dev/zero of=$img bs=1k count=1440&quot;;
+    mke2fs($img);
+    _ &quot;/sbin/e2writeboot $img /boot/bootlx&quot;;
+    _ &quot;$sudo mount -t ext2 $img $tmp_mnt -o loop&quot;;
+    _ &quot;cp -f vmlinux.gz $tmp_mnt&quot;;
+    -f &quot;$type.rdz&quot; ? _ &quot;cp -f $type.rdz $tmp_mnt&quot; : initrd($type, $I, &quot;$tmp_mnt/$type.rdz&quot;);
+
+    mkdir &quot;$tmp_mnt/etc&quot;, 0777;
+    output(&quot;$tmp_mnt/etc/aboot.conf&quot;, 
+&quot;0:vmlinux.gz initrd=$type.rdz rw $default_append $type
+1:vmlinux.gz initrd=$type.rdz rw $default_append text $type
+&quot;);
+    _ &quot;sync&quot;;
+    _ &quot;df $tmp_mnt&quot;;
+}
+
+sub boot_img_ia64 {
+    my ($type, $_I, $img, $kernel) = @_;
+	my $rdz = $img; $rdz =~ s/\.img/.rdz/;
+
+    __ &quot;$sudo umount $tmp_mnt 2&gt;/dev/null&quot;;
+    _ &quot;dd if=/dev/zero of=$img bs=1k count=16384&quot;;
+    _ &quot;mkdosfs $img&quot;;
+    _ &quot;$sudo mount -t vfat $img $tmp_mnt -o loop,umask=000&quot;;
+    _ &quot;$sudo cp -f $kernel $tmp_mnt/vmlinux&quot;;
+    _ &quot;cp -f $rdz $tmp_mnt/$type.rdz&quot;;
+    _ &quot;$sudo cp -f tools/ia64/elilo.efi $tmp_mnt&quot;;
+	output(&quot;$tmp_mnt/elilo.conf&quot;, qq(
+prompt
+timeout=50
+
+image=vmlinux
+        label=linux
+        initrd=$type.rdz
+        append=&quot; ramdisk_size=120000&quot;
+        read-only
+
+image=vmlinux
+        label=rescue
+        initrd=$type.rdz
+        append=&quot; rescue ramdisk_size=120000&quot;
+&quot;));
+    _ &quot;sync&quot;;
+    _ &quot;df $tmp_mnt&quot;;
+
+}
+
+sub boot_img_sparc {
+    my ($type, $I, $_img) = @_;
+    if ($type =~ /^live(.*)/) {
+	#- hack to produce directly into /export the needed file for cdrom boot.
+	my $dir = &quot;/export&quot;;
+	my $boot = &quot;boot&quot;; #- non-absolute pathname only!
+
+	_ &quot;mkdir -p $dir/$boot&quot;;
+	_ &quot;cp -f /boot/cd.b /boot/second.b $dir/$boot&quot;;
+	_ &quot;cp -f vmlinux$1 $dir/$boot/vmlinux$1&quot;;
+	-f &quot;live$1.rdz&quot; ? _ &quot;cp -f live$1.rdz $dir/$boot&quot; : initrd($type, $I, &quot;$dir/$boot/live$1.rdz&quot;);
+
+	output(&quot;$dir/$boot/silo.conf&quot;, qq(
+partition=1
+default=linux
+timeout=100
+read-write
+message=/$boot/boot.msg
+image=&quot;cat /$boot/boot.msg&quot;
+  label=1
+  single-key
+image=&quot;cat /$boot/general.msg&quot;
+  label=2
+  single-key
+image=&quot;cat /$boot/expert.msg&quot;
+  label=3
+  single-key
+image=&quot;cat /$boot/rescue.msg&quot;
+  label=4
+  single-key
+image=&quot;cat /$boot/kickit.msg&quot;
+  label=5
+  single-key
+image=&quot;cat /$boot/param.msg&quot;
+  label=6
+  single-key
+image[sun4c,sun4d,sun4m]=/$boot/vmlinux
+  label=linux
+  alias=install
+  initrd=/$boot/live.rdz
+  append=&quot;ramdisk_size=128000&quot;
+image[sun4c,sun4d,sun4m]=/$boot/vmlinux
+  label=text
+  initrd=/$boot/live.rdz
+  append=&quot;ramdisk_size=128000 text&quot;
+image[sun4c,sun4d,sun4m]=/$boot/vmlinux
+  label=expert
+  initrd=/$boot/live.rdz
+  append=&quot;ramdisk_size=128000 expert&quot;
+image[sun4c,sun4d,sun4m]=/$boot/vmlinux
+  label=ks
+  initrd=/$boot/live.rdz
+  append=&quot;ramdisk_size=128000 ks&quot;
+image[sun4c,sun4d,sun4m]=/$boot/vmlinux
+  label=rescue
+  initrd=/$boot/live.rdz
+  append=&quot;ramdisk_size=128000 rescue&quot;
+image[sun4u]=/$boot/vmlinux64
+  label=linux
+  alias=install
+  initrd=/$boot/live64.rdz
+  append=&quot;ramdisk_size=128000&quot;
+image[sun4u]=/$boot/vmlinux64
+  label=text
+  initrd=/$boot/live64.rdz
+  append=&quot;ramdisk_size=128000 text&quot;
+image[sun4u]=/$boot/vmlinux64
+  label=expert
+  initrd=/$boot/live64.rdz
+  append=&quot;ramdisk_size=128000 expert&quot;
+image[sun4u]=/$boot/vmlinux64
+  label=ks
+  initrd=/$boot/live64.rdz
+  append=&quot;ramdisk_size=128000 ks&quot;
+image[sun4u]=/$boot/vmlinux64
+  label=rescue
+  initrd=/$boot/live64.rdz
+  append=&quot;ramdisk_size=128000 rescue&quot;
+&quot;));
+
+	output(&quot;$dir/$boot/README&quot;, &quot;
+To Build a Bootable CD-ROM, try:
+  genisoimage -R -o t.iso -s /$boot/silo.conf /export
+&quot;);
+    } elsif ($type =~ /^tftprd(.*)/) {
+	my $dir = &quot;/export&quot;;
+	my $boot = &quot;images&quot;;
+	my $setarch = $1 ? &quot;sparc64&quot; : &quot;sparc32&quot;;
+
+	_ &quot;mkdir -p $dir/$boot&quot;;
+	-f &quot;$type.rdz&quot; or initrd($type, $I, &quot;$type.rdz&quot;);
+	_ &quot;cp -f vmlinux$1.aout $dir/$boot/$type.img&quot;;
+	_ &quot;$setarch kernel$1/src/arch/sparc$1/boot/piggyback $dir/$boot/$type.img kernel$1/boot/System.map $type.rdz&quot;;
+    } elsif ($type =~ /^tftp(.*)/) {
+	my $dir = &quot;/export&quot;;
+	my $boot = &quot;images&quot;;
+
+	_ &quot;mkdir -p $dir/$boot&quot;;
+	_ &quot;cp -f vmlinux$1.aout $dir/$boot/$type.img&quot;;
+    } else {
+	my $dir = &quot;floppy&quot;;
+	__ &quot;$sudo umount $tmp_mnt 2&gt;/dev/null&quot;;
+	_ &quot;rm -rf $dir&quot;;
+	_ &quot;mkdir -p $dir&quot;;
+	_ &quot;cp -f /boot/fd.b /boot/second.b $dir&quot;;
+	_ &quot;cp -f vmlinuz$I $dir/vmlinux$I.gz&quot;;
+	-f &quot;$type.rdz&quot; ? _ &quot;cp -f $type.rdz $dir&quot; : initrd($type, $I, &quot;$dir/$type.rdz&quot;);
+
+	output(&quot;$dir/boot.msg&quot;, &quot;
+Welcome to Mageia 1
+
+Press &lt;Enter&gt; to install or upgrade a system 7mMageia7m
+&quot;);
+
+	output(&quot;$dir/silo.conf&quot;, qq(
+partition=1
+default=linux
+timeout=100
+read-write
+message=/boot.msg
+image=/vmlinux$I.gz
+  label=linux
+  initrd=/$type.rdz
+  append=&quot;ramdisk_size=128000 $type&quot;
+&quot;));
+	_ &quot;genromfs -d $dir -f /dev/ram -A 2048,/.. -a 512 -V 'DrakX boot disk'&quot;;
+	_ &quot;$sudo mount -t romfs /dev/ram $tmp_mnt&quot;;
+	_ &quot;silo -r $tmp_mnt -F -i /fd.b -b /second.b -C /silo.conf&quot;;
+	_ &quot;$sudo umount $tmp_mnt&quot;;
+	_ &quot;dd if=/dev/ram of=$type.img bs=1440k count=1&quot;;
+	_ &quot;sync&quot;;
+	_ &quot;$sudo mount -t romfs /dev/ram $tmp_mnt&quot;;
+	_ &quot;df $tmp_mnt&quot;;
+    }
+}
+
+sub boot_img_ppc {
+	my ($_type, $I, $_img, $_kernel) = @_;
+	foreach (glob(&quot;all.kernels/*&quot;)) {
+		my $ext = basename($_);
+		if ($ext =~ /legacy/) {
+			initrd(&quot;all&quot;, $I, &quot;images/all.rdz-$ext&quot;);
+			_ &quot;mv images/all.rdz-$ext images/all.rdz-legacy&quot;;
+			_ &quot;cp $_/vmlinuz images/vmlinux-legacy&quot;;
+		}
+		elsif ($ext =~ /2.6/) {
+			initrd(&quot;all&quot;, $I, &quot;images/all.rdz-$ext&quot;);
+			_ &quot;mv images/all.rdz-$ext images/all.rdz&quot;;
+			_ &quot;cp $_/vmlinuz images/vmlinux&quot;;
+		}
+    }
+    _ &quot;cp -f /usr/lib/yaboot/yaboot images/yaboot&quot;;
+	
+	output(&quot;images/ofboot.b&quot;, '&lt;CHRP-BOOT&gt;
+&lt;COMPATIBLE&gt;
+MacRISC
+&lt;/COMPATIBLE&gt;
+&lt;DESCRIPTION&gt;
+Mageia PPC bootloader
+&lt;/DESCRIPTION&gt;
+&lt;BOOT-SCRIPT&gt;
+&quot; screen&quot; output
+load-base release-load-area
+dev screen
+&quot; &quot;(0000000000aa00aa0000aaaaaa0000aa00aaaa5500aaaaaa)&quot; drop 0 8 set-colors
+&quot; &quot;(5555555555ff55ff5555ffffff5555ff55ffffff55ffffff)&quot; drop 8 8 set-colors
+device-end
+3 to foreground-color
+0 to background-color
+&quot; &quot;(0C)&quot; fb8-write drop
+&quot; Booting Mageia PPC...&quot; fb8-write drop 100 ms
+boot cd:,\boot\yaboot
+&lt;/BOOT-SCRIPT&gt;
+&lt;OS-BADGE-ICONS&gt;
+1010
+000000000000F8FEACF6000000000000
+0000000000F5FFFFFEFEF50000000000
+00000000002BFAFEFAFCF70000000000
+0000000000F65D5857812B0000000000
+0000000000F5350B2F88560000000000
+0000000000F6335708F8FE0000000000
+00000000005600F600F5FD8100000000
+00000000F9F8000000F5FAFFF8000000
+000000008100F5F50000F6FEFE000000
+000000F8F700F500F50000FCFFF70000
+00000088F70000F50000F5FCFF2B0000
+0000002F582A00F5000008ADE02C0000
+00090B0A35A62B0000002D3B350A0000
+000A0A0B0B3BF60000505E0B0A0B0A00
+002E350B0B2F87FAFCF45F0B2E090000
+00000007335FF82BF72B575907000000
+000000000000ACFFFF81000000000000
+000000000081FFFFFFFF810000000000
+0000000000FBFFFFFFFFAC0000000000
+000000000081DFDFDFFFFB0000000000
+000000000081DD5F83FFFD0000000000
+000000000081DDDF5EACFF0000000000
+0000000000FDF981F981FFFF00000000
+00000000FFACF9F9F981FFFFAC000000
+00000000FFF98181F9F981FFFF000000
+000000ACACF981F981F9F9FFFFAC0000
+000000FFACF9F981F9F981FFFFFB0000
+00000083DFFBF981F9F95EFFFFFC0000
+005F5F5FDDFFFBF9F9F983DDDD5F0000
+005F5F5F5FDD81F9F9E7DF5F5F5F5F00
+0083DD5F5F83FFFFFFFFDF5F835F0000
+000000FBDDDFACFBACFBDFDFFB000000
+000000000000FFFFFFFF000000000000
+0000000000FFFFFFFFFFFF0000000000
+0000000000FFFFFFFFFFFF0000000000
+0000000000FFFFFFFFFFFF0000000000
+0000000000FFFFFFFFFFFF0000000000
+0000000000FFFFFFFFFFFF0000000000
+0000000000FFFFFFFFFFFFFF00000000
+00000000FFFFFFFFFFFFFFFFFF000000
+00000000FFFFFFFFFFFFFFFFFF000000
+000000FFFFFFFFFFFFFFFFFFFFFF0000
+000000FFFFFFFFFFFFFFFFFFFFFF0000
+000000FFFFFFFFFFFFFFFFFFFFFF0000
+00FFFFFFFFFFFFFFFFFFFFFFFFFF0000
+00FFFFFFFFFFFFFFFFFFFFFFFFFFFF00
+00FFFFFFFFFFFFFFFFFFFFFFFFFF0000
+000000FFFFFFFFFFFFFFFFFFFF000000
+&lt;/OS-BADGE-ICONS&gt;
+&lt;/CHRP-BOOT&gt;
+');
+
+	output(&quot;images/yaboot.conf&quot;, '
+init-message = &quot;\nWelcome to Mageia PPC!\nHit &lt;TAB&gt; for boot options.\n\n&quot;
+timeout = 150
+device=cd:
+default = install-gui
+message=/boot/yaboot.msg
+
+image = /boot/vmlinux
+    label = install-gui
+    initrd = /boot/all.gz
+    initrd-size = 34000
+    append = &quot; ramdisk_size=128000&quot;
+
+image = /boot/vmlinux-power4
+    label = install-gui-power4
+    initrd = /boot/all-power4.gz
+    initrd-size = 34000
+    append = &quot; ramdisk_size=128000&quot;
+
+image = /boot/vmlinux
+    label = install-text
+    initrd = /boot/all.gz
+    initrd-size = 34000
+    append = &quot; text ramdisk_size=128000&quot;
+
+image = /boot/vmlinux-power4
+    label = install-text-power4
+    initrd = /boot/all-power4.gz
+    initrd-size = 34000
+    append = &quot; text ramdisk_size=128000&quot;
+
+image = /boot/vmlinux
+    label = install-gui-old
+    initrd = /boot/all.gz
+    initrd-size = 34000
+    append = &quot; gui-old ramdisk_size=128000&quot;
+
+image = /boot/vmlinux-power4
+    label = install-gui-old-power4
+    initrd = /boot/all-power4.gz
+    initrd-size = 34000
+    append = &quot; gui-old ramdisk_size=128000&quot;
+
+image = enet:0,vmlinux
+    label = install-net
+    initrd = enet:0,all.gz
+    initrd-size = 34000
+    append = &quot; ramdisk_size=128000&quot;
+
+image = enet:0,vmlinux-power4
+    label = install-net-power4
+    initrd = enet:0,all-power4.gz
+    initrd-size = 34000
+    append = &quot; ramdisk_size=128000&quot;
+
+image = enet:0,vmlinux
+    label = install-net-text
+    initrd = enet:0,all.gz
+    initrd-size = 34000
+    append = &quot; text ramdisk_size=128000&quot;
+
+image = enet:0,vmlinux-power4
+    label = install-net-text-power4
+    initrd = enet:0,all-power4.gz
+    initrd-size = 34000
+    append = &quot; text ramdisk_size=128000&quot;
+
+image = /boot/vmlinux
+    label = rescue
+    initrd = /boot/all.gz
+    initrd-size = 34000
+    append = &quot; rescue ramdisk_size=128000&quot;
+
+image = /boot/vmlinux-power4
+    label = rescue-power4
+    initrd = /boot/all-power4.gz
+    initrd-size = 34000
+    append = &quot; rescue ramdisk_size=128000&quot;
+
+image = enet:0,vmlinux
+    label = rescue-net
+    initrd = enet:0,all.gz
+    initrd-size = 34000
+    append = &quot; rescue ramdisk_size=128000&quot; 
+
+image = enet:0,vmlinux-power4
+    label = rescue-net-power4
+    initrd = enet:0,all-power4.gz
+    initrd-size = 34000
+    append = &quot; rescue ramdisk_size=128000&quot; 
+');
+
+	output(&quot;images/yaboot.msg&quot;, '
+Thanks for choosing Mageia PPC.  The following is a short
+explanation of the various options for booting the install CD.
+
+All options ending with &quot;-power4&quot; use the BOOT kernel for ppc 9xx and POWER4.
+The default syntax with no suffix uses the BOOT kernel for ppc 6xx 7xx and 7xxx.
+The default if you just hit enter is &quot;install-gui&quot;.
+
+install-gui:        	uses Xorg fbdev mode
+install-text:       	text based install
+install-net:            allows you to use a minimal boot CD,
+                        pulling the rest of the install from
+                        a network server
+install-net-text:       text mode network install
+rescue:                 boots the rescue image
+rescue-net:             boots the rescue image from a network server
+
+');
+
+}
+
+sub VERSION {
+    my ($kernels) = @_;
+
+    map { &quot;$_\n&quot; }
+      $ENV{DISTRIB_DESCR},
+      scalar gmtime(),
+      '', @$kernels;
+}
+
+sub syslinux_all_files {
+    my ($dir, $kernels) = @_;
+
+    eval { rm_rf($dir) }; mkdir_p($dir);
+
+    @$kernels or die &quot;syslinux_all_files: no kernel\n&quot;;
+
+    $default_vga =~ /788/ or die 'we rely on vga=788 for bootsplash';
+    my $theme = $ENV{THEME} || 'Mageia-Free';
+
+    each_index {
+	mkdir &quot;$dir/alt$::i&quot;, 0777;
+	_ &quot;cp all.kernels/$_/vmlinuz $dir/alt$::i&quot;;
+	initrd('all', '', &quot;images/all.rdz-$_&quot;);
+	rename(&quot;images/all.rdz-$_&quot;, &quot;$dir/alt$::i/all.rdz&quot;);
+    } @$kernels;
+
+    _ &quot;install -m 644 -D /boot/memtest* $dir/memtest&quot;;
+
+    output(&quot;$dir/help.msg&quot;, syslinux_msg('help.msg.xml'));
+    output(&quot;$dir/advanced.msg&quot;, syslinux_msg('advanced.msg.xml', 
+					     &quot;\nYou can choose the following kernels :\n&quot;,
+					     map_index { &quot; o  &quot; . syslinux_color('white') . &quot;alt$::i&quot; . syslinux_color('default') . &quot; is kernel $_\n&quot; } @$kernels));
+}
+
+sub isolinux {
+    my ($kernels) = @_;
+
+    syslinux_all_files('isolinux', $kernels);
+
+    _ &quot;cp $isolinux_bin isolinux/isolinux.bin&quot;;
+    _ &quot;cp /usr/lib/syslinux/gfxboot.com isolinux/gfxboot.com&quot;;
+    output(&quot;isolinux/isolinux.cfg&quot;, syslinux_cfg_all('cdrom', 1));
+
+    xbox_stage1() if arch() =~ /i.86/;
+}
+
+sub xbox_stage1() {
+    my $xbox_kernel = find { /xbox/ } all('all.kernels') or return;
+
+    my $dir = 'isolinux/xbox';
+    eval { rm_rf($dir) }; mkdir_p($dir);
+
+    _ &quot;cp all.kernels/$xbox_kernel/vmlinuz $dir&quot;;
+    initrd('all', '', &quot;images/all.rdz-$xbox_kernel&quot;);
+    rename(&quot;images/all.rdz-$xbox_kernel&quot;, &quot;$dir/initrd&quot;);
+
+    _ &quot;cp /usr/share/cromwell/xromwell-installer.xbe $dir/default.xbe&quot;;
+    output(&quot;$dir/linuxboot.cfg&quot;, &lt;&lt;EOF);
+kernel $dir/vmlinuz
+initrd $dir/initrd
+append root=/dev/ram3 ramdisk_size=36000 automatic=method:cdrom
+EOF
+}
+
+sub boot_iso {
+    my ($iso, $kernels) = @_;
+
+    syslinux_all_files('.boot_iso/isolinux', $kernels);
+
+    output('.boot_iso/VERSION', VERSION($kernels));	   
+   
+    # for the boot iso, use standard isolinux
+    _ &quot;cp /usr/lib/syslinux/isolinux.bin .boot_iso/isolinux/isolinux.bin&quot;;
+
+    my $with_gfxboot = 0;
+    _ &quot;cp /usr/share/gfxboot/themes/Mageia/install/* .boot_iso/isolinux&quot; if $with_gfxboot;
+# _ &quot;cp /home/pixel/cooker/soft/theme/mandriva-gfxboot-theme/inst/* .boot_iso/isolinux&quot; if $with_gfxboot;
+    #_ &quot;cp /home/teuf/mdv/src/mandriva-gfxboot-theme/inst/* .boot_iso/isolinux&quot; if $with_gfxboot;
+    _ &quot;cp /usr/lib/syslinux/gfxboot.com .boot_iso/isolinux/gfxboot.com&quot; if $with_gfxboot;
+
+    output('.boot_iso/isolinux/isolinux.cfg', syslinux_cfg_all('', $with_gfxboot));
+
+    _ &quot;genisoimage -r -f -J -cache-inodes -V 'Mga Boot ISO' -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o $iso .boot_iso&quot;;
+    rm_rf('.boot_iso');
+}
+
+sub hd_grub {
+    my ($img) = @_;
+    my $mapfile = '/tmp/device.map.tmp';
+
+    my ($grub_dir) = glob(&quot;/lib/grub/*-*&quot;);
+    my @grub_files = map { &quot;$grub_dir/$_&quot; } qw(stage1 stage2);
+    my $size = 40_000 + sum(map { -s $_ } @grub_files);
+
+    _ &quot;dd if=/dev/zero of=$img bs=1 count=$size&quot;;
+
+    _ &quot;rm -rf $tmp_mnt&quot;; mkdir $tmp_mnt;
+    _ &quot;cp @grub_files $tmp_mnt&quot;;
+
+    output(&quot;$tmp_mnt/menu.lst&quot;, &lt;&lt;EOF);
+timeout 10
+default 0
+fallback 1
+
+title Mageia Install
+
+root (hd0,0)
+kernel /cooker/isolinux/alt0/vmlinuz $default_append $default_acpi $default_vga automatic=method:disk
+initrd /cooker/isolinux/alt0/all.rdz
+
+title Help
+
+pause To display the help, press &lt;space&gt; until you reach &quot;HELP END&quot;
+pause .
+pause Please see <A HREF="http://qa.mandriva.com/hd_grub.cgi">http://qa.mandriva.com/hd_grub.cgi</A> for a friendlier solution
+pause .
+pause To specify the location where Mageia is copied,
+pause choose &quot;Mageia Install&quot;, and press &quot;e&quot;.
+pause Then change &quot;root (hd0,0)&quot;. FYI:
+pause - (hd0,0) is the first partition on first bios hard drive (usually hda1)
+pause - (hd0,4) is the first extended partition (usually hda5)
+pause - (hd1,0) is the first partition on second bios hard drive
+pause Replace /cauldron to suit the directory containing Mageia
+pause .
+pause HELP END
+EOF
+
+    _ &quot;mkdosfs-with-dir $tmp_mnt $img&quot;;
+    _ &quot;rm -rf $tmp_mnt&quot;;
+
+    output($mapfile, &quot;(fd0) $img\n&quot;);
+
+    open(my $G, &quot;| grub --device-map=$mapfile --batch&quot;);
+    print $G &lt;&lt;EOF;
+root (fd0)
+install /stage1 d (fd0) /stage2 p /menu.lst
+quit
+EOF
+    close $G;
+    unlink $mapfile;
+}


Property changes on: drakx/trunk/images/make_boot_img
___________________________________________________________________
Added: svn:executable
   + *

Added: drakx/trunk/images/update_kernel
===================================================================
--- drakx/trunk/images/update_kernel	                        (rev 0)
+++ drakx/trunk/images/update_kernel	2011-02-07 11:20:50 UTC (rev 473)
@@ -0,0 +1,80 @@
+#!/usr/bin/perl
+
+# this script takes command kernel rpms (either installed rpms or rpm files)
+# and create various files in all_kernels/:
+#     all.kernels/VER/all_modules.tar  (used for all.rdz)
+#     all.kernels/VER/modules.dep
+#     all.kernels/VER/modules.alias
+#     all.kernels/VER/vmlinuz
+
+use lib '../kernel';
+use MDK::Common;
+use list_modules;
+
+(my $karch = arch()) =~ s/^i.86$/i586/;
+my $rpm = 'rpm --nosignature';
+
+
<A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">+ at ARGV</A> or die &quot;usage: ./update_kernel [--move] (&lt;kernel rpm&gt; ... | &lt;installed kernel name&gt; ...)\n&quot;;
+
+eval { rm_rf('all.kernels') }; #- remove old things
+mkdir 'all.kernels';
+
+my @kernels = map {
+    my $kern_ver = rpm2version($_);
+    if (/\.rpm$/) {
+	extract_kernel($_, $kern_ver);
+    } else {
+	extract_installed_rpm('', $kern_ver);
+    }
+    $kern_ver;
+} @ARGV;
+
+output('all.kernels/.list', map { &quot;$_\n&quot; } @kernels);
+
+sub system_verbose { print join(' ', @_), &quot;\n&quot;; system(@_) }
+sub sys { &amp;system_verbose; $? and die }
+
+sub rpm2version {
+    my ($kernel_rpm) = @_;
+    my $opt = -e $kernel_rpm ? '-qpl' : '-ql';
+    `$rpm $opt $kernel_rpm` =~ m!/boot/vmlinuz-(.*)! &amp;&amp; $1 or die &quot;can't find vmlinuz in $kernel_rpm (is it installed?)\n&quot;;
+}
+
+sub extract_kernel {
+    my ($kernel_rpm, $kern_ver) = @_;
+
+    my $dir = &quot;all.kernels/$kern_ver&quot;;
+
+    warn &quot;Extracting kernel $kern_ver\n&quot;;
+
+    eval { rm_rf($dir) };
+    mkdir_p(&quot;$dir/modules&quot;);
+    sys(&quot;rpm2cpio $kernel_rpm | (cd $dir ; cpio -id)&quot;);
+
+    extract_installed_rpm($dir, $kern_ver);
+
+    eval { rm_rf(&quot;$dir$_&quot;) } foreach qw(/boot /lib /usr);
+}
+
+sub extract_installed_rpm {
+    my ($installed_dir, $kern_ver) = @_;
+    my $local_dir = &quot;all.kernels/$kern_ver&quot;;
+    mkdir_p(&quot;$local_dir/modules&quot;);
+
+    sys('cp', &quot;$installed_dir/boot/vmlinuz-$kern_ver&quot;, &quot;$local_dir/vmlinuz&quot;);
+    sys(&quot;cp $installed_dir/lib/modules/$kern_ver/modules.* $local_dir&quot;);
+
+    open(my $F, &quot;find $installed_dir/lib/modules/$kern_ver -name '*.ko.gz' |&quot;);
+    my $file; while ($file = &lt;$F&gt;) {
+	chomp($file);
+	system('cp', $file, &quot;$local_dir/modules/&quot; . basename($file)) == 0
+	  or warn &quot;conflict for $file\n&quot;;
+    }
+
+    sys('perl', '../kernel/modules.pl', 'remove_unneeded_modules', $kern_ver);
+    sys('perl', '../kernel/modules.pl', 'get_firmwares', $kern_ver);
+    sys('perl', '../kernel/modules.pl', 'make_modules_per_image', $kern_ver);
+
+    rm_rf(&quot;$local_dir/modules&quot;);
+}


Property changes on: drakx/trunk/images/update_kernel
___________________________________________________________________
Added: svn:executable
   + *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: &lt;/pipermail/mageia-sysadm/attachments/20110207/5f16c035/attachment-0001.html&gt;
</PRE>

























<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="002599.html">[Mageia-sysadm] [472] List broken dependencies instead of mdv packages now that none is left
</A></li>
	<LI>Next message: <A HREF="002601.html">[Mageia-sysadm] [474] Add tags dir
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#2600">[ date ]</a>
              <a href="thread.html#2600">[ thread ]</a>
              <a href="subject.html#2600">[ subject ]</a>
              <a href="author.html#2600">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm
mailing list</a><br>
</body></html>