summaryrefslogtreecommitdiffstats
path: root/recipes/ostree/ostree/0005-Do-not-use-grub2-mkconfig.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/ostree/ostree/0005-Do-not-use-grub2-mkconfig.patch')
-rw-r--r--recipes/ostree/ostree/0005-Do-not-use-grub2-mkconfig.patch60
1 files changed, 0 insertions, 60 deletions
diff --git a/recipes/ostree/ostree/0005-Do-not-use-grub2-mkconfig.patch b/recipes/ostree/ostree/0005-Do-not-use-grub2-mkconfig.patch
deleted file mode 100644
index 1414ff7..0000000
--- a/recipes/ostree/ostree/0005-Do-not-use-grub2-mkconfig.patch
+++ /dev/null
@@ -1,60 +0,0 @@
1From b613d60319beffc861f5b1faa906d2ee0c685f52 Mon Sep 17 00:00:00 2001
2From: Gatis Paeglis <gatis.paeglis@theqtcompany.com>
3Date: Wed, 24 Feb 2016 18:12:27 +0100
4Subject: [PATCH] Do not use grub2-mkconfig.
5
6For details see: https://bugzilla.gnome.org/show_bug.cgi?id=762220
7---
8 src/libostree/ostree-bootloader-grub2.c | 12 +++++++++++-
9 1 file changed, 11 insertions(+), 1 deletion(-)
10
11diff --git a/src/libostree/ostree-bootloader-grub2.c b/src/libostree/ostree-bootloader-grub2.c
12index 1f89914..7cfb0dc 100644
13--- a/src/libostree/ostree-bootloader-grub2.c
14+++ b/src/libostree/ostree-bootloader-grub2.c
15@@ -282,6 +282,8 @@ grub2_child_setup (gpointer user_data)
16 }
17 }
18
19+#define OSTREE_NO_GRUB2_MKCONFIG
20+
21 static gboolean
22 _ostree_bootloader_grub2_write_config (OstreeBootloader *bootloader,
23 int bootversion,
24@@ -300,6 +302,7 @@ _ostree_bootloader_grub2_write_config (OstreeBootloader *bootloader,
25 g_autoptr(GFile) config_path_efi_dir = NULL;
26 g_autofree char *grub2_mkconfig_chroot = NULL;
27
28+#ifndef OSTREE_NO_GRUB2_MKCONFIG
29 if (ostree_sysroot_get_booted_deployment (self->sysroot) == NULL
30 && g_file_has_parent (self->sysroot->path, NULL))
31 {
32@@ -322,7 +325,7 @@ _ostree_bootloader_grub2_write_config (OstreeBootloader *bootloader,
33 tool_deployment_root = ostree_sysroot_get_deployment_directory (self->sysroot, tool_deployment);
34 grub2_mkconfig_chroot = g_file_get_path (tool_deployment_root);
35 }
36-
37+#endif
38 if (self->is_efi)
39 {
40 config_path_efi_dir = g_file_get_parent (self->config_path_efi);
41@@ -337,9 +340,16 @@ _ostree_bootloader_grub2_write_config (OstreeBootloader *bootloader,
42 bootversion);
43 }
44
45+#ifdef OSTREE_NO_GRUB2_MKCONFIG
46+ procctx = gs_subprocess_context_newv ("ostree-grub-generator", "-o",
47+ gs_file_get_path_cached (new_config_path),
48+ NULL);
49+#else
50 procctx = gs_subprocess_context_newv ("grub2-mkconfig", "-o",
51 gs_file_get_path_cached (new_config_path),
52 NULL);
53+#endif
54+
55 child_env = g_environ_setenv (child_env, "_OSTREE_GRUB2_BOOTVERSION", bootversion_str, TRUE);
56 /* We have to pass our state to the child */
57 if (self->is_efi)
58--
592.7.0
60