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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] drakxtools & drakx-installer-stage2 (mga#9428)
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20drakxtools%20%26%20drakx-installer-stage2%20%28mga%239428%29&In-Reply-To=%3CCAGmz6yg%3DKmHYnjv0r0PXvn1qnmjZ8QPdf%2BBLFe17K_Q_YW8rUg%40mail.gmail.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="023717.html">
<LINK REL="Next" HREF="023739.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] drakxtools & drakx-installer-stage2 (mga#9428)</H1>
<B>Glen Ogilvie</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20drakxtools%20%26%20drakx-installer-stage2%20%28mga%239428%29&In-Reply-To=%3CCAGmz6yg%3DKmHYnjv0r0PXvn1qnmjZ8QPdf%2BBLFe17K_Q_YW8rUg%40mail.gmail.com%3E"
TITLE="[Mageia-dev] drakxtools & drakx-installer-stage2 (mga#9428)">nelg at linuxsolutions.co.nz
</A><BR>
<I>Fri Mar 22 23:34:55 CET 2013</I>
<P><UL>
<LI>Previous message: <A HREF="023717.html">[Mageia-dev] drakxtools & drakx-installer-stage2 (mga#9428)
</A></li>
<LI>Next message: <A HREF="023739.html">[Mageia-dev] drakxtools & drakx-installer-stage2 (mga#9428)
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#23725">[ date ]</a>
<a href="thread.html#23725">[ thread ]</a>
<a href="subject.html#23725">[ subject ]</a>
<a href="author.html#23725">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On 23 March 2013 07:37, Thierry Vignaud <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">thierry.vignaud at gmail.com</A>> wrote:
><i> On 22 March 2013 12:20, Glen Ogilvie <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">nelg at linuxsolutions.co.nz</A>> wrote:
</I>><i> > I've been trying to test the installer change below before RC4, thinking
</I>><i> > that it might be quite helpful.
</I>><i> >
</I>><i> > I am having a little bit of trouble however. Could someone point me in
</I>><i> the
</I>><i> > right direction on a couple
</I>><i> > of things.
</I>><i> >
</I>><i> > 1. How does the src tar.xz file for drakx-installer-stage2 get created?
</I>><i> I
</I>><i> > assume it comes from a
</I>><i> > build of <A HREF="svn://svn.mageia.org/svn/soft/drakx/trunk,">svn://svn.mageia.org/svn/soft/drakx/trunk,</A> but can't find how
</I>><i> it
</I>><i> > ends up as a tar.xz
</I>><i> >
</I>><i> > 2. When I've built a new stage2, any tricks on getting it into an ISO?
</I>><i> >
</I>><i> > I tried building an ISO based on beta3, with the new stage2, using
</I>><i> something
</I>><i> > like:
</I>><i> > mkisofs -o
</I>><i> > ~nelg/Mageia-3-beta3-x86_64-DVD/Mageia-3-beta3-x86_64-DVD-stage2.iso -b
</I>><i> > x86_64/isolinux/isolinux.bin -c boot.catalog -no-emul-boot
</I>><i> -boot-load-size
</I>><i> > 4 -iso-level 4 -J -R /tmp/tt/
</I>><i> >
</I>><i> > This is clearly not right. Is the a documented method I should use to
</I>><i> build
</I>><i> > a new ISO with a modified stage2?
</I>><i> > In the docs I have read:
</I>><i> >
</I>><i> <A HREF="https://wiki.mageia.org/en/Drakx-installer_tips_and_tricks#rebuild_the_stage_2">https://wiki.mageia.org/en/Drakx-installer_tips_and_tricks#rebuild_the_stage_2</A>
</I>><i> > and <A HREF="svn://svn.mageia.org/svn/soft/drakx/trunk/docs/README,">svn://svn.mageia.org/svn/soft/drakx/trunk/docs/README,</A> I have not
</I>><i> been
</I>><i> > able to find instructions on actually putting together an ISO.
</I>><i> >
</I>><i> > Is:
</I>><i> >
</I>><i> <A HREF="http://wiki.mandriva.com/en/How_to_remaster_a_personal_Mandriva-based_ISO">http://wiki.mandriva.com/en/How_to_remaster_a_personal_Mandriva-based_ISO</A>
</I>><i> > relevant for Mageia? I guess not, as mkcd does not seem to exist in
</I>><i> Mageia.
</I>><i> >
</I>><i> > So, a quick howto, or pointing me to the right documentation would be
</I>><i> great
</I>><i> > :)
</I>><i>
</I>><i> stage2 != ISO
</I>><i>
</I>><i> ISO is basically the stage1.
</I>><i> stage1 is build by drakx-installer-images from:
</I>><i> - some packages listed as BR, mainly the kernel drivers & firmwares
</I>><i> - drakx-installer-binaries that provide the actual stage1 binary
</I>><i>
</I>><i> => generates what is copied in isolinux/alt0 & in install/images/
</I>><i> (*.img + *.iso)
</I>><i>
</I>><i> stage2 is build by drakx-installer-stage2
</I>><i>
</I>><i> => generates what is in install/stage2: mdkinst.sqfs (a squashfs image)
</I>><i> there's also rescue.sqfs there that is an alternate stage2 used when
</I>><i> using the rescue.
</I>><i>
</I>><i>
</I>><i> stage1 is basically a special initrd that loads the appropriate
</I>><i> modules according to detected
</I>><i> hardware and to what is specified on command line (eg: the DVD tells
</I>><i> it to directly load
</I>><i> stage2 from the DVD image).
</I>><i> if not instructed to do sg, it displays the text menu asking from
</I>><i> where to install (dvd, hard disk,
</I>><i> network: http/ftp/nfs).
</I>><i> It's a small statically linked program + init + a dhcp client +
</I>><i> rescue-gui for the rescue menu
</I>><i>
</I>><i> it then loads stage2 (install/stage2/mdkinst.sqf or rescue.sqfs) from the
</I>><i> URL
</I>><i>
</I>><i> stage2 is real system, with dynamic libraries, that starts:
</I>><i> - an X11 server (if supported and if not asked for text mode)
</I>><i> - udev
</I>><i> and then go the install steps (language, license, partitionning,
</I>><i> installing, summary, updates, ...)
</I>><i>
</I>
Hi Thierry,
I appreciate you taking time to reply and let me know these details. It
confirms
my understanding. What I would like to know is how to create / master the
DVD
installer ISO, and make that master contain a stage2 that I have built.
I have been able to build a stage1 boot.iso, but what I would like is build
a
DVD image, based on Mageia-3-beta3-x86_64-DVD.iso, with just a different
stage2, and maybe a rebuilt stage1 if needed.
I guess someone must know how Mageia-3-beta3-x86_64-DVD.iso, and the
other images get created. I don't want to rebuild all the packages that go
in
them, just assemble one with the same packages as
Mageia-3-beta3-x86_64-DVD.iso, and a updated install/stage2/mdkinst.sqf
file.
Once this is figured out, I will happly update the Mageia wiki with
details, which
I think will be helpful for anyone wanting to make customised Mageia DVDs.
Regards
Glen Ogilvie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-dev/attachments/20130323/a618f4bb/attachment-0001.html>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="023717.html">[Mageia-dev] drakxtools & drakx-installer-stage2 (mga#9428)
</A></li>
<LI>Next message: <A HREF="023739.html">[Mageia-dev] drakxtools & drakx-installer-stage2 (mga#9428)
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#23725">[ date ]</a>
<a href="thread.html#23725">[ thread ]</a>
<a href="subject.html#23725">[ subject ]</a>
<a href="author.html#23725">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|