Dont delete module* files before creating initramfs.

This commit is contained in:
Ozan Çağlayan
2009-04-09 10:53:51 +00:00
parent a91fef464b
commit b2ee41167d
+7 -4
View File
@@ -105,9 +105,6 @@ def install():
pisitools.remove("/lib/modules/%s/source" % suffix) pisitools.remove("/lib/modules/%s/source" % suffix)
pisitools.remove("/lib/modules/%s/build" % suffix) pisitools.remove("/lib/modules/%s/build" % suffix)
# Remove modules.* files, they will autogenerated on next boot
# TODO: Ubuntu doesn't remove modules.order, reinvestigate.
pisitools.remove("/lib/modules/%s/modules.*" % suffix)
# Install kernel image # Install kernel image
@@ -164,6 +161,12 @@ def installSource():
autotools.make("clean") autotools.make("clean")
autotools.make("modules_prepare") autotools.make("modules_prepare")
def cleanModuleFiles():
""" Cleans module.* files generated by depmod """
# Remove modules.* files, they will be autogenerated during pakhandler.
# TODO: Ubuntu doesn't remove modules.order, reinvestigate.
pisitools.remove("/lib/modules/%s/modules.*" % __getSuffix())
def mkinitramfs(): def mkinitramfs():
""" Create and install the initramfs image into the package. This will hopefully be done on user's system. """ """ Create and install the initramfs image into the package. This will hopefully be done on user's system. """
shelltools.system("/sbin/mkinitramfs kernel=%s --full --root-dir=%s --output=/%s/boot" % (__getSuffix(), get.installDIR(), get.installDIR())) shelltools.system("/sbin/mkinitramfs kernel=%s --full --root-dir=%s --output=%s/boot" % (__getSuffix(), get.installDIR(), get.installDIR()))