| Top |
| GVirSandboxConfigInitrd * | gvir_sandbox_config_initrd_new () |
| void | gvir_sandbox_config_initrd_set_kver () |
| const gchar * | gvir_sandbox_config_initrd_get_kver () |
| void | gvir_sandbox_config_initrd_set_kmoddir () |
| const gchar * | gvir_sandbox_config_initrd_get_kmoddir () |
| void | gvir_sandbox_config_initrd_set_init () |
| const gchar * | gvir_sandbox_config_initrd_get_init () |
| void | gvir_sandbox_config_initrd_add_module () |
| GList * | gvir_sandbox_config_initrd_get_modules () |
Provides an object to store information about a kernel ramdisk
The GVirSandboxConfigInitrd object stores the information required to build a kernel ramdisk to use when booting a virtual machine as a sandbox.
GVirSandboxConfigInitrd *
gvir_sandbox_config_initrd_new (void);
Create a new initrd config
void gvir_sandbox_config_initrd_set_kver (GVirSandboxConfigInitrd *config,const gchar *version);
Sets the host kernel version to use for populating the initrd with modules. This defaults to the currently running kernel version
const gchar *
gvir_sandbox_config_initrd_get_kver (GVirSandboxConfigInitrd *config);
Retrieves the path of the kver binary
void gvir_sandbox_config_initrd_set_kmoddir (GVirSandboxConfigInitrd *config,const gchar *kmoddir);
Sets the full path to where the kernel modules will be looked up
const gchar *
gvir_sandbox_config_initrd_get_kmoddir
(GVirSandboxConfigInitrd *config);
Retrieves the current kernel modules directory
void gvir_sandbox_config_initrd_set_init (GVirSandboxConfigInitrd *config,const gchar *hostpath);
Sets the host binary to be used as the init program inside the initrd. This defaults to /usr/bin/libvirt-sandbox-init-qemu
const gchar *
gvir_sandbox_config_initrd_get_init (GVirSandboxConfigInitrd *config);
Retrieves the path of the init binary
void gvir_sandbox_config_initrd_add_module (GVirSandboxConfigInitrd *config,const gchar *modname);
Request that the kernel module modname
is included in the initrd,
along with any depedent modules
GList *
gvir_sandbox_config_initrd_get_modules
(GVirSandboxConfigInitrd *config);
Retrieves the list of all modules
#define GVIR_SANDBOX_TYPE_CONFIG_INITRD_HANDLE (gvir_sandbox_config_initrd_handle_get_type ())
struct GVirSandboxConfigInitrdClass {
GObjectClass parent_class;
gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING];
};