Pixel <[EMAIL PROTECTED]> writes: > chmouel, maybe we can let installkernel do the initrd. After building the > initrd, installkernel could check the existence of lilo.conf or menu.lst and > leave if none exist (meaning we're at install time). ?
Something like that is ok for you ? --- installkernel.~1.32.~ Mon Jan 7 16:52:43 2002 +++ installkernel Tue Jan 22 20:43:08 2002 @@ -22,8 +22,6 @@ NOCONFIG="" NOENTRY="" -[[ -n "$DURING_INSTALL" ]] && exit 0 - if [ -f /etc/sysconfig/installkernel ];then source /etc/sysconfig/installkernel fi @@ -159,6 +157,8 @@ [[ -n $AUTODETECT ]] && [[ -z $LOADER ]] && [[ -f /usr/sbin/detectloader ]] && LOADER=$(/usr/sbin/detectloader -q) [[ $LOADER != "LILO" && $LOADER != "GRUB" && $LOADER != "YABOOT" ]] && { + [[ -n $DURING_INSTALL ]] && exit 0 #DURING_INSTALL it could be + #possible that there is no loader cat <<EOF 1>&2 Cannot find a boot loader, you may have to see why detectloader has problems or specify via the command line. @@ -169,10 +169,12 @@ if [[ -x /usr/bin/perl && -z $NOENTRY ]];then if [[ $LOADER = "GRUB" ]] && [[ -f $sharfile/grub ]];then + [[ -f /boot/grub/menu.lst ]] || exit 0 perl $sharfile/grub $REMOVE $version fi if [[ $LOADER = "LILO" ]] && [[ -f $sharfile/lilo ]];then + [[ -f /etc/lilo.conf ]] || exit 0 perl $sharfile/lilo $NOLAUNCH $REMOVE $version fi -- http://www.chmouel.org/