Package Details: grub-silent 2.06-5

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
Replaces: grub, grub-bios, grub-common, grub-efi-x86_64, grub-emu
Submitter: ozgursarier
Maintainer: drlorente97
Last Packager: drlorente97
Votes: 23
Popularity: 0.150978
First Submitted: 2017-11-12 13:41 (UTC)
Last Updated: 2021-11-20 02:09 (UTC)

Dependencies (17)

Required by (147)

Sources (10)

Pinned Comments

Latest Comments

earlybird commented on 2022-05-03 16:10 (UTC)

Can I ask you to remove the replace line in the pkgbuild?

It will ask for the current grub to be replaced with grub-silent if you update every single time.

tarkh commented on 2021-12-18 11:24 (UTC) (edited on 2021-12-18 11:25 (UTC) by tarkh)

@drlorente97, hi! Congrats with graduation) I have question - how to enable hidden timeout menu like in regular grub package? So menu will be hidden,but if I press ESC or Shift within this timeout, grub will show menu and pause boot process.

lmbbrkr commented on 2021-12-10 19:01 (UTC) (edited on 2021-12-10 19:02 (UTC) by lmbbrkr)

@drlorente97 Please refer to man pkgbuild on what replaces is for. AUR packages should not replace repo packages.

It doesn't even do anything, unless you're pushing built packages to your local/remote repository (or in this case, chaotic-aur picked it up and someone had their repo above system ones) and running sysupgrade.

Morganamilo commented on 2021-12-10 08:01 (UTC)

Why must it replace grub?

drlorente97 commented on 2021-12-10 01:59 (UTC)

By the way folks, I've been graduated, so I have more time to dedicate if you found any bugs

drlorente97 commented on 2021-12-10 01:57 (UTC)

@Morganamilo In order to work grub-silent needs to replace grub package. That's mandatory

Morganamilo commented on 2021-12-10 00:54 (UTC)

You should remove the replaces.

drlorente97 commented on 2021-11-20 02:13 (UTC)

@tarkh rw is the correct one

drlorente97 commented on 2021-11-20 02:11 (UTC)

That's weird, I've created 06-maybe_quiet.patch using git diff, not manually. I don't underestand how this happened.

Package release 5 is uploaded!

drlorente97 commented on 2021-11-20 02:05 (UTC)

There a lot of messages here :-| Thanks for the fix, I will push it right away :)

dedguy21 commented on 2021-11-20 00:13 (UTC)

@tarkh

Which line is the correct line first or second? "ro" or "rw"

tarkh commented on 2021-11-20 00:07 (UTC)

@drlorente97 found mistake that cause error during build preparation in 06-maybe_quiet.patch line 318:

linux   ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}

and 10_linux.in has:

linux   ${rel_dirname}/${basename} root=${linux_root_device_thisversion} rw ${args}

after manual edit of 06-maybe_quiet.patch build process went ok. Can you please fix this?

tarkh commented on 2021-11-19 19:44 (UTC) (edited on 2021-11-19 19:44 (UTC) by tarkh)

@dedguy21 it fails to compile on Arch Linux @ MacBookPro Late 2014 in my case, which is Intel.

dedguy21 commented on 2021-11-19 17:36 (UTC)

Is this now only going to work on intel machines?, I see a refrence to intel-microcode in the prepare(), I don't see anything for AMD, might that be the issue here.

This code is failing in the prepare()

dedguy21 commented on 2021-11-19 17:32 (UTC)

I just did a clean install of grub-silent. I'm still getting the below error to and it's not compiling.

tarkh commented on 2021-11-19 15:38 (UTC)

also tried manual install, same result. I'm on Arch Linux.

[~/Dev]$ git clone https://aur.archlinux.org/grub-silent.git
Cloning into 'grub-silent'...
remote: Enumerating objects: 94, done.
remote: Counting objects: 100% (94/94), done.
remote: Compressing objects: 100% (61/61), done.
remote: Total 94 (delta 45), reused 78 (delta 33), pack-reused 0
Unpacking objects: 100% (94/94), 60.80 KiB | 75.00 KiB/s, done.
[~/Dev]$ cd grub-silent/
[~/Dev/grub-silent]$ makepkg -s
==> Making package: grub-silent 2.06-4 (Fri 19 Nov 2021 06:35:36 PM MSK)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading grub-2.06.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 6427k  100 6427k    0     0   219k      0  0:00:29  0:00:29 --:--:--  215k
  -> Downloading grub-extras-8a245d5c1800627af4cefa99162a89c7a46d8842.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1009k    0 1009k    0     0   163k      0 --:--:--  0:00:06 --:--:--  252k
  -> Found 01-intel-ucode.patch
  -> Found 02-linux-detect-archlinux-initramfs.patch
  -> Found 03-add-GRUB_COLOR_variables.patch
  -> Found 04-gettext_quiet.patch
  -> Found 05-sleep_shift.patch
  -> Found 06-maybe_quiet.patch
  -> Found 07-quick_boot.patch
  -> Found grub.silent
==> Validating source files with sha256sums...
    grub-2.06.tar.xz ... Passed
    grub-extras-8a245d5c1800627af4cefa99162a89c7a46d8842.tar.gz ... Passed
    01-intel-ucode.patch ... Passed
    02-linux-detect-archlinux-initramfs.patch ... Passed
    03-add-GRUB_COLOR_variables.patch ... Passed
    04-gettext_quiet.patch ... Passed
    05-sleep_shift.patch ... Passed
    06-maybe_quiet.patch ... Passed
    07-quick_boot.patch ... Passed
    grub.silent ... Passed
==> 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...

tarkh commented on 2021-11-19 13:36 (UTC)

@drlorente97 I've cleared all cache from pacman and yay, and I do install grub-silent-2.06-4:

yay
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
 there is nothing to do
:: Searching databases for updates...
:: Searching AUR for updates...
 -> Flagged Out Of Date AUR Packages:  dunst-git
:: 1 Packages to upgrade.
1  aur/grub-silent  2.06-3 -> 2.06-4
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
==> 
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  grub-silent-2.06-4

:: (1/1) Downloaded PKGBUILD: grub-silent
  1 grub-silent                              (Installed) (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: (1/1) Parsing SRCINFO: grub-silent
==> Making package: grub-silent 2.06-4 (Fri 19 Nov 2021 04:32:50 PM MSK)
==> Retrieving sources...
  -> Downloading grub-2.06.tar.xz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 6427k  100 6427k    0     0   181k      0  0:00:35  0:00:35 --:--:--  135k
  -> Downloading grub-extras-8a245d5c1800627af4cefa99162a89c7a46d8842.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1009k    0 1009k    0     0   149k      0 --:--:--  0:00:06 --:--:--  234k
  -> Found 01-intel-ucode.patch
  -> Found 02-linux-detect-archlinux-initramfs.patch
  -> Found 03-add-GRUB_COLOR_variables.patch
  -> Found 04-gettext_quiet.patch
  -> Found 05-sleep_shift.patch
  -> Found 06-maybe_quiet.patch
  -> Found 07-quick_boot.patch
  -> Found grub.silent
==> Validating source files with sha256sums...
    grub-2.06.tar.xz ... Passed
    grub-extras-8a245d5c1800627af4cefa99162a89c7a46d8842.tar.gz ... Passed
    01-intel-ucode.patch ... Passed
    02-linux-detect-archlinux-initramfs.patch ... Passed
    03-add-GRUB_COLOR_variables.patch ... Passed
    04-gettext_quiet.patch ... Passed
    05-sleep_shift.patch ... Passed
    06-maybe_quiet.patch ... Passed
    07-quick_boot.patch ... Passed
    grub.silent ... Passed
==> Making package: grub-silent 2.06-4 (Fri 19 Nov 2021 04:33:34 PM MSK)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found grub-2.06.tar.xz
  -> Found grub-extras-8a245d5c1800627af4cefa99162a89c7a46d8842.tar.gz
  -> Found 01-intel-ucode.patch
  -> Found 02-linux-detect-archlinux-initramfs.patch
  -> Found 03-add-GRUB_COLOR_variables.patch
  -> Found 04-gettext_quiet.patch
  -> Found 05-sleep_shift.patch
  -> Found 06-maybe_quiet.patch
  -> Found 07-quick_boot.patch
  -> Found grub.silent
==> Validating source files with sha256sums...
    grub-2.06.tar.xz ... Passed
    grub-extras-8a245d5c1800627af4cefa99162a89c7a46d8842.tar.gz ... Passed
    01-intel-ucode.patch ... Passed
    02-linux-detect-archlinux-initramfs.patch ... Passed
    03-add-GRUB_COLOR_variables.patch ... Passed
    04-gettext_quiet.patch ... Passed
    05-sleep_shift.patch ... Passed
    06-maybe_quiet.patch ... Passed
    07-quick_boot.patch ... Passed
    grub.silent ... Passed
==> Removing existing $srcdir/ directory...
==> 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

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...

trinaldi commented on 2021-11-18 20:10 (UTC) (edited on 2021-11-18 20:18 (UTC) by trinaldi)

Getting:

==> 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
patch: **** malformed patch at line 319: EOF

drlorente97 commented on 2021-11-18 14:58 (UTC)

Typo on line line 315 in 06-maybe_quiet.patch fixed Did't saw AUR emails since now, sorry :(

iamcharlottey commented on 2021-08-24 16:17 (UTC)

@drlorente97 there's an issue with installing where it says flex is not installed despite it being installed, during ./configure. Removing lines 7413->7422 to bypass this causes another error, saying it cannot compile because grub_script.yy.h does not exist.

tarkh commented on 2021-08-12 01:34 (UTC)

@drlorente97 can you please fix typo with EOF 10_linux, as @afm0901x pointed out, so that this package could be installed automatically with script without additional patching? Thank you for your time!

gbc921 commented on 2021-08-09 20:17 (UTC)

As @afm0901x mentioned, when removing the spaces/tabs before the EOF on line 315 in 06-maybe_quiet.patch

I can build it again.

Thanks

fitri commented on 2021-08-07 13:42 (UTC) (edited on 2021-08-07 23:08 (UTC) by fitri)

make sure no spaces/tabs before EOF.

line 152 in /etc/grub.d/10_linux

proper fix:

line 315 in 06-maybe_quiet.patch

ooops commented on 2021-08-07 08:37 (UTC)

Getting a syntax error now, when running grub-mkconfig (unexpected "}" in etc/grub.d/10_linux, line 171).

drlorente97 commented on 2021-08-07 02:21 (UTC) (edited on 2021-08-07 02:21 (UTC) by drlorente97)

I have to apologize with you

I didn't include the new modified patches in the previous update and didn't saw the emails reporting the errors untill now because I was moving to a new house. I have solved all those errors, feel free to test

tarkh commented on 2021-08-05 09:23 (UTC)

but even on 2.04 for some reason GRUB_TIMEOUT_STYLE=hidden does not works... It always shows GRUB menu if I set GRUB_TIMEOUT > 0 and if GRUB_TIMEOUT = 0, then it just boots silently and I can't get to GRUB by pressing ESC if I need it.

tarkh commented on 2021-08-05 00:21 (UTC) (edited on 2021-08-05 00:53 (UTC) by tarkh)

To install current version, you need to manually edit 03-add-GRUB_COLOR_variables.patch and 05-sleep_shift.patch, then update checksum in PKGBUILD and makepkg. Seems like there is some changes in source, so this patches has wrong lines. But anyway, setting GRUB_HIDDEN_TIMEOUT to any value did not works... Can't enter GRUB menu by pressing key... Only when setting GRUB_TIMEOUT > 0 and displaying it by default... Seems like patches needs to be adjusted...

trinaldi commented on 2021-08-02 10:40 (UTC)

By doing what @si1enced0ne suggests you lose the "silent" part of GRUB (at least in my case).

I downloaded 2.04, renamed it to 2.06 and it's working as expected. I guess we'll have to wait a proper patch to 2.06.

barcode commented on 2021-07-30 08:38 (UTC) (edited on 2021-07-30 08:41 (UTC) by barcode)

while upgrade to version 2.06-1 i get this error


==> Patch to enable GRUB_COLOR_* variables in grub-mkconfig
patching file util/grub-mkconfig.in
Hunk #1 FAILED at 233.
1 out of 1 hunk FAILED -- saving rejects to file util/grub-mkconfig.in.rej
patching file util/grub.d/00_header.in
==> ERROR: A failure occurred in prepare().
    Aborting...
error making: grub-silent

si1enced0ne commented on 2021-07-30 05:11 (UTC) (edited on 2021-07-30 08:50 (UTC) by si1enced0ne)

Getting this error.

==> Patch to enable GRUB_COLOR_* variables in grub-mkconfig
patching file util/grub-mkconfig.in
Hunk #1 FAILED at 233.
1 out of 1 hunk FAILED -- saving rejects to file util/grub-mkconfig.in.rej
patching file util/grub.d/00_header.in

When bypassing this patch I get

 ==> Applying Ubuntu patches for making GRUB silent
patching file grub-core/gettext/gettext.c
patching file grub-core/commands/sleep.c
Hunk #2 FAILED at 80.
1 out of 2 hunks FAILED -- saving rejects to file grub-core/commands/sleep.c.rej
patching file grub-core/normal/menu.c
Hunk #1 succeeded at 614 (offset -1 lines).

After bypassing both patches grub compiles.

drlorente97 commented on 2021-07-30 02:33 (UTC)

Updated grub to 2.06. Thanks for contacting me, I haven't received the outdated mail. Feel free to report any bugs

Raizan commented on 2021-05-21 12:19 (UTC)

Thank you for the information and the upcoming fix. By the way, I made a "typo" on the first comment I made in this page: I use Grub on BIOS/GPT (Not MBR/GPT) and that is where I get the original decompressor too big warning. 2.04 silent grub ends up at 977ish MB, 2.06 package ended at 32mb.

drlorente97 commented on 2021-05-21 12:14 (UTC) (edited on 2021-05-21 12:19 (UTC) by drlorente97)

Aparentely solved ("Decompressor is too big")

I have used a 2.06 patch from grub repo that aparently solve ("Decompressor is too big") issue and added it to the package. Feel free to test it and report bugs

P.D: I'm the same maintainer, just changed my nickname :)

si1enced0ne commented on 2021-05-21 09:58 (UTC)

grub-2.06 is still in testing, this version matches up with the stable version of grub and I haven't had any issues with it. I can't say it needs to be flagged as outdated.

Raizan commented on 2021-05-20 17:28 (UTC)

Further update: I managed to make a package which contains the scripts from grub-silent. The package is made from grub-2.06-rc1a, gnulib, the scripts fixed to fit the new code lines on 2.06, and the grub-extras. It is fully working, and I would be happy to share it to update this AUR package but it needs to be reviewed. Please contact me if you can use the files.

Raizan commented on 2021-05-19 15:51 (UTC)

I flagged out of date the package, might have been the wrong move but I explained in detail why I did there.

To further comment here: I'm having the same problem that @lucasgta95 and @adi1090x are having. @si1enced0ne I'm on stock Arch install. I'm also using MBR/GPT Grub (the official one from core without issues). When I build this package from this AUR, I end up with a Grub sizing around 1 GB. That is why the size ends up too big to install. It was addressed in the Git from Grub around 04-2020. It isn't fixed on version 2.04 but apparently it is on version 2.06 according to the commits.

I tried to make a new package with Grub-silent files and grub-2.06-rt1a but failed at the end with a "gnulib not bootstrapped" error that I don't know how to address. So I flagged this package out-of-date because at the very least for MBR/GPT Grub, it isn't working and there is a fix apparently available already.

P.S: If it can be of help... I modified this repo files to fit the new lines numbers in 2.06, added the link to 2.06-rt1a with a sha265 but I'm unable to finish making a new AUR package due to the bootstrap inconvenient.

si1enced0ne commented on 2021-05-16 08:51 (UTC)

Below errors are not a problem on stock Arch install.

lucasgta95 commented on 2021-05-14 20:19 (UTC)

"grub-install : error : Decompressor is too big."

adi1090x commented on 2021-05-13 08:12 (UTC)

This package needs an update soon. It's unable to install grub now, and gives the following error -

"grub-install : error : Decompressor is too big."

Images : https://ibb.co/BqHQ1tj, https://ibb.co/6m6FvVw

loki7990 commented on 2021-02-23 22:07 (UTC) (edited on 2021-02-23 22:10 (UTC) by loki7990)

In the quick_boot.patch, there's a section where if you have os_prober detecting other OSes, the timeout_style is hard set to "menu" even if you set it to be hidden. Might want to adjust the patch accordingly as I have to manually editing /boot/grub/grub.cfg to get a completely silent boot at the moment

drlorente97 commented on 2020-10-23 05:27 (UTC)

Ok, patched :) @dankcuddlybear Thanks!

dankcuddlybear commented on 2020-10-21 22:06 (UTC)

Fails to build unless fuse2 is installed (listed as an optional dependency when it should be a required dependency).

drlorente97 commented on 2020-04-04 17:39 (UTC)

My mistake, sorry. I've allready fixed now, and I've found and fixed a bug in intel ucode patch.

Terence commented on 2020-04-04 00:17 (UTC)

It's all good, thanks for updating it. Minor annoyance: grub-extras-8a245d5c1800627af4cefa99162a89c7a46d8842.tar.gz fails the validity check.

drlorente97 commented on 2020-04-03 22:59 (UTC) (edited on 2020-04-03 23:02 (UTC) by drlorente97)

First at all I want to apologize, when I assume this package in descember I didn't know that I had to move to a place where I can't work on it because of multiple reasons; but now I've updated it and I will keep updating it on every grub new version. Feel free to contact me if you detect any bug.

Changelog:
  • Reworked patches to work with grub 2.04
  • Removed unnecesary patches
  • Removed unifont nonsense :)

possum commented on 2019-07-16 15:16 (UTC) (edited on 2019-07-16 15:17 (UTC) by possum)

It has not come to my consciousness the knowledge required to understand all these patches. However, I added the mentioned fixes to the package (thanks @veyvey88 (you are the true hero!), @0byte and @awfulwaffle) and was able to get it working. I added the changes. Enjoy while it works!

0byte commented on 2019-06-29 12:32 (UTC) (edited on 2019-06-29 12:35 (UTC) by 0byte)

Message at the end of installation: "Please reinstall GRUB first: "grub-install --target=i386-pc --boot-directory=/your/boot/partition /dev/sdx"

"grub-install --target=x86_64-efi --boot-directory=/boot /dev/sda" did not work.

"grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub" work, but grub-silent displays the boot logs anyway. Standard grub does not show boot logs.

GRUB_CMDLINE_LINUX_DEFAULT="quiet vt.global_cursor_default=0 loglevel=3 vga=current rd.systemd.show_status=false rd.udev.log-priority=3"

awfulwaffle commented on 2019-06-25 06:36 (UTC)

Fix for error "cp: cannot stat '/home/$USER/grub-silent/src/unifont-10.0.06.bdf': No such file or directory" I had to manually 'gunzip unifont-10.0.06.bdf.gz'. After that, package got installed successfully.

laarSn commented on 2019-05-30 01:18 (UTC)

unifont-10.0.06.bdf unable to build...

ozgursarier commented on 2019-05-12 07:51 (UTC)

@veyvey88: I tried hard to create this unique package, those days.. But now i realy have any time to deal with... I hope a talented person as you would own it :D

veyvey88 commented on 2019-05-09 17:24 (UTC) (edited on 2019-05-09 17:42 (UTC) by veyvey88)

Fast fix for "relocation 0x4 is not implemented yet" (tried to be as newbie friendly as possible):

  1. Download https://aur.archlinux.org/cgit/aur.git/snapshot/grub-silent.tar.gz
  2. Download https://aur.archlinux.org/cgit/aur.git/snapshot/grub-luks-keyfile.tar.gz
  3. Extract grub-silent somewhere
  4. Extract just '0010-relocation.patch' from grub-luks-keyfile.tar.gz to the same location
  5. Open PKGBUILD in the grub-silent extracted directory with your favorite text editor
  6. Add '0010-relocation.patch' a line below '09-Fix-packed-not-aligned-error-on-GCC-8.patch' in the source=( section (should be new line 68)
  7. Add these lines under prepare() (should start at line 113 with blank space on 112 and 116):

    msg "Applying fix for relocation error 0x4"

    patch -Np1 -i "${srcdir}/10-relocation.patch"

    echo
  8. Save PKGBUILD
  9. Open location of PKGBUILD for grub-silent in Terminal with cd .../grub-silent
  10. run: makepkg --skipinteg
  11. after first command is done run: sudo pacman -U grub-silent-2.02-1-x86_64.pkg.tar.xz

Now you can install grub again without the 0x4 relocation error. This whole thing should be integrated, and this packages really needs a new maintainer.

ElModdy commented on 2019-05-05 08:20 (UTC) (edited on 2019-05-05 08:35 (UTC) by ElModdy)

How can I build the package with the patch for grub-install: error: relocation 0x4 is not implemented yet.. I installed grub-silent with yay with no problem but I have no idea how to apply the patch. I appraciate any kind of help.

aether commented on 2019-04-20 20:46 (UTC)

@ozgursarier I can confirm that for me at least, building the package with https://aur.archlinux.org/cgit/aur.git/tree/0010-relocation.patch?h=grub-luks-keyfile does fix the error. I am running an Acer Spin 5 SP513-51 with a very picky UEFI implementation, and it works great.

ozgursarier commented on 2019-04-07 14:08 (UTC)

@nmiddleton: I dont know how to solve that error :(

aether commented on 2019-04-02 01:25 (UTC)

@ozgursarier EFI grub does indeed have welcome messages. I'd certainly appreciate if this package also supported EFI.

ozgursarier commented on 2019-02-24 17:40 (UTC)

@nmiddleton: I make this package for slow booting bios machines. EFI grub has no welcoming massages I assumme..

nmiddleton commented on 2019-02-24 10:35 (UTC)

Same error as others below. The package compiles successfully, but when installing the error is:

grub-install: error: relocation 0x4 is not implemented yet.

I don't have bios machine but efi, but the instructions are clearly for bios-based boards. Is this the case, or is it just grub and works find with efi?

Install command:

grub-install --target=x86_64-efi --efi-directory=/boot

Samsagax commented on 2019-01-27 20:34 (UTC) (edited on 2019-01-27 21:34 (UTC) by Samsagax)

Hi there.

This error appears when trying to do grub-install

grub-install: error: relocation 0x4 is not implemented yet.

Trying the paches by @zazabe does seem to fix the problem.

Also, per PKGBUILD guidelines this packages should not use the repaces array.

rstacruz commented on 2019-01-03 23:17 (UTC) (edited on 2019-01-03 23:20 (UTC) by rstacruz)

This package needs autoconf as part of its makedepends. Otherwise:

Running autoreconf...
./autogen.sh: line 86: autoreconf: command not found
==> ERROR: A failure occurred in build().
    Aborting...
Error making: grub-silent

(Possibly automake, too? Not sure. I seem to have uninstalled base-devel by mistake, hah.)

ozgursarier commented on 2018-11-07 20:52 (UTC)

@aphypnise: You seem to make an orphan request. I read all messages and couldn't repeat those errors when i rebuild the package. So please give me more clue or screenshot or something like that for me to try my best for my own unique amateur package :D

zazabe commented on 2018-11-06 22:29 (UTC)

@FrogTheFrog I tried the patch and it didn't work for me, see https://github.com/zazabe/aur-grub-silent/commit/269e87e04f8df870545123153e60732cdbaa164c

ThirteenPeeps commented on 2018-10-16 07:13 (UTC)

@nightah @FrogTheFrog I'm just a baby when it comes to in-depth AUR stuff; what's the process for applying this patch? Or, is the move just to wait for the package to be updated? Apologies for not being in-the-know.

nightah commented on 2018-10-04 11:00 (UTC)

@ozgursarier: Confirmed that I was experiencing the same issue that @FrogTheFrog reported and the patch he has posted also resolved the issue.

FrogTheFrog commented on 2018-08-29 22:29 (UTC)

Getting "Realocation 0x4..." errors with latest grub source. This patch (https://aur.archlinux.org/cgit/aur.git/tree/0010-relocation.patch?h=grub-luks-keyfile) seems to fix it.

ozgursarier commented on 2018-06-13 20:39 (UTC)

@Terence: I've already applied official GCC 8 patch for that error. Please try to rebuild again, and inform me.

Terence commented on 2018-06-13 12:28 (UTC) (edited on 2018-06-13 12:28 (UTC) by Terence)

I'm getting

In file included from efiemu/runtime/efiemu.c:33: ../include/grub/efiemu/runtime.h:36:1: error: alignment 1 of ‘struct >efi_variable’ is less than 8 [-Werror=packed-not-aligned] } GRUB_PACKED; ^ cc1: all warnings being treated as errors

ozgursarier commented on 2018-06-13 12:03 (UTC)

@Jiaan: It builds now, without grub-mkfont support. Try again :)

Jiaan commented on 2018-06-13 03:30 (UTC) (edited on 2018-06-13 03:41 (UTC) by Jiaan)

Unable to compile, with following error:

checking for freetype-config... no

configure: error: grub-mkfont was explicitly requested but can't be compiled (need freetype2 library)

==> ERROR: A failure occurred in build().

Aborting...

==> ERROR: Makepkg was unable to build grub-silent.

I'm sure I have freetype2 on my system.

BugSecurity commented on 2018-03-02 21:21 (UTC)

add vt.global_cursor_default=0 to grub line to hide the cursor on boot

newbit commented on 2018-01-01 11:47 (UTC) (edited on 2018-01-01 15:23 (UTC) by newbit)

All I was missing is the "GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT" line. Now it all works like a charm, thanks! :-) You got my vote!

EDIT: If you set GRUB_TIMEOUT=0 and GRUB_HIDDEN_TIMEOUT=1 (or any value >0), set GRUB_RECORDFAIL_TIMEOUT=$GRUB_HIDDEN_TIMEOUT instead of GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT! Otherwise pressing Esc on boot to show grub menu wont work.

ozgursarier commented on 2018-01-01 06:21 (UTC) (edited on 2018-01-12 08:18 (UTC) by ozgursarier)

After the installation, it is required to reinstall GRUB to necessary partition first.

Then, take an example as "/etc/default/grub.silent", and make necessary changes to "/etc/default/grub".

Below three lines are necessary :

GRUB_DEFAULT=0

GRUB_TIMEOUT=0

GRUB_RECORDFAIL_TIMEOUT=$GRUB_TIMEOUT

Lastly, regenerate grub.cfg file. If you wish, give me a vote :D ..DONE..

newbit commented on 2017-12-31 14:54 (UTC) (edited on 2017-12-31 16:00 (UTC) by newbit)

Does this still work? For me it doesnt, but maybe I'm just stupid?

I have grub2 set up, with GRUB_TIMEOUT=0 and GRUB_HIDDEN_TIMEOUT=1, thats working with no problems. Grub menu not showing unless I hit Esc. Of course, annoying "Welcome to Grub" message etc is still displayed.

Now if I remove grub, compile grub-silent from aur and try the same thing, it just wont work. I always see the grub menu, not hidden, for 30 secs. Editet /etc/default/grub.silent, remade grub.conf, but still same issue... Even tried replacing grub.silent with a copy of my original grub file, doesnt help. Really strange! Any tips?

EDIT: ok just me being stupid! Solution: When switching from the "normal" grub package, delete /boot/grub just to be sure. Then, after installing boot-silent and setting up config, run "sudo grub-install" then "sudo grub-mkconfig -o /boot/grub/grub.cfg". Done! Hope this saves someone some headache ;-)

EDIT2: ... well or maybe not?

sudo rm -rf /boot/grub

sudo grub-install

sudo grub-mkconfig -o /boot/grub/grub.cfg

reboot, grub is silent like it should. But if I run "sudo grub-mkconfig -o /boot/grub/grub.cfg" a second time after reboot, grub menu reappears, with 30 secs timeout. So after deleting /boot/grub and reinstalling, it works just until I run "sudo grub-mkconfig -o /boot/grub/grub.cfg" again... then I am back to menu with countdown!

Am I the only one with this issue? For those using this too: Could you try to run "sudo grub-mkconfig -o /boot/grub/grub.cfg" again and see if the grub menu is still hidden?