* util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
* util/grub.d/20_linux_xen.in: Likewise.
This commit is contained in:
parent
241e41f55c
commit
baad885c14
3 changed files with 14 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
|
||||||
|
|
||||||
|
* util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
|
||||||
|
* util/grub.d/20_linux_xen.in: Likewise.
|
||||||
|
|
||||||
2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
|
2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/disk/raid.c (insert_array): Add few potentially
|
* grub-core/disk/raid.c (insert_array): Add few potentially
|
||||||
|
|
|
@ -113,11 +113,11 @@ EOF
|
||||||
|
|
||||||
case x`uname -m` in
|
case x`uname -m` in
|
||||||
xi?86 | xx86_64)
|
xi?86 | xx86_64)
|
||||||
list=`for i in /boot/vmlinuz-* /vmlinuz-* ; do
|
list=`for i in /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do
|
||||||
if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
|
if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
|
||||||
done` ;;
|
done` ;;
|
||||||
*)
|
*)
|
||||||
list=`for i in /boot/vmlinuz-* /boot/vmlinux-* /vmlinuz-* /vmlinux-* ; do
|
list=`for i in /boot/vmlinuz-* /boot/vmlinux-* /vmlinuz-* /vmlinux-* /boot/kernel-* ; do
|
||||||
if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
|
if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
|
||||||
done` ;;
|
done` ;;
|
||||||
esac
|
esac
|
||||||
|
@ -138,7 +138,9 @@ while [ "x$list" != "x" ] ; do
|
||||||
for i in "initrd.img-${version}" "initrd-${version}.img" \
|
for i in "initrd.img-${version}" "initrd-${version}.img" \
|
||||||
"initrd-${version}" "initramfs-${version}.img" \
|
"initrd-${version}" "initramfs-${version}.img" \
|
||||||
"initrd.img-${alt_version}" "initrd-${alt_version}.img" \
|
"initrd.img-${alt_version}" "initrd-${alt_version}.img" \
|
||||||
"initrd-${alt_version}" "initramfs-${alt_version}.img"; do
|
"initrd-${alt_version}" "initramfs-${alt_version}.img" \
|
||||||
|
"initramfs-genkernel-${version}" \
|
||||||
|
"initramfs-genkernel-${alt_version}"; do
|
||||||
if test -e "${dirname}/${i}" ; then
|
if test -e "${dirname}/${i}" ; then
|
||||||
initrd="$i"
|
initrd="$i"
|
||||||
break
|
break
|
||||||
|
|
|
@ -93,7 +93,7 @@ EOF
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
linux_list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* ; do
|
linux_list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* /boot/kernel-*; do
|
||||||
basename=$(basename $i)
|
basename=$(basename $i)
|
||||||
version=$(echo $basename | sed -e "s,^[^0-9]*-,,g")
|
version=$(echo $basename | sed -e "s,^[^0-9]*-,,g")
|
||||||
if grub_file_is_not_garbage "$i" && (grep -qx "CONFIG_XEN_DOM0=y" /boot/config-${version} 2> /dev/null || grep -qx "CONFIG_XEN_PRIVILEGED_GUEST=y" /boot/config-${version} 2> /dev/null); then echo -n "$i " ; fi
|
if grub_file_is_not_garbage "$i" && (grep -qx "CONFIG_XEN_DOM0=y" /boot/config-${version} 2> /dev/null || grep -qx "CONFIG_XEN_PRIVILEGED_GUEST=y" /boot/config-${version} 2> /dev/null); then echo -n "$i " ; fi
|
||||||
|
@ -127,7 +127,9 @@ while [ "x${xen_list}" != "x" ] ; do
|
||||||
initrd=
|
initrd=
|
||||||
for i in "initrd.img-${version}" "initrd-${version}.img" \
|
for i in "initrd.img-${version}" "initrd-${version}.img" \
|
||||||
"initrd-${version}" "initrd.img-${alt_version}" \
|
"initrd-${version}" "initrd.img-${alt_version}" \
|
||||||
"initrd-${alt_version}.img" "initrd-${alt_version}"; do
|
"initrd-${alt_version}.img" "initrd-${alt_version}" \
|
||||||
|
"initramfs-genkernel-${version}" \
|
||||||
|
"initramfs-genkernel-${alt_version}" ; do
|
||||||
if test -e "${dirname}/${i}" ; then
|
if test -e "${dirname}/${i}" ; then
|
||||||
initrd="$i"
|
initrd="$i"
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue