* util/grub.d/10_linux.in: Fix built-in initramfs image mode for

Linux kernel, reported by Dennis Schridde.
This commit is contained in:
BVK Chaitanya 2010-10-18 15:55:56 +05:30
commit 30385e717e
2 changed files with 17 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
* util/grub.d/10_linux.in: Fix built-in initramfs image mode for
Linux kernel, reported by Dennis Schridde.
2010-10-17 Szymon Janc <szymon@janc.net.pl>
* grub-core/normal/auth.c (grub_auth_check_authentication):

View file

@ -127,10 +127,20 @@ while [ "x$list" != "x" ] ; do
break
fi
done
initramfs=
for i in "config-${version}" "config-${alt_version}"; do
if test -e "${dirname}/${i}" ; then
initramfs=`grep CONFIG_INITRAMFS_SOURCE= "${dirname}/${i}" | cut -f2 -d= | tr -d \"`
break
fi
done
if test -n "${initrd}" ; then
echo "Found initrd image: ${dirname}/${initrd}" >&2
else
# "UUID=" magic is parsed by initrds. Since there's no initrd, it can't work here.
elif test -z "${initramfs}" ; then
# "UUID=" magic is parsed by initrd or initramfs. Since there's
# no initrd or builtin initramfs, it can't work here.
linux_root_device_thisversion=${GRUB_DEVICE}
fi