Summary: | multiple problems with mkboot | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ta2002 <throw_away_2002> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED WONTFIX | ||
Severity: | major | CC: | peng.ff |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
ta2002
2004-09-06 20:47:55 UTC
the check for lilo: [ ! -f /etc/lilo.conf -o ! -x /sbin/lilo ] you dont have those files on your system do you ? i updated the patch to look for /boot/vmlinuz instead of /vmlinuz There are some more silly things in the mkboot-script. Pleasy have a look at this diff: *** mkboot 2004-11-28 11:50:39.000000000 +0100 --- mkboot.work 2004-11-28 11:49:29.891521936 +0100 *************** *** 139,155 **** usage="$0 [-r rootpartition] [-i] [kernel]" ! while getopts "r:ih-" opt ; do case "$opt" in r) rootpart="$OPTARG" ;; ! i) installkernel=1 ;; h) echo $usage ; exit 0 ;; -) break ;; *) echo $usage 1>&2 ; exit 1 ;; esac done shift $(($OPTIND - 1)) if [ "$installkernel" ] ; then shift echo "In order to use the new kernel image you have just installed, you" --- 134,159 ---- usage="$0 [-r rootpartition] [-i] [kernel]" ! while getopts ":r:i:h-" opt ; do case "$opt" in r) rootpart="$OPTARG" ;; ! i) installkernel=1 ; kernel="$OPTARG" ;; h) echo $usage ; exit 0 ;; -) break ;; + ?) if [ "$OPTARG" == "i" ] ; then + installkernel=1 ; kernel="/boot/vmlinuz" ; + elif [ "$OPTARG" == "r" ] ; then + echo $usage 1>&2 ; exit 1 ; + fi ;; *) echo $usage 1>&2 ; exit 1 ;; esac done shift $(($OPTIND - 1)) + if [ "$(echo $rootpart| cut -b 1)" != "/" ] ; then + echo $usage 1>&2 ; exit 1 ; + fi + if [ "$installkernel" ] ; then shift echo "In order to use the new kernel image you have just installed, you" *************** *** 169,176 **** grubcheck if [ $? -eq 0 ] ; then echo -e "\nGRUB is installed. To automatically switch to new kernels, point your" ! echo "default entry in menu.lst to $1" exit 0 fi --- 173,181 ---- grubcheck if [ $? -eq 0 ] ; then + kernel=${kernel:-/boot/vmlinuz} echo -e "\nGRUB is installed. To automatically switch to new kernels, point your" ! echo "default entry in menu.lst to $kernel" exit 0 fi working on old bugs here. stefen: please consider sending that patch to the debian upstream. No response from user. Please send that patch to upstream. |