Changed the modules and firmware symlinks

This commit is contained in:
Martin Gracik 2010-03-31 09:40:38 +02:00
parent 6a4d4a4a56
commit 3a914eab34
1 changed files with 4 additions and 6 deletions

View File

@ -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