First of all, the man page says: "By default the bootdisk will use the kernel /boot/vmlinuz" but it doesn't, it wants /vmlinuz Much worse, the program always wants to make a lilo boot disk. I have grub installed (and not lilo), but when I tried to run the program, I got (see below): Reproducible: Always Steps to Reproduce: 1. mkboot Actual Results: Creating a lilo bootdisk... + mkdir /tmp/boot5285 + mke2fs -q /dev/fd0 + mount -t ext2 /dev/fd0 /tmp/boot5285 + '[' -e /boot/boot.b ']' + cp /vmlinuz /tmp/boot5285/vmlinuz + cd /tmp/boot5285 + cat + lilo -C lilo.conf /usr/sbin/mkboot: line 79: lilo: command not found + set +e + cd / + umount /dev/fd0 + rmdir /tmp/boot5285 There was a problem creating the boot diskette. Please make sure that you inserted the diskette into the correct drive and that the diskette is not write-protected. Would you like to try again? (y/n) n Expected Results: Make a boot floppy (without trying to run lilo). The logic in this script just looks all wrong. I can follow the basings but don't understand the details. I believe the script should just make a "simple" boot disk by default. Portage 2.0.50-r10 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.7-gentoo-r12) ================================================================= System uname: 2.6.7-gentoo-r12 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aalib acpi alsa apache2 apm arts avi berkdb caps cdr crypt cups dga directfb divx4linux dvd dvdr encode faad fam fbcon flac foomaticdb gd ggi gif gmp gphoto2 gpm gtk2 idea imagemagick imap imlib ipv6 javascript jikes joystick jpeg kde lcms libwww live mad matroska mbox memlimit mikmod mmx mpeg mpi mysql nas ncurses nls oggvorbis pam pdflib perl png qt quicktime readline rtc samba scanner sdl silc speex spell ssl svga tcpd theora tiff truetype unicode usb wifi wmf x86 xinerama xml xml2 xmms xv xvid zlib"
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.