]> TLD Linux GIT Repositories - packages/grub2.git/commitdiff
- dracut is only option now, no point to search for old initrds
authorMarcin Krol <hawk@tld-linux.org>
Tue, 4 Aug 2015 11:14:11 +0000 (11:14 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Tue, 4 Aug 2015 11:14:11 +0000 (11:14 +0000)
- tldized a bit more

choose-preferred-initrd.patch [deleted file]
grub.sysconfig
grub2.spec
initrd-search.patch [new file with mode: 0644]
tld-mkconfigdir.patch [moved from pld-mkconfigdir.patch with 100% similarity]
tld-sysconfdir.patch [moved from pld-sysconfdir.patch with 100% similarity]

diff --git a/choose-preferred-initrd.patch b/choose-preferred-initrd.patch
deleted file mode 100644 (file)
index b6f1887..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-diff -dur -x '*.orig' grub-2.00.git20131218.orig/util/grub-mkconfig.in grub-2.00.git20131218/util/grub-mkconfig.in
---- grub-2.00.git20131218.orig/util/grub-mkconfig.in   2013-12-18 14:44:31.000000000 +0100
-+++ grub-2.00.git20131218/util/grub-mkconfig.in        2013-12-18 14:45:37.000000000 +0100
-@@ -255,7 +255,8 @@
-   GRUB_ENABLE_CRYPTODISK \
-   GRUB_BADRAM \
-   GRUB_OS_PROBER_SKIP_LIST \
--  GRUB_DISABLE_SUBMENU
-+  GRUB_DISABLE_SUBMENU \
-+  GRUB_PREFER_DRACUT
- if test "x${grub_cfg}" != "x"; then
-   rm -f "${grub_cfg}.new"
-diff -dur -x '*.orig' grub-2.00.git20131218.orig/util/grub.d/10_linux.in grub-2.00.git20131218/util/grub.d/10_linux.in
---- grub-2.00.git20131218.orig/util/grub.d/10_linux.in 2013-12-18 14:44:31.000000000 +0100
-+++ grub-2.00.git20131218/util/grub.d/10_linux.in      2013-12-18 14:44:49.000000000 +0100
-@@ -198,10 +198,12 @@
-   linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
-   initrd=
--  for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \
--         "initrd-${version}" "initramfs-${version}.img" \
--         "initrd.img-${alt_version}" "initrd-${alt_version}.img" \
--         "initrd-${alt_version}" "initramfs-${alt_version}.img" \
-+  if [ x"${GRUB_PREFER_DRACUT}" != "xtrue" ]; then
-+        initrd_search_list="initrd.img-${version} initrd-${version}.img initrd-${version}.gz initrd-${version} initramfs-${version}.img initrd.img-${alt_version} initrd-${alt_version}.img initrd-${alt_version} initramfs-${alt_version}.img"
-+  else
-+        initrd_search_list="initramfs-${version}.img initrd.img-${version} initrd-${version}.img initrd-${version}.gz initrd-${version}  initramfs-${alt_version}.img initrd.img-${alt_version} initrd-${alt_version}.img initrd-${alt_version}"
-+  fi
-+  for i in $initrd_search_list \
-          "initramfs-genkernel-${version}" \
-          "initramfs-genkernel-${alt_version}" \
-          "initramfs-genkernel-${GENKERNEL_ARCH}-${version}" \
-diff -dur -x '*.orig' grub-2.00.git20131218.orig/util/grub.d/20_linux_xen.in grub-2.00.git20131218/util/grub.d/20_linux_xen.in
---- grub-2.00.git20131218.orig/util/grub.d/20_linux_xen.in     2013-12-18 14:44:31.000000000 +0100
-+++ grub-2.00.git20131218/util/grub.d/20_linux_xen.in  2013-12-18 14:44:49.000000000 +0100
-@@ -207,10 +207,12 @@
-       linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
-       initrd=
--      for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \
--         "initrd-${version}" "initramfs-${version}.img" \
--         "initrd.img-${alt_version}" "initrd-${alt_version}.img" \
--         "initrd-${alt_version}" "initramfs-${alt_version}.img" \
-+      if [ x"${GRUB_PREFER_DRACUT}" != "xtrue" ]; then
-+          initrd_search_list="initrd.img-${version} initrd-${version}.img initrd-${version}.gz initrd-${version} initramfs-${version}.img initrd.img-${alt_version} initrd-${alt_version}.img initrd-${alt_version} initramfs-${alt_version}.img"
-+      else
-+          initrd_search_list="initramfs-${version}.img initrd.img-${version} initrd-${version}.img initrd-${version}.gz initrd-${version} initramfs-${alt_version}.img initrd.img-${alt_version} initrd-${alt_version}.img initrd-${alt_version}"
-+      fi
-+      for i in $initrd_search_list \
-          "initramfs-genkernel-${version}" \
-          "initramfs-genkernel-${alt_version}" \
-          "initramfs-genkernel-${GENKERNEL_ARCH}-${version}" \
index 0c2f1816f584299e8311d898094c1e56263fbe90..7b1699d22e3fb9a9fe47aa6783310c25f72cbbe6 100644 (file)
@@ -49,10 +49,5 @@ GRUB_DISABLE_RECOVERY="true"
 # Disable creating "advanced" submenus, just use flat list
 GRUB_DISABLE_SUBMENU="y"
 
-# Control which initial ramdisk should grub-mkconfig prefer. Ddefault is
-# initramf-*.img created by dracut. Set to false to prefer initrd-*.img
-# created by geninitrd.
-GRUB_PREFER_DRACUT="true"
-
 # Uncomment to get a beep at grub start
 #GRUB_INIT_TUNE="480 440 1"
index b1cb292f9c67b6b670e776b92ff8fc3e0f0f8cbf..f66007ea28b1f6baf5e56e1653a74e22c1ae094a 100644 (file)
@@ -51,17 +51,17 @@ Source1:    update-grub
 Source2:       update-grub.8
 Source3:       grub.sysconfig
 Source4:       grub-custom.cfg
-Patch1:                pld-sysconfdir.patch
+Patch1:                tld-sysconfdir.patch
 Patch2:                grub-garbage.patch
 Patch3:                grub-lvmdevice.patch
-Patch4:                pld-mkconfigdir.patch
+Patch4:                tld-mkconfigdir.patch
 Patch5:                grub-mkconfig-diagnostics.patch
 Patch6:                posix.patch
 Patch7:                %{name}-fonts_path.patch
 Patch8:                add-vlan-tag-support.patch
 Patch9:                just-say-linux.patch
 Patch10:       ignore-kernel-symlinks.patch
-Patch11:       choose-preferred-initrd.patch
+Patch11:       initrd-search.patch
 Patch12:       %{name}-cfg.patch
 Patch13:       efi-net-fix.patch
 Patch14:       grub2-xfs-Add-helper-for-inode-size.patch
diff --git a/initrd-search.patch b/initrd-search.patch
new file mode 100644 (file)
index 0000000..bf7207c
--- /dev/null
@@ -0,0 +1,30 @@
+diff -ur grub-2.02-beta2.orig/util/grub.d/10_linux.in grub-2.02-beta2/util/grub.d/10_linux.in
+--- grub-2.02-beta2.orig/util/grub.d/10_linux.in       2013-12-24 20:53:23.000000000 +0000
++++ grub-2.02-beta2/util/grub.d/10_linux.in    2015-08-04 11:09:27.932635208 +0000
+@@ -185,10 +185,7 @@
+   linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
+   initrd=
+-  for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \
+-         "initrd-${version}" "initramfs-${version}.img" \
+-         "initrd.img-${alt_version}" "initrd-${alt_version}.img" \
+-         "initrd-${alt_version}" "initramfs-${alt_version}.img" \
++  for i in "initramfs-${version}.img initramfs-${alt_version}.img" \
+          "initramfs-genkernel-${version}" \
+          "initramfs-genkernel-${alt_version}" \
+          "initramfs-genkernel-${GENKERNEL_ARCH}-${version}" \
+diff -ur grub-2.02-beta2.orig/util/grub.d/20_linux_xen.in grub-2.02-beta2/util/grub.d/20_linux_xen.in
+--- grub-2.02-beta2.orig/util/grub.d/20_linux_xen.in   2013-12-24 20:53:23.000000000 +0000
++++ grub-2.02-beta2/util/grub.d/20_linux_xen.in        2015-08-04 11:10:18.928635208 +0000
+@@ -213,10 +213,7 @@
+       linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
+       initrd=
+-      for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \
+-         "initrd-${version}" "initramfs-${version}.img" \
+-         "initrd.img-${alt_version}" "initrd-${alt_version}.img" \
+-         "initrd-${alt_version}" "initramfs-${alt_version}.img" \
++      for i in "initramfs-${version}.img initramfs-${alt_version}.img" \
+          "initramfs-genkernel-${version}" \
+          "initramfs-genkernel-${alt_version}" \
+          "initramfs-genkernel-${GENKERNEL_ARCH}-${version}" \
similarity index 100%
rename from pld-mkconfigdir.patch
rename to tld-mkconfigdir.patch
similarity index 100%
rename from pld-sysconfdir.patch
rename to tld-sysconfdir.patch