summaryrefslogtreecommitdiff
path: root/user/grub/2.02_beta3-mkconfig-alpine.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-27 04:02:34 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-27 04:02:34 -0500
commit97a9fa2a372686cc873d1f966a769d3d80a7f054 (patch)
tree5b31a1ecbb1830f395f90ce032ff7d566171e996 /user/grub/2.02_beta3-mkconfig-alpine.patch
parent93c5f6a80e136230cc7972d1c36e2bd922f83d52 (diff)
downloadpackages-97a9fa2a372686cc873d1f966a769d3d80a7f054.tar.gz
packages-97a9fa2a372686cc873d1f966a769d3d80a7f054.tar.bz2
packages-97a9fa2a372686cc873d1f966a769d3d80a7f054.tar.xz
packages-97a9fa2a372686cc873d1f966a769d3d80a7f054.zip
user/grub: pull in, take, modernise a bit
Diffstat (limited to 'user/grub/2.02_beta3-mkconfig-alpine.patch')
-rw-r--r--user/grub/2.02_beta3-mkconfig-alpine.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/user/grub/2.02_beta3-mkconfig-alpine.patch b/user/grub/2.02_beta3-mkconfig-alpine.patch
new file mode 100644
index 000000000..606540fff
--- /dev/null
+++ b/user/grub/2.02_beta3-mkconfig-alpine.patch
@@ -0,0 +1,30 @@
+--- a/util/grub.d/10_linux.in
++++ b/util/grub.d/10_linux.in
+@@ -21,8 +21,11 @@
+ exec_prefix="@exec_prefix@"
+ datarootdir="@datarootdir@"
+
++. /etc/update-extlinux.conf
+ . "$pkgdatadir/grub-mkconfig_lib"
+
++GRUB_CMDLINE_LINUX_DEFAULT="modules=${modules} ${default_kernel_opts} ${GRUB_CMDLINE_LINUX_DEFAULT}"
++
+ export TEXTDOMAIN=@PACKAGE@
+ export TEXTDOMAINDIR="@localedir@"
+
+@@ -75,6 +78,7 @@
+ version="$2"
+ type="$3"
+ args="$4"
++ tag="$(basename ${rel_dirname}/${basename} | cut -b9-)"
+
+ if [ -z "$boot_device_id" ]; then
+ boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
+@@ -133,6 +137,7 @@
+ echo '$(echo "$message" | grub_quote)'
+ linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
+ EOF
++ [ -f "/boot/initramfs-${tag}" ] && initrd="initramfs-${tag}"
+ if test -n "${initrd}" ; then
+ # TRANSLATORS: ramdisk isn't identifier. Should be translated.
+ message="$(gettext_printf "Loading initial ramdisk ...")"