[Lunar-commits] r19352 - lunar-iso/trunk/lunar-install/sbin
Auke Kok
sofar at lunar-linux.org
Tue Mar 21 04:42:22 UTC 2006
Author: sofar
Date: 2006-03-21 04:42:20 +0000 (Tue, 21 Mar 2006)
New Revision: 19352
Modified:
lunar-iso/trunk/lunar-install/sbin/lunar-install
Log:
Never overwrite grub or lilo configurations.
Modified: lunar-iso/trunk/lunar-install/sbin/lunar-install
===================================================================
--- lunar-iso/trunk/lunar-install/sbin/lunar-install 2006-03-21 04:32:14 UTC (rev 19351)
+++ lunar-iso/trunk/lunar-install/sbin/lunar-install 2006-03-21 04:42:20 UTC (rev 19352)
@@ -820,6 +820,10 @@
make_lilo_conf()
{
+ if [ -e $TARGET/etc/lilo.conf ]; then
+ return
+ fi
+
DISC=$(echo $ROOT | sed 's/[0-9]*$//')
(
echo "# lba32"
@@ -839,6 +843,10 @@
make_grub_conf()
{
+ if [ -e $TARGET/boot/grub/menu.lst ] ; then
+ return
+ fi
+
mkdir -p $TARGET/boot/grub
(
echo "# uncomment the following 2 lines to enable serial console booting"
More information about the Lunar-commits
mailing list