From 3a914eab34e7c2fcd565de719be70d73d60c284f Mon Sep 17 00:00:00 2001 From: Martin Gracik Date: Wed, 31 Mar 2010 09:40:38 +0200 Subject: [PATCH] Changed the modules and firmware symlinks --- src/pylorax/images.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/pylorax/images.py b/src/pylorax/images.py index 61011d98..f66fad0c 100644 --- a/src/pylorax/images.py +++ b/src/pylorax/images.py @@ -705,12 +705,10 @@ class Install(BaseImageClass): shutil.move(f, dstdir) def create_modules_symlinks(self): - mkdir_(os.path.join(self.srctree, "modules")) - mkdir_(os.path.join(self.srctree, "firmware")) - remove_(os.path.join(self.srctree, self.const.MODDIR)) - remove_(os.path.join(self.srctree, self.const.FWDIR)) - os.symlink("/modules", os.path.join(self.srctree, self.const.MODDIR)) - os.symlink("/firmware", os.path.join(self.srctree, self.const.FWDIR)) + remove_(os.path.join(self.srctree, self.const.MODDIR, "*")) + remove_(os.path.join(self.srctree, self.const.FWDIR, "*")) + os.symlink(os.path.join(self.srctree, self.const.MODDIR), "/modules") + os.symlink(os.path.join(self.srctree, self.const.FWDIR), "/firmware") def fix_man_pages(self): # fix up some links for man page related stuff