mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
Copy the kernel so that libvirt can add an SELinux label to it. NB. This requires febootstrap >= 3.20 with --copy-kernel flag.
This commit is contained in:
2
README
2
README
@@ -55,7 +55,7 @@ For basic functionality and the C tools:
|
||||
to make complex changes to the ./configure command line to get it
|
||||
to work if you don't have virtio)
|
||||
|
||||
- febootstrap >= 3.17
|
||||
- febootstrap >= 3.20
|
||||
|
||||
Notes: (1) febootstrap 2.x WILL NOT WORK
|
||||
(2) febootstrap 3.x is distro-independent, and is required on
|
||||
|
||||
@@ -106,7 +106,7 @@ gl_lock_define_initialized (static, building_lock);
|
||||
* $TMPDIR/.guestfs-$UID/ and consists of four files:
|
||||
*
|
||||
* $TMPDIR/.guestfs-$UID/checksum - the checksum
|
||||
* $TMPDIR/.guestfs-$UID/kernel - symlink to the kernel
|
||||
* $TMPDIR/.guestfs-$UID/kernel - the kernel
|
||||
* $TMPDIR/.guestfs-$UID/initrd - the febootstrap initrd
|
||||
* $TMPDIR/.guestfs-$UID/root - the appliance
|
||||
*
|
||||
@@ -643,7 +643,7 @@ hard_link_to_cached_appliance (guestfs_h *g,
|
||||
perrorf (g, "link: %s %s", filename, *kernel);
|
||||
goto error;
|
||||
}
|
||||
(void) lutimes (filename, NULL); /* lutimes because it's a symlink */
|
||||
(void) utimes (filename, NULL);
|
||||
|
||||
snprintf (filename, len, "%s/initrd", cachedir);
|
||||
(void) unlink (*initrd);
|
||||
@@ -706,6 +706,7 @@ run_supermin_helper (guestfs_h *g, const char *supermin_path,
|
||||
argv[i++] = "-g";
|
||||
argv[i++] = gid;
|
||||
}
|
||||
argv[i++] = "--copy-kernel";
|
||||
argv[i++] = "-f";
|
||||
argv[i++] = "ext2";
|
||||
argv[i++] = supermin_d;
|
||||
|
||||
Reference in New Issue
Block a user