Commit c5bad867 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

We should use new RAID0 layout by default - otherwise RAID0 MD assembly fails

parent 78a5526e
...@@ -16,6 +16,7 @@ all: ...@@ -16,6 +16,7 @@ all:
patch -Np1 -d libguestfs-1.42.0 < libguestfs-1.42.0-mlv2v.patch patch -Np1 -d libguestfs-1.42.0 < libguestfs-1.42.0-mlv2v.patch
patch -Np1 -d libguestfs-1.42.0 < libguestfs-1.42.0-fix_test_timeout.patch patch -Np1 -d libguestfs-1.42.0 < libguestfs-1.42.0-fix_test_timeout.patch
patch -Np1 -d libguestfs-1.42.0 < libguestfs-1.42.0-force_resize2fs.patch patch -Np1 -d libguestfs-1.42.0 < libguestfs-1.42.0-force_resize2fs.patch
patch -Np1 -d libguestfs-1.42.0 < libguestfs-1.42.0-set_raid0_layout.patch
cd libguestfs-1.42.0 && ./configure --prefix=/usr --sysconfdir=/etc --with-extra-packages="glibc readline ncurses util-linux xz pcre zlib systemd iproute2 libcap jansson augeas hivex libtirpc parted mdadm libaio cryptsetup popt openssl json-c cdrkit gptfdisk gcc" cd libguestfs-1.42.0 && ./configure --prefix=/usr --sysconfdir=/etc --with-extra-packages="glibc readline ncurses util-linux xz pcre zlib systemd iproute2 libcap jansson augeas hivex libtirpc parted mdadm libaio cryptsetup popt openssl json-c cdrkit gptfdisk gcc"
$(MAKE) -C libguestfs-1.42.0 $(MAKE) -C libguestfs-1.42.0
......
diff -uNr libguestfs-1.42.0/lib/appliance-kcmdline.c libguestfs-1.42.0-set_raid0_layout/lib/appliance-kcmdline.c
--- libguestfs-1.42.0/lib/appliance-kcmdline.c 2020-03-07 06:01:08.166077997 +1030
+++ libguestfs-1.42.0-set_raid0_layout/lib/appliance-kcmdline.c 2022-03-22 05:15:31.808267407 +1030
@@ -204,6 +204,9 @@
/* Don't scan all 8250 UARTS. */
guestfs_int_add_string (g, &argv, "8250.nr_uarts=1");
+ /* Force use of new RAID0 layout */
+ guestfs_int_add_string (g, &argv, "raid0.default_layout=2");
+
/* Tell supermin about the appliance device. */
if (appliance) {
CLEANUP_FREE char *uuid = get_root_uuid (g, appliance);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment