hush/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
..
volume_id Big cleanup in config help and description 2017-01-10 14:58:54 +01:00
acpid.c
blkdiscard.c
blkid.c
blockdev.c
Config.src Big cleanup in config help and description 2017-01-10 14:58:54 +01:00
dmesg.c Big cleanup in config help and description 2017-01-10 14:58:54 +01:00
fatattr.c
fbset.c Big cleanup in config help and description 2017-01-10 14:58:54 +01:00
fdformat.c
fdisk_aix.c
fdisk_gpt.c
fdisk_osf.c
fdisk_sgi.c
fdisk_sun.c
fdisk.c fdisk: add typical values of -H and -S to --help 2017-01-19 14:29:42 +01:00
findfs.c
flock.c
freeramdisk.c *: add comment about APPLET_ODDNAME format 2017-01-29 14:57:33 +01:00
fsck_minix.c libbb: consolidate the code to set termios unbuffered mode 2017-01-11 16:17:59 +01:00
fstrim.c make --help texts more uniform 2017-01-21 02:49:58 +01:00
getopt.c make --help texts more uniform 2017-01-21 02:49:58 +01:00
hexdump_xxd.c xxd: make -p output lines actually end with a newline 2017-01-25 17:00:38 +01:00
hexdump.c xxd: implement -p 2017-01-25 16:50:30 +01:00
hwclock.c Big cleanup in config help and description 2017-01-10 14:58:54 +01:00
ipcrm.c
ipcs.c
Kbuild.src
losetup.c mount: create loop devices with LO_FLAGS_AUTOCLEAR flag 2017-03-16 16:55:47 +01:00
lspci.c
lsusb.c
mdev.c
minix.h
mkfs_ext2_test.sh
mkfs_ext2.c *: add comment about APPLET_ODDNAME format 2017-01-29 14:57:33 +01:00
mkfs_ext2.txt
mkfs_minix.c *: add comment about APPLET_ODDNAME format 2017-01-29 14:57:33 +01:00
mkfs_reiser.c
mkfs_vfat.c *: add comment about APPLET_ODDNAME format 2017-01-29 14:57:33 +01:00
mkswap.c
more.c libbb: consolidate the code to set termios unbuffered mode 2017-01-11 16:17:59 +01:00
mount.c mount: create loop devices with LO_FLAGS_AUTOCLEAR flag 2017-03-16 16:55:47 +01:00
nsenter.c make --help texts more uniform 2017-01-21 02:49:58 +01:00
pivot_root.c
rdate.c rdate: time(NULL) is shorter than time(&var) 2017-01-20 16:07:14 +01:00
rdev.c
readprofile.c Code style fixes, no code changes 2016-11-28 01:22:57 +01:00
rev.c
rtcwake.c make --help texts more uniform 2017-01-21 02:49:58 +01:00
script.c
scriptreplay.c
setarch.c *: add comment about APPLET_ODDNAME format 2017-01-29 14:57:33 +01:00
swaponoff.c *: add comment about APPLET_ODDNAME format 2017-01-29 14:57:33 +01:00
switch_root.c switch_root: don't bail out when console doesn't exist 2017-03-24 16:39:08 +01:00
uevent.c
umount.c Revert "umount: make -d always active, add -D to suppress it" 2017-03-16 17:51:06 +01:00
unshare.c make --help texts more uniform 2017-01-21 02:49:58 +01:00