Package Details: grub-silent 2.06-6

Git Clone URL: https://aur.archlinux.org/grub-silent.git (read-only, click to copy)
Package Base: grub-silent
Description: GNU GRand Unified Bootloader (2) [without welcome and kernel messages]
Upstream URL: https://www.gnu.org/software/grub/
Keywords: boot booting grub hide loading message silent
Licenses: GPL3
Conflicts: grub, grub-bios, grub-common, grub-efi-x86_64, grub-emu, grub-git, grub-legacy
Provides: grub, grub-bios, grub-common, grub-efi-x86_64, grub-emu
Submitter: ozgursarier
Maintainer: None
Last Packager: drlorente97
Votes: 26
Popularity: 0.000012
First Submitted: 2017-11-12 13:41 (UTC)
Last Updated: 2023-10-18 19:34 (UTC)

Dependencies (17)

Required by (316)

Sources (10)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 .. 11 Next › Last »

drlorente97 commented on 2021-11-19 12:39 (UTC)

@tarkh Please download the new version of grub-silent (release 4). That's the error that I have found yesterday, I made a new patch at night. That's weird, the package compiles ok to me, even the previous version.

dedguy21 commented on 2021-11-19 10:46 (UTC)

I'm getting the same error as below, AMD machine if that matters.

tarkh commented on 2021-11-19 06:46 (UTC)

Now I'm getting compile error again with release 4:

==> Extracting sources...
  -> Extracting grub-2.06.tar.xz with bsdtar
  -> Extracting grub-extras-8a245d5c1800627af4cefa99162a89c7a46d8842.tar.gz with bsdtar
==> Starting prepare()...
==> Patch to load Intel microcode
patching file util/grub.d/10_linux.in

==> Patch to detect of Arch Linux initramfs images by grub-mkconfig
patching file util/grub.d/10_linux.in

==> Patch to enable GRUB_COLOR_* variables in grub-mkconfig
patching file util/grub-mkconfig.in
patching file util/grub.d/00_header.in

==> Fix DejaVuSans.ttf location so that grub-mkfont can create *.pf2 files for starfield theme
==> Fix mkinitcpio 'rw' FS#36275
==> Fix OS naming FS#33393
==> Applying Ubuntu patches for making GRUB silent
patching file grub-core/gettext/gettext.c
patching file grub-core/commands/sleep.c
patching file grub-core/normal/menu.c
patching file config.h.in
patching file configure.ac
patching file grub-core/boot/i386/pc/boot.S
patching file grub-core/boot/i386/pc/diskboot.S
patching file grub-core/kern/main.c
patching file grub-core/kern/rescue_reader.c
patching file grub-core/normal/main.c
patching file grub-core/normal/menu.c
patching file util/grub.d/10_linux.in
Hunk #2 FAILED at 141.
1 out of 2 hunks FAILED -- saving rejects to file util/grub.d/10_linux.in.rej
==> ERROR: A failure occurred in prepare().
    Aborting...
 -> error making: grub-silent

And content of util/grub.d/10_linux.in.rej:

--- util/grub.d/10_linux.in
+++ util/grub.d/10_linux.in
@@ -141,15 +142,21 @@ linux_entry ()
     fi
     printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
   fi
-  message="$(gettext_printf "Loading Linux %s ..." ${version})"
-  sed "s/^/$submenu_indentation/" << EOF
+  if [ x"$quiet_boot" = x0 ] || [ x"$type" != xsimple ]; then
+    message="$(gettext_printf "Loading Linux %s ..." ${version})"
+    sed "s/^/$submenu_indentation/" << EOF
    echo    '$(echo "$message" | grub_quote)'
+EOF
+  fi
+  sed "s/^/$submenu_indentation/" << EOF
    linux   ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
 EOF
   if test -n "${initrd}" -o -n "${initrd_extra}" ; then
     # TRANSLATORS: ramdisk isn't identifier. Should be translated.
-    message="$(gettext_printf "Loading initial ramdisk ...")"
-    printf '   %s\n' "echo '$(echo "$message" | grub_quote)'" | sed "s/^/$submenu_indentation/"
+    if [ x"$quiet_boot" = x0 ] || [ x"$type" != xsimple ]; then
+      message="$(gettext_printf "Loading initial ramdisk ...")"
+      printf ' %s\n' "echo     '$(echo "$message" | grub_quote)'" | sed "s/^/$submenu_indentation/"
+    fi
     printf '   %s ' 'initrd' | sed "s/^/$submenu_indentation/"
     for i in ${initrd_extra} ${initrd}; do
    printf ' %s/%s' "${rel_dirname}" "${i}"

drlorente97 commented on 2021-11-19 00:33 (UTC)

I have rewrite 06-maybe_quiet.patch and push the changes

drlorente97 commented on 2021-11-18 23:51 (UTC)

Still found some silent error in 06-maybe_quiet.patch. I will completely rewrite that file

tarkh commented on 2021-11-18 23:35 (UTC)

ah, sorry, there was the cache... Because package name/version still the same after your re-patch. Cleaned yay cache and everything went smooth. Thank you!

drlorente97 commented on 2021-11-18 23:33 (UTC)

The typo was on the line 315 (one extra space), not on 319

tarkh commented on 2021-11-18 23:17 (UTC) (edited on 2021-11-18 23:35 (UTC) by tarkh)

drlorente97, still I can see whitespace before EOF on line 319 ://

drlorente97 commented on 2021-11-18 23:13 (UTC)

Sorry I have patched the patch from the phone (using my ArchLinux VPS) because I was on school and did't test it :)

I have changed the wrong line, now I have fixed it.

tarkh commented on 2021-11-18 21:19 (UTC) (edited on 2021-11-18 23:15 (UTC) by tarkh)

Same here

patching file util/grub.d/10_linux.in
patch: **** malformed patch at line 319: EOF

Again typo - you have whitespace before EOF There must NO characters before EOF...