busybox/util-linux
Andrei Gherzan e3b65ab43d switch_root: don't bail out when console doesn't exist
Busybox is very often used in initramfs at the end of which usually
there is a switch_root to the actual rootfs. There are many cases where
the console kernel argument is either just a placeholder (for example
RaspberryPi uses serial0 and serial1) or configured as null to avoid any
console messages - usually you would see such of a setup in production
environments.

Currently busybox bails out if can't open the console argument. If this
happenes in initramfs and if the console=null for example, you get in a
blind kernel panic. Avoid this by only warning instead of dying.

function                                             old     new   delta
switch_root_main                                     371     368      -3

Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2017-03-24 16:39:08 +01:00
..
2016-06-19 18:15:33 +02:00
2016-06-19 18:15:33 +02:00
2013-02-11 00:22:59 +01:00
2017-01-21 02:49:58 +01:00
2017-01-21 02:49:58 +01:00
2017-01-25 16:50:30 +01:00
2016-09-07 14:09:01 +02:00
2016-03-14 19:34:15 +01:00
2017-01-21 02:49:58 +01:00
2017-01-21 02:49:58 +01:00
2017-01-21 02:49:58 +01:00