summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/attachments/20130323/a618f4bb/attachment.html
blob: 714a9615494aeb9be8350dfd8cc4ad5cba0b800a (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
<div class="gmail_quote">On 23 March 2013 07:37, Thierry Vignaud <span dir="ltr">&lt;<a href="mailto:thierry.vignaud@gmail.com" target="_blank">thierry.vignaud@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 22 March 2013 12:20, Glen Ogilvie &lt;<a href="mailto:nelg@linuxsolutions.co.nz">nelg@linuxsolutions.co.nz</a>&gt; wrote:<br>
&gt; I&#39;ve been trying to test the installer change below before RC4, thinking<br>
&gt; that it might be quite helpful.<br>
&gt;<br>
&gt; I am having a little bit of trouble however.  Could someone point me in the<br>
&gt; right direction on a couple<br>
&gt; of things.<br>
&gt;<br>
&gt; 1. How does the src tar.xz file for drakx-installer-stage2 get created?   I<br>
&gt; assume it comes from a<br>
&gt; build of svn://<a href="http://svn.mageia.org/svn/soft/drakx/trunk" target="_blank">svn.mageia.org/svn/soft/drakx/trunk</a>, but can&#39;t find how it<br>
&gt; ends up as a tar.xz<br>
&gt;<br>
&gt; 2. When I&#39;ve built a new stage2, any tricks on getting it into an ISO?<br>
&gt;<br>
&gt; I tried building an ISO based on beta3, with the new stage2, using something<br>
&gt; like:<br>
&gt;   mkisofs -o<br>
&gt; ~nelg/Mageia-3-beta3-x86_64-DVD/Mageia-3-beta3-x86_64-DVD-stage2.iso -b<br>
&gt; x86_64/isolinux/isolinux.bin -c boot.catalog  -no-emul-boot -boot-load-size<br>
&gt; 4 -iso-level 4 -J -R /tmp/tt/<br>
&gt;<br>
&gt; This is clearly not right.  Is the a documented method I should use to build<br>
&gt; a new ISO with a modified stage2?<br>
&gt; In the docs I have read:<br>
&gt; <a href="https://wiki.mageia.org/en/Drakx-installer_tips_and_tricks#rebuild_the_stage_2" target="_blank">https://wiki.mageia.org/en/Drakx-installer_tips_and_tricks#rebuild_the_stage_2</a><br>
&gt; and svn://<a href="http://svn.mageia.org/svn/soft/drakx/trunk/docs/README" target="_blank">svn.mageia.org/svn/soft/drakx/trunk/docs/README</a>, I have not been<br>
&gt; able to find instructions on actually putting together an ISO.<br>
&gt;<br>
&gt; Is:<br>
&gt; <a href="http://wiki.mandriva.com/en/How_to_remaster_a_personal_Mandriva-based_ISO" target="_blank">http://wiki.mandriva.com/en/How_to_remaster_a_personal_Mandriva-based_ISO</a><br>
&gt; relevant for Mageia?  I guess not, as mkcd does not seem to exist in Mageia.<br>
&gt;<br>
&gt; So, a quick howto, or pointing me to the right documentation would be great<br>
&gt; :)<br>
<br>
stage2 != ISO<br>
<br>
ISO is basically the stage1.<br>
stage1 is build by drakx-installer-images from:<br>
- some packages listed as BR, mainly the kernel drivers &amp; firmwares<br>
- drakx-installer-binaries that provide the actual stage1 binary<br>
<br>
=&gt; generates what is copied in isolinux/alt0 &amp; in install/images/<br>
(*.img + *.iso)<br>
<br>
stage2 is build by drakx-installer-stage2<br>
<br>
=&gt; generates what is in install/stage2: mdkinst.sqfs (a squashfs image)<br>
there&#39;s also rescue.sqfs there that is an alternate stage2 used when<br>
using the rescue.<br>
<br>
<br>
stage1 is basically a special initrd that loads the appropriate<br>
modules according to detected<br>
hardware and to what is specified on command line (eg: the DVD tells<br>
it to directly load<br>
stage2 from the DVD image).<br>
if not instructed to do sg, it displays the text menu asking from<br>
where to install (dvd, hard disk,<br>
network: http/ftp/nfs).<br>
It&#39;s a small statically linked program + init + a dhcp client +<br>
rescue-gui for the rescue menu<br>
<br>
it then loads stage2 (install/stage2/mdkinst.sqf or rescue.sqfs) from the URL<br>
<br>
stage2 is real system, with dynamic libraries, that starts:<br>
- an X11 server (if supported and if not asked for text mode)<br>
- udev<br>
and then go the install steps (language, license, partitionning,<br>
installing, summary, updates, ...)<br>
</blockquote></div><br>Hi Thierry,<br><br>I appreciate you taking time to reply and let me know these details. It confirms<br>my understanding.  What I would like to know is how to create / master the DVD<br>installer ISO, and make that  master contain a stage2 that I have built.<br>
<br>I have been able to build a stage1 boot.iso, but what I would like is build a<br>DVD image, based on Mageia-3-beta3-x86_64-DVD.iso, with just a different<br> stage2, and maybe a rebuilt stage1 if needed.<br><br>I guess someone must know how Mageia-3-beta3-x86_64-DVD.iso, and the<br>
other images get created.  I don&#39;t want to rebuild all the packages that go in<br>them, just assemble one with the same packages as<br>Mageia-3-beta3-x86_64-DVD.iso, and a updated install/stage2/mdkinst.sqf file.<br><br>
Once this is figured out, I will happly update the Mageia wiki with details, which<br>I think will be helpful for anyone wanting to make customised Mageia DVDs.<br><br>Regards<br>Glen Ogilvie<br>