<feed xmlns='http://www.w3.org/2005/Atom'>
<title>drakx/mdk-stage1/init.c, branch 2.46.3</title>
<subtitle>Mageia Installer and base platform for many utilities</subtitle>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/'/>
<entry>
<title>drop (broken) support for Alpha, IA64 &amp; PPC, Sparc</title>
<updated>2016-01-02T13:56:51+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2015-05-18T01:56:25+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=8b2d9993f22e0f3facdc1ebca58d5af2e1d79406'/>
<id>8b2d9993f22e0f3facdc1ebca58d5af2e1d79406</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix comment</title>
<updated>2015-02-18T09:02:17+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2015-02-18T09:02:17+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=fd23b8cd4d445fce0aa3b5e95e085ff21aa88109'/>
<id>fd23b8cd4d445fce0aa3b5e95e085ff21aa88109</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>mount again debugfs for ldetect (mga#14435)</title>
<updated>2015-02-18T00:13:13+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2015-02-18T00:11:51+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=d590e8727f7274119df1f9e98adc11aca6aafaaa'/>
<id>d590e8727f7274119df1f9e98adc11aca6aafaaa</id>
<content type='text'>
regression from commit 63d2a603b9b2bc27090405ba4a05a4aaa8840ea2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
regression from commit 63d2a603b9b2bc27090405ba4a05a4aaa8840ea2
</pre>
</div>
</content>
</entry>
<entry>
<title>cleanup unsupported arches</title>
<updated>2014-06-07T06:29:16+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2014-06-07T06:22:12+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=afb976328411ad2f63678241e8fe41efd64827b1'/>
<id>afb976328411ad2f63678241e8fe41efd64827b1</id>
<content type='text'>
rationale: we drop support in stage2 and their support was totally
broken due to missing conversion to dracut, udev, ...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
rationale: we drop support in stage2 and their support was totally
broken due to missing conversion to dracut, udev, ...
</pre>
</div>
</content>
</entry>
<entry>
<title>/usr/X11R6 paths are obsolete for years...</title>
<updated>2014-05-18T07:51:52+00:00</updated>
<author>
<name>Thierry Vignaud</name>
<email>thierry.vignaud@gmail.com</email>
</author>
<published>2014-05-18T07:51:52+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=6e241bfd0ba2e3d2f226f2423e9429c2d90b9d60'/>
<id>6e241bfd0ba2e3d2f226f2423e9429c2d90b9d60</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>stage1: Ensure kernel modules and firmware can be loaded in stage2 mga#11600 mga#11601</title>
<updated>2013-11-06T12:54:41+00:00</updated>
<author>
<name>Colin Guthrie</name>
<email>colin@mageia.org</email>
</author>
<published>2013-11-06T12:54:36+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=c981ca81e90d734c8ed412c90e53aecda07a12f1'/>
<id>c981ca81e90d734c8ed412c90e53aecda07a12f1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>stage1: Switch to a new mode of knowing when to re-exec init.</title>
<updated>2013-10-29T20:29:08+00:00</updated>
<author>
<name>Colin Guthrie</name>
<email>colin@mageia.org</email>
</author>
<published>2013-10-28T23:35:35+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=33a891128a5ac6fa2c581ef4106fe569f47eb867'/>
<id>33a891128a5ac6fa2c581ef4106fe569f47eb867</id>
<content type='text'>
Now that dracut runs stage1 earlier, we need to store it's exit code
for later reuse. In this, the separate dracut module will just write a
flag file in /run/drakx/ to indicate that we want to re-exec /sbin/init
(after doing some symlinks and /usr bind mount) rather than run the install.

As a result there is no need to return 0x35 ('procced') so just return
0 and keep 0x35 return code for when we really do need to restart stage1
(e.g. on a fatal error). The dracut module should loop if 0x35 is
ever returned.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that dracut runs stage1 earlier, we need to store it's exit code
for later reuse. In this, the separate dracut module will just write a
flag file in /run/drakx/ to indicate that we want to re-exec /sbin/init
(after doing some symlinks and /usr bind mount) rather than run the install.

As a result there is no need to return 0x35 ('procced') so just return
0 and keep 0x35 return code for when we really do need to restart stage1
(e.g. on a fatal error). The dracut module should loop if 0x35 is
ever returned.
</pre>
</div>
</content>
</entry>
<entry>
<title>stage1: Remove the counter from init.</title>
<updated>2013-10-29T20:29:08+00:00</updated>
<author>
<name>Colin Guthrie</name>
<email>colin@mageia.org</email>
</author>
<published>2013-10-28T23:11:33+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=065557f6287bd87a4e52bea28db5a0b9c4a98b76'/>
<id>065557f6287bd87a4e52bea28db5a0b9c4a98b76</id>
<content type='text'>
init is now solely responsibe for running stage2 (be it install or rescue)
as stage1 is now run earlier by dracut.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
init is now solely responsibe for running stage2 (be it install or rescue)
as stage1 is now run earlier by dracut.
</pre>
</div>
</content>
</entry>
<entry>
<title>stage1: Don't bother mounting various API filesystems.</title>
<updated>2013-10-29T20:29:08+00:00</updated>
<author>
<name>Colin Guthrie</name>
<email>colin@mageia.org</email>
</author>
<published>2013-10-28T20:21:39+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=63d2a603b9b2bc27090405ba4a05a4aaa8840ea2'/>
<id>63d2a603b9b2bc27090405ba4a05a4aaa8840ea2</id>
<content type='text'>
Dracut mounts these already.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Dracut mounts these already.
</pre>
</div>
</content>
</entry>
<entry>
<title>stage1: Move the symlink creation from stage1 to init.</title>
<updated>2013-10-29T20:29:07+00:00</updated>
<author>
<name>Colin Guthrie</name>
<email>colin@mageia.org</email>
</author>
<published>2013-10-19T20:30:12+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/drakx/commit/?id=c4321813f9f3cd4136203d52c0f20343d7722228'/>
<id>c4321813f9f3cd4136203d52c0f20343d7722228</id>
<content type='text'>
In order to run stage1 we now need to do things a little differently,
namely that we move the symlinking fixups into 'init' itself which we will
actually call as a kind of fake switch_root implementation to avoid
hacking dracut too much[1]. As we run stage1 during dracut's 'mount' phase
we should not do the symlink hacks so early otherwise it will mess up
the rest of the dracut initqueue processing.

Currently, the initrd's /usr is nuked and then symlinked, but to
allow for easier debugging I now just bind mount the stage2 /usr over
the top which allows us to unmount it again easily enough if we want to
go back.

We no longer touch the /bin, /sbin or /lib[64] symlinks as these are
relative and simply bind mounting /usr is enough to fix all of them.

1. This scheme will have to change if we eventually swtich to a
systemd based dracut invocation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In order to run stage1 we now need to do things a little differently,
namely that we move the symlinking fixups into 'init' itself which we will
actually call as a kind of fake switch_root implementation to avoid
hacking dracut too much[1]. As we run stage1 during dracut's 'mount' phase
we should not do the symlink hacks so early otherwise it will mess up
the rest of the dracut initqueue processing.

Currently, the initrd's /usr is nuked and then symlinked, but to
allow for easier debugging I now just bind mount the stage2 /usr over
the top which allows us to unmount it again easily enough if we want to
go back.

We no longer touch the /bin, /sbin or /lib[64] symlinks as these are
relative and simply bind mounting /usr is enough to fix all of them.

1. This scheme will have to change if we eventually swtich to a
systemd based dracut invocation.
</pre>
</div>
</content>
</entry>
</feed>
