* 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>
|
2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* util/grub.d/10_linux.in: Try alternative config filenames where
|
* util/grub.d/10_linux.in: Try alternative config filenames where
|
||||||
|
|
|
@ -148,9 +148,9 @@ while [ "x$list" != "x" ] ; do
|
||||||
done
|
done
|
||||||
|
|
||||||
config=
|
config=
|
||||||
for i in "config-${version}" "config-${alt_version}"; do
|
for i in "${dirname}/config-${version}" "${dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do
|
||||||
if test -e "${dirname}/${i}" ; then
|
if test -e "${i}" ; then
|
||||||
config="${dirname}/${i}"
|
config="${i}"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
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")
|
version=$(echo $basename | sed -e "s,^[^0-9]*-,,g")
|
||||||
dirname=$(dirname $i)
|
dirname=$(dirname $i)
|
||||||
config=
|
config=
|
||||||
for j in "config-${version}" "config-${alt_version}"; do
|
for j in "${dirname}/config-${version}" "${dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do
|
||||||
if test -e "${dirname}/${j}" ; then
|
if test -e "${j}" ; then
|
||||||
config="${dirname}/${j}"
|
config="${j}"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue