From 20bb4c5ffb9092bb31f6111447b3273d45280504 Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 24 Nov 2009 19:04:16 -0600 Subject: [PATCH 1/5] clean install.img from /boot --- yuminstall.py | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/yuminstall.py b/yuminstall.py index df34153..b2ff6ac 100644 --- a/yuminstall.py +++ b/yuminstall.py @@ -706,6 +706,13 @@ class AnacondaYum(YumSorter): self.repos.setCacheDir(self.conf.cachedir) + if os.path.exists("%s/boot/upgrade/install.img" % self.anaconda.rootPath): + log.info("REMOVING stage2 image from %s /boot/upgrade" % self.anaconda.rootPath ) + try: + os.unlink("%s/boot/upgrade/install.img" % self.anaconda.rootPath): + except: + log.warning("failed to clean /boot/upgrade") + def downloadHeader(self, po): while True: # retrying version of download header -- 1.6.5.2