diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-22 14:07:52 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-22 14:22:00 +0000 |
commit | 5b05d9838e2aeb8d29ba22e64fdc205445f9e3a0 (patch) | |
tree | 64d54828d7226a17160b7ccf610dcde06221cd8a /main/grub/2.02_beta3-mkconfig-alpine.patch | |
parent | 5d1c3fc11703f547a43bc4d7b9f089d75efbec60 (diff) | |
download | aports-5b05d9838e2aeb8d29ba22e64fdc205445f9e3a0.tar.bz2 aports-5b05d9838e2aeb8d29ba22e64fdc205445f9e3a0.tar.xz |
main/grub: move from testing
neeed for ppc64le image
Diffstat (limited to 'main/grub/2.02_beta3-mkconfig-alpine.patch')
-rw-r--r-- | main/grub/2.02_beta3-mkconfig-alpine.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/main/grub/2.02_beta3-mkconfig-alpine.patch b/main/grub/2.02_beta3-mkconfig-alpine.patch new file mode 100644 index 0000000000..606540fff3 --- /dev/null +++ b/main/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 ...")" |