Borsenkow Andrej <[EMAIL PROTECTED]> writes:
> Ah! So DURING_INSTALL means "during OS install" not "during RPM
> install"? Then setting it in grpmi is plain wrong and my patch still
> applies and no changes in installkernel needed.
Not really the changes to installkernel is needed, this is the latest
version of patch, which is quite true when we install kernel and we
don't boot with any of the loaders :
Index: installkernel
===================================================================
RCS file: /home/cvs/cooker/soft/initscripts/mandrake/loader/installkernel,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- installkernel 2002/01/07 15:52:43 1.32
+++ installkernel 2002/01/22 20:22:43 1.33
@@ -5,7 +5,7 @@
# Redistribution of this file is permitted under the terms of the GNU
# Public License (GPL)
#--------------------------------------------------------------------
-# $Id: installkernel,v 1.32 2002/01/07 15:52:43 chmouel Exp $
+# $Id: installkernel,v 1.33 2002/01/22 20:22:43 chmouel Exp $
#--------------------------------------------------------------------
## description:
# Install a kernel to /boot and add an entry for grub,
@@ -22,8 +22,6 @@
NOCONFIG=""
NOENTRY=""
-[[ -n "$DURING_INSTALL" ]] && exit 0
-
if [ -f /etc/sysconfig/installkernel ];then
source /etc/sysconfig/installkernel
fi
@@ -156,6 +154,7 @@
[[ -z $NOLINK ]] && [[ -z $REMOVE ]] && do_link
[[ -z $NOLINK ]] && [[ -n $REMOVE ]] && do_remove_link
[[ -z $NOINITRD ]] && [[ -z $REMOVE ]] && $sharfile/make-initrd $NOLINK $version
+[[ ! -e /boot/grub/menu.lst && ! -e /etc/lilo.conf ]] && exit 0 #this is for install
+time.
[[ -n $AUTODETECT ]] && [[ -z $LOADER ]] && [[ -f /usr/sbin/detectloader ]] &&
LOADER=$(/usr/sbin/detectloader -q)
[[ $LOADER != "LILO" && $LOADER != "GRUB" && $LOADER != "YABOOT" ]] && {
--
http://www.chmouel.org/