* util/grub.d/10_linux.in: Add gentoo-specific config filename.
* util/grub.d/20_linux_xen.in: Likewise.
This commit is contained in:
parent
090b1b6ac6
commit
fd7cd914c6
3 changed files with 11 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
|
||||
|
||||
* util/grub.d/10_linux.in: Add gentoo-specific config filename.
|
||||
* util/grub.d/20_linux_xen.in: Likewise.
|
||||
|
||||
2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* util/grub.d/10_linux.in: Try alternative config filenames where
|
||||
|
|
|
@ -148,9 +148,9 @@ while [ "x$list" != "x" ] ; do
|
|||
done
|
||||
|
||||
config=
|
||||
for i in "config-${version}" "config-${alt_version}"; do
|
||||
if test -e "${dirname}/${i}" ; then
|
||||
config="${dirname}/${i}"
|
||||
for i in "${dirname}/config-${version}" "${dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do
|
||||
if test -e "${i}" ; then
|
||||
config="${i}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
|
|
@ -99,9 +99,9 @@ linux_list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* /boot/kernel-*; do
|
|||
version=$(echo $basename | sed -e "s,^[^0-9]*-,,g")
|
||||
dirname=$(dirname $i)
|
||||
config=
|
||||
for j in "config-${version}" "config-${alt_version}"; do
|
||||
if test -e "${dirname}/${j}" ; then
|
||||
config="${dirname}/${j}"
|
||||
for j in "${dirname}/config-${version}" "${dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do
|
||||
if test -e "${j}" ; then
|
||||
config="${j}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue