summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/init.c
Commit message (Collapse)AuthorAgeFilesLines
* fix compiling with gcc8Thierry Vignaud2018-12-011-2/+2
|
* fix build with gcc7Thierry Vignaud2017-09-161-1/+3
|
* drop (broken) support for Alpha, IA64 & PPC, SparcThierry Vignaud2016-01-021-4/+0
|
* fix commentThierry Vignaud2015-02-181-1/+1
|
* mount again debugfs for ldetect (mga#14435)Thierry Vignaud2015-02-181-0/+6
| | | | regression from commit 63d2a603b9b2bc27090405ba4a05a4aaa8840ea2
* cleanup unsupported archesThierry Vignaud2014-06-071-1/+1
| | | | | rationale: we drop support in stage2 and their support was totally broken due to missing conversion to dracut, udev, ...
* /usr/X11R6 paths are obsolete for years...Thierry Vignaud2014-05-181-2/+2
|
* stage1: Ensure kernel modules and firmware can be loaded in stage2 mga#11600 ↵Colin Guthrie2013-11-061-0/+14
| | | | mga#11601
* stage1: Switch to a new mode of knowing when to re-exec init.Colin Guthrie2013-10-291-29/+28
| | | | | | | | | | | | 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.
* stage1: Remove the counter from init.Colin Guthrie2013-10-291-8/+2
| | | | | init is now solely responsibe for running stage2 (be it install or rescue) as stage1 is now run earlier by dracut.
* stage1: Don't bother mounting various API filesystems.Colin Guthrie2013-10-291-18/+0
| | | | Dracut mounts these already.
* stage1: Move the symlink creation from stage1 to init.Colin Guthrie2013-10-291-6/+86
| | | | | | | | | | | | | | | | | | | | 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.
* do not reinvent kernel constantsThierry Vignaud2013-03-231-12/+5
|
* mount /dev/{pts,shm} earlier, in stage1 rather than in stage2Thierry Vignaud2012-09-031-2/+8
| | | | (based on pok's idead @mdv but fixed)
* mount /dev as devtmpfs earlier, in stage1 rather than in stage2Thierry Vignaud2012-09-031-1/+3
| | | | (based on pok's idead @mdv but fixed)
* create /sys at build time rather than run timeThierry Vignaud2012-09-031-1/+0
|
* drop redundant mkdir of /proc and /tmp (already done in image)Thierry Vignaud2012-09-031-2/+0
| | | | (inspirated by pok's change @mdv)
* mount /sys/kernel/debug (needed for new ldetect)Thierry Vignaud2012-08-301-0/+2
|
* revert to "linux" terminfoThierry Vignaud2012-06-051-1/+1
|
* make sure nurses get initialized in UTF-8 (mga#4894)Thierry Vignaud2012-06-051-0/+1
|
* default to "screen" instead of "linux" terminfo (mga#4894)Thierry Vignaud2012-04-051-1/+1
|
* kill dead emailsThierry Vignaud2012-01-271-1/+1
|
* 1.52:Thomas Backlund2011-12-061-15/+12
| | | | | | | | - fix build with gcc-4.6.2 * fixes for -Werror=unused-but-set-variable * minor whitespace cleanups
* - clean reboot syscall handlingArnaud Patard2011-03-181-10/+17
|
* Synthesized commit during git-svn import combining previous Mandriva history ↵Mageia SVN-Git Migration2011-02-061-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with Mageia. This commit consitsts of the following subversion commits: ------------------------------------------------------------------------ r431 | dmorgan | 2011-02-06 01:58:02 +0000 (Sun, 06 Feb 2011) | 1 line Add drakx structure on the SVN ------------------------------------------------------------------------ r432 | dmorgan | 2011-02-06 01:59:38 +0000 (Sun, 06 Feb 2011) | 1 line Import cleaned advertising ------------------------------------------------------------------------ r446 | dmorgan | 2011-02-06 22:37:08 +0000 (Sun, 06 Feb 2011) | 1 line Import Clean perl-install ------------------------------------------------------------------------ r448 | dmorgan | 2011-02-06 23:02:36 +0000 (Sun, 06 Feb 2011) | 1 line Add cleaned files ------------------------------------------------------------------------ r449 | dmorgan | 2011-02-06 23:03:52 +0000 (Sun, 06 Feb 2011) | 1 line Import cleaned kernel ------------------------------------------------------------------------ r450 | dmorgan | 2011-02-06 23:23:30 +0000 (Sun, 06 Feb 2011) | 1 line Import cleaned tools ------------------------------------------------------------------------ r451 | dmorgan | 2011-02-07 00:01:56 +0000 (Mon, 07 Feb 2011) | 1 line Import stage1 ------------------------------------------------------------------------ r473 | dmorgan | 2011-02-07 11:20:50 +0000 (Mon, 07 Feb 2011) | 1 line Import images ------------------------------------------------------------------------ r497 | ennael | 2011-02-09 21:02:06 +0000 (Wed, 09 Feb 2011) | 2 lines readd missing file ------------------------------------------------------------------------ r502 | pterjan | 2011-02-09 23:30:32 +0000 (Wed, 09 Feb 2011) | 1 line Import rescue ------------------------------------------------------------------------ r603 | ennael | 2011-02-24 13:32:54 +0000 (Thu, 24 Feb 2011) | 2 lines import cleaned rescue for Mageia ------------------------------------------------------------------------ r2061 | tv | 2011-10-20 20:32:19 +0100 (Thu, 20 Oct 2011) | 1 line import (cleaned) doc ------------------------------------------------------------------------
* mandrake is now mandrivaThierry Vignaud2009-03-061-2/+2
|
* drop INIT_HEADERS support, it was used for minilibc onlyOlivier Blin2007-07-171-4/+0
|
* do not use _syscallX macros(), they are not available anymore, use syscall() ↵Olivier Blin2007-07-171-2/+3
| | | | function instead
* remove unused SOCK_STREAM variableOlivier Blin2007-07-171-4/+0
|
* iniline init-libc-headers.h in init.cOlivier Blin2007-07-171-1/+24
|
* use socklen_t to match accept() prototypeOlivier Blin2007-07-171-1/+1
|
* re-sync after the big svn lossPascal Rigaux2007-04-251-59/+24
|
* fix buggy blino commit which caused install failures to cause reboot without ↵Pascal Rigaux2005-01-121-2/+2
| | | | prompting
* ensure /tmp/syslog in stage2 contains the full logPascal Rigaux2005-01-031-1/+1
| | | | | (currently stage2 init was writing in a file shadowed by stage2 copying the /stage1/tmp/syslog over its file)
* drop non-standard tld (localdomain)Olivier Blin2004-09-011-1/+1
|
* restart forked process if it exits with exit_value_restart as returnOlivier Blin2004-08-121-12/+15
| | | | | | | code (thanks to Rafael for the choice of its value, 0x35 is the translation of RS, abbreviation of ReStart, in his local l33t dialect, and happens to be 53 in its decimal form, which is quite nice)
* reorder else if blocks, it's useless to do two times the same testOlivier Blin2004-08-121-5/+5
| | | | | (WEXITSTATUS(wait_status) == exit_value_proceed)
* use a do while loop to wait for forked processOlivier Blin2004-08-121-5/+2
|
* MandrakeSoft -> MandrakesoftPascal Rigaux2004-07-201-1/+1
|
* nasty kernel now gives us weird PIDs, so we can't rely on this to detect if ↵Pascal Rigaux2004-06-071-4/+1
| | | | | | | we are running on a live box or not. So set testing to 0
* instead of keeping stage1 (mostly as temporary space but with a fixed size, ↵Pascal Rigaux2004-05-131-0/+1
| | | | | | | and for the background init), exit the stage1 giving hand to stage2 in a tmpfs (same as what was done for Mandrakemove)
* unmounting /sys is not needed (useful to have one less line displayed after ↵Pascal Rigaux2004-03-041-0/+1
| | | | "unmounting filesystems...")
* sleep 10 only when debuggingPascal Rigaux2004-02-131-0/+2
|
* don't disallow ctrl-alt-del in drakx mode (we don't have sysreqs)Guillaume Cottenceau2003-12-221-0/+2
|
* repeat after me, "kernel is da shit"Guillaume Cottenceau2003-12-091-3/+2
|
* seems that some neuneu do "init 0" or "init 6" instead of halt/reboot :(Guillaume Cottenceau2003-12-091-1/+7
|
* can poweroff in UPGuillaume Cottenceau2003-12-091-4/+4
|
* C is a dangerous language :((Guillaume Cottenceau2003-12-051-1/+2
|
* hide fail to umount /image_always and /cdromGuillaume Cottenceau2003-12-051-0/+4
|
* Andrey told me how to tell supermount to force unmountGuillaume Cottenceau2003-12-051-10/+38
|