summaryrefslogtreecommitdiffstats
path: root/bootloader.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-08-29 22:08:35 +0000
committerJeremy Katz <katzj@redhat.com>2001-08-29 22:08:35 +0000
commit0a345c3ada3ae3a9f2b67ead719acca685054ecf (patch)
treef62eab42b221068bf08d17175826d0f5e3198bd4 /bootloader.py
parent57a2836a7c82ca98389f27caa100f66ebc910438 (diff)
downloadanaconda-0a345c3ada3ae3a9f2b67ead719acca685054ecf.tar.gz
anaconda-0a345c3ada3ae3a9f2b67ead719acca685054ecf.tar.xz
anaconda-0a345c3ada3ae3a9f2b67ead719acca685054ecf.zip
only move the lilo.conf if it exists (they could not have installed any kernels
Diffstat (limited to 'bootloader.py')
-rw-r--r--bootloader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootloader.py b/bootloader.py
index cd0953e4a..2dcab5388 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -640,7 +640,7 @@ class x86BootloaderInfo(bootloaderInfo):
justConfig | (not self.useGrubVal))
# XXX move the lilo.conf out of the way if they're using GRUB
# so that /sbin/installkernel does a more correct thing
- if self.useGrubVal:
+ if self.useGrubVal and os.access(instRoot + '/etc/lilo.conf', os.R_OK):
os.rename(instRoot + "/etc/lilo.conf",
instRoot + "/etc/lilo.conf.anaconda")