def get_kernel_ramdisk(cls, mount_point, kernel_dir, ramdisk_dir):
     #Rebuild ramdisk in case changes were made
     rebuild_ramdisk(mount_point, ignore_suffix='el5xen')
     #Retrieve the kernel/ramdisk pair and return
     (kernel_path, ramdisk_path) = retrieve_kernel_ramdisk(mount_point,
                                              kernel_dir, ramdisk_dir,
                                              ignore_suffix='el5xen')
     return (kernel_path, ramdisk_path)
Пример #2
0
 def get_kernel_ramdisk(cls, mount_point, kernel_dir, ramdisk_dir):
     #Rebuild ramdisk in case changes were made
     rebuild_ramdisk(mount_point, ignore_suffix='el5xen')
     #Retrieve the kernel/ramdisk pair and return
     (kernel_path,
      ramdisk_path) = retrieve_kernel_ramdisk(mount_point,
                                              kernel_dir,
                                              ramdisk_dir,
                                              ignore_suffix='el5xen')
     return (kernel_path, ramdisk_path)
Пример #3
0
def add_virtualbox_support(mounted_path, image_path):
    """
    These configurations are specific to running virtualbox from an exported VM
    """
    #remove_ldap(mounted_path)
    #remove_vnc(mounted_path)
    #remove_sensu(mounted_path)

    add_gnome_support(mounted_path)

    #Touch to create a new module file
    new_mod_file = os.path.join(mounted_path, 'etc/modprobe.d/virtualbox')
    open(new_mod_file,'a').close()

    add_eth0_module(mounted_path)
    add_intel_soundcard(mounted_path)

    rebuild_ramdisk(mounted_path)
Пример #4
0
def add_virtualbox_support(mounted_path, image_path):
    """
    These configurations are specific to running virtualbox from an exported VM
    """
    #remove_ldap(mounted_path)
    #remove_vnc(mounted_path)
    #remove_sensu(mounted_path)

    add_gnome_support(mounted_path)

    #Touch to create a new module file
    new_mod_file = os.path.join(mounted_path, 'etc/modprobe.d/virtualbox')
    open(new_mod_file,'a').close()

    add_eth0_module(mounted_path)
    add_intel_soundcard(mounted_path)

    rebuild_ramdisk(mounted_path)