| # Distributed under the terms of the GNU General Public License v2 |
# Distributed under the terms of the GNU General Public License v2 |
| # $Header$ |
# $Header$ |
| |
|
| |
# XXX: we need to review menu.lst vs grub.conf handling. We've been converting |
| |
# all systems to grub.conf (and symlinking menu.lst to grub.conf), but |
| |
# we never updated any of the source code (it still all wants menu.lst), |
| |
# and there is no indication that upstream is making the transition. |
| |
|
| inherit mount-boot eutils flag-o-matic toolchain-funcs autotools |
inherit mount-boot eutils flag-o-matic toolchain-funcs autotools |
| |
|
| PATCHVER="1.7" |
PATCHVER="1.7" |
| ewarn |
ewarn |
| fi |
fi |
| |
|
| |
if [[ ! -e ${dir}/menu.lst ]]; then |
| |
einfo "Linking from new grub.conf name to menu.lst" |
| |
ln -snf grub.conf "${dir}"/menu.lst |
| |
fi |
| |
|
| if [[ -e ${dir}/stage2 ]] ; then |
if [[ -e ${dir}/stage2 ]] ; then |
| mv "${dir}"/stage2{,.old} |
mv "${dir}"/stage2{,.old} |
| ewarn "*** IMPORTANT NOTE: you must run grub and install" |
ewarn "*** IMPORTANT NOTE: you must run grub and install" |