[lorax] Fixed the generating of modules.dep

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

 



Also added some missing directories to initrd image
---
 etc/templates/initrd.ltmpl |    3 +++
 src/pylorax/images.py      |    3 ++-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/etc/templates/initrd.ltmpl b/etc/templates/initrd.ltmpl
index a8a72f2..a2483d4 100644
--- a/etc/templates/initrd.ltmpl
+++ b/etc/templates/initrd.ltmpl
@@ -62,6 +62,7 @@ copy "bin/hostname"
 copy "sbin/ethtool"
 copy "sbin/route"
 touch "etc/resolv.conf"
+makedirs "etc/dhcp"
 
 ## hwdata
 copy "usr/share/hwdata/pci.ids"
@@ -100,6 +101,7 @@ copy "usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service"
 
 ## networkmanager
 copy "usr/sbin/NetworkManager"
+makedirs "etc/NetworkManager/dispatcher.d"
 copy "etc/NetworkManager/nm-system-settings.conf"
 copy "etc/dbus-1/system.d/NetworkManager.conf"
 copy "etc/dbus-1/system.d/nm-*.conf"
@@ -193,6 +195,7 @@ makedirs "var/lock"
 makedirs "var/lock/rpm"
 makedirs "var/run/NetworkManager"
 makedirs "var/run/wpa_supplicant"
+makedirs "var/run/hald"
 makedirs "var/lib/dhclient"
 
 
diff --git a/src/pylorax/images.py b/src/pylorax/images.py
index 5ae6ac7..54dfb7c 100644
--- a/src/pylorax/images.py
+++ b/src/pylorax/images.py
@@ -308,9 +308,10 @@ export PS1 PATH
 
         cmd = "{0.DEPMOD} -a -F {1} -b {2} {3}"
         cmd = cmd.format(self.cmd, systemmap,
-                         self.srctree, kernel.version)
+                         self.dsttree, kernel.version)
 
         err, stdout = commands.getstatusoutput(cmd)
+        print stdout
         if err:
             self.perror(stdout)
 
-- 
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