[lorax 1/4] Changed the modules and firmware symlinks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 src/pylorax/images.py |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/pylorax/images.py b/src/pylorax/images.py
index 61011d9..f66fad0 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
-- 
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux