some broken loaders (i.e refind) parse "debuginitrd=sh" as if "initrd=sh" was
passed and then fail to load initrd image at all.
svn-id: @12621
read CMDLINE < /proc/cmdline
for arg in $CMDLINE; do
- if [ "${arg}" = "debuginitrd" ]; then
+ if [ "${arg}" = "debuginitrd" ] || [ "${arg}" = "debugrd" ]; then
DEBUGINITRD=yes
fi
- if [ "${arg##debuginitrd=}" != "${arg}" ]; then
- DEBUGINITRD=${arg##debuginitrd=}
+ if [ "${arg##debuginitrd=}" != "${arg}" ] || [ "${arg##debugrd=}" != "${arg}" ]; then
+ DEBUGINITRD=${arg##debug*rd=}
fi
if [ "${arg##root=}" != "${arg}" ]; then
ROOT=${arg##root=}