You are not logged in.

#1 2025-04-24 10:47:55

zkab
Member
Registered: 2025-04-18
Posts: 6

Silent boot

I have heard much about Archlinx so I decided to try it.
Everyting went OK when I ran 'archinstall'.

I chose 'bootloader:Systemd-boot' in the installation and want a silent boot so I:

1) added 'quiet splash' to the kernel parameter (/boot/loader/entries/arch.conf)
2) set 'timeout 0' in /boot/loader/loader.conf

Still I have to enter return at the boot menu ... how can I make the loader to choose first option automatically?
I have read the excellent Wiki but still I miss something?

Offline

#2 2025-04-24 11:30:19

002445
Member
Registered: 2021-10-07
Posts: 21

Re: Silent boot

It wouldn't surprise me if

timeout 0

means disable the countdown and wait for user input before booting. Change 0 to 1 and the boot menu will only show for 1 second and then boot the default option.

Offline

#3 2025-04-24 12:50:34

stfischr
Member
Registered: 2020-04-29
Posts: 18

Re: Silent boot

No 0 means 0 seconds. But it's not the only way to specify the timeout, look at the tip section: https://wiki.archlinux.org/title/System … figuration

Offline

#4 Yesterday 09:36:40

zkab
Member
Registered: 2025-04-18
Posts: 6

Re: Silent boot

After reading wiki I change to following:

cat /boot/loader/loader.conf
default @saved
timeout  0
console-mode keep

and also adding 'quiet splash' to kernel parameter.

cat /boot/loader/entries/2025-04-24_13-06-12_linux.conf
# Created by: archinstall
# Created on: 2025-04-24_13-06-12
title   Arch Linux (linux)
linux   /vmlinuz-linux
initrd  /initramfs-linux.img
options root=PARTUUID=a41af985-53e5-4627-9172-899d5bc455a7 zswap.enabled=0 rw rootfstype=ext4 quiet splash

But still it won't work ... boot menu appears and I have to hit return.
As I understand I have followed the wiki ... I am lost

Offline

#5 Yesterday 10:42:37

-thc
Member
Registered: 2017-03-15
Posts: 856

Re: Silent boot

First check a fallback configuration: Replace "@saved" with "2025-04-24_13-06-12_linux.conf" inside "loader.conf".
Does it work?

Offline

#6 Yesterday 11:03:47

stfischr
Member
Registered: 2020-04-29
Posts: 18

Re: Silent boot

zkab wrote:

But still it won't work ... boot menu appears and I have to hit return.
As I understand I have followed the wiki ... I am lost

Did you have a look at the tip section? It's talking about UEFI variables that can override your loader.conf and how to reset them ...

Offline

#7 Yesterday 11:28:30

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,244
Website

Re: Silent boot

Please provide the output of

$ bootctl status

Also, please post console output and configuration file content in code tags.


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#8 Today 12:10:43

zkab
Member
Registered: 2025-04-18
Posts: 6

Re: Silent boot

Here is the output you asked for ... hope it helps.

bootctl status
System:
      Firmware: UEFI 2.70 (American Megatrends 5.14)
 Firmware Arch: x64
   Secure Boot: enabled (user)
  TPM2 Support: no
  Measured UKI: no
  Boot into FW: supported

Current Boot Loader:
      Product: systemd-boot 257.5-2-arch
     Features: ✓ Boot counting
               ✓ Menu timeout control
               ✓ One-shot menu timeout control
               ✓ Default entry control
               ✓ One-shot entry control
               ✓ Support for XBOOTLDR partition
               ✓ Support for passing random seed to OS
               ✓ Load drop-in drivers
               ✓ Support Type #1 sort-key field
               ✓ Support @saved pseudo-entry
               ✓ Support Type #1 devicetree field
               ✓ Enroll SecureBoot keys
               ✓ Retain SHIM protocols
               ✓ Menu can be disabled
               ✓ Multi-Profile UKIs are supported
               ✓ Boot loader set partition information
    Partition: /dev/disk/by-partuuid/09b92dde-df44-4679-9e7b-996ee7ec5571
       Loader: └─/EFI/BOOT/BOOTX64.EFI
Current Entry: 2025-04-24_13-06-12_linux.conf

Random Seed:
 System Token: set
       Exists: yes

Available Boot Loaders on ESP:
          ESP: /boot (/dev/disk/by-partuuid/09b92dde-df44-4679-9e7b-996ee7ec5571)
         File: ├─/EFI/systemd/systemd-bootx64.efi (systemd-boot 257.5-2-arch)
               └─/EFI/BOOT/BOOTX64.EFI (systemd-boot 257.5-2-arch)

Boot Loaders Listed in EFI Variables:
        Title: UEFI OS
           ID: 0x0001
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/09b92dde-df44-4679-9e7b-996ee7ec5571
         File: └─/EFI/BOOT/BOOTX64.EFI

Boot Loader Entries:
        $BOOT: /boot (/dev/disk/by-partuuid/09b92dde-df44-4679-9e7b-996ee7ec5571)
        token: arch

Default Boot Loader Entry:
         type: Boot Loader Specification Type #1 (.conf)
        title: Arch Linux (linux)
           id: 2025-04-24_13-06-12_linux.conf
       source: /boot//loader/entries/2025-04-24_13-06-12_linux.conf (on the EFI System Partition)
        linux: /boot//vmlinuz-linux
       initrd: /boot//initramfs-linux.img
      options: root=PARTUUID=a41af985-53e5-4627-9172-899d5bc455a7 zswap.enabled=0 rw rootfstype=ext4 quiet splash

Offline

#9 Today 12:11:59

zkab
Member
Registered: 2025-04-18
Posts: 6

Re: Silent boot

-thc wrote:

First check a fallback configuration: Replace "@saved" with "2025-04-24_13-06-12_linux.conf" inside "loader.conf".
Does it work?

No ... still the same

Offline

#10 Today 12:16:10

zkab
Member
Registered: 2025-04-18
Posts: 6

Re: Silent boot

stfischr wrote:

Did you have a look at the tip section? It's talking about UEFI variables that can override your loader.conf and how to reset them ...

Yes I did but since I didn't want to override my setting I didn't use these option.

Offline

#11 Today 12:42:51

tekstryder
Member
Registered: 2013-02-14
Posts: 283

Re: Silent boot

Two options to try.

Delete the default EFI var, and let your loader.conf control this:

bootctl set-default ""

Or, set the var to the filename of your desired entry:

bootctl set-default "2025-04-24_13-06-12_linux.conf"

Last edited by tekstryder (Today 12:45:24)

Offline

#12 Today 14:52:07

zkab
Member
Registered: 2025-04-18
Posts: 6

Re: Silent boot

tekstryder wrote:

Two options to try.

Delete the default EFI var, and let your loader.conf control this:

bootctl set-default ""

Or, set the var to the filename of your desired entry:

bootctl set-default "2025-04-24_13-06-12_linux.conf"

I tested both options but the same result ... only differense was that the secount option displayed '=>' in front of the first line at boot menu after the boot.

Offline

#13 Today 15:27:15

tekstryder
Member
Registered: 2013-02-14
Posts: 283

Re: Silent boot

zkab wrote:

I tested both options but the same result ... only differense was that the secount option displayed '=>' in front of the first line at boot menu after the boot.

Okay, so it's likely not the EFI var storing the wrong default, assuming that's your only conf file.

I know nothing about archinstall or its various shenanigans.

Let's make this a little more standardized.

Do you still have a /boot/loader/entries/arch.conf file?

ls -al /boot/loader/entries/

If so, what are the contents?

If not:

sudo mv /boot/loader/entries/2025-04-24_13-06-12_linux.conf /boot/loader/entries/arch.conf

Modify /boot/loader/loader.conf to contain:

console-mode keep
timeout 0
default arch.conf

EDIT: another thing to verify is to reboot from a running system:

systemctl reboot --boot-loader-entry=arch.conf

Last edited by tekstryder (Today 15:34:17)

Offline

Board footer

Powered by FluxBB