emergency_shell()
{
+ exec >/dev/console 2>&1 </dev/console
+ getarg rdinitdebug || dmesg
source_all emergency
echo ; echo
echo "Bug in initramfs /init detected. Dropping to a shell. Good luck!"
fi
fi
-getarg rdinitdebug && set -x
+if getarg rdinitdebug; then
+ set -x
+else
+ exec >/dev/kmsg 2>&1
+fi
+
mkdir /dev/shm
mkdir /dev/pts
mount -t devpts -o gid=5,mode=620 /dev/pts /dev/pts >/dev/null 2>&1
#!/bin/bash
-dracut_install mount mknod mkdir modprobe pidof sleep chroot sed ls flock cp mv
+dracut_install mount mknod mkdir modprobe pidof sleep chroot sed ls flock cp mv dmesg
if [ ! -e "${initdir}/bin/sh" ]; then
dracut_install bash
(ln -s bash "${initdir}/bin/sh" || :)