mirror of
https://github.com/KDE/kde-linux.git
synced 2025-12-24 00:18:23 -05:00
This will completely silence the boot and help debugging Issue #209. The options are explained in the Arch Wiki here: https://wiki.archlinux.org/title/Silent_boot#Kernel_parameters
30 lines
869 B
Bash
Executable File
30 lines
869 B
Bash
Executable File
#!/bin/bash
|
|
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
|
# SPDX-FileCopyrightText: 2023-2024 Harald Sitter <sitter@kde.org>
|
|
|
|
set -ex
|
|
|
|
rm -vf ./*.addon.efi
|
|
rm -rfv /efi/EFI/Linux/kde-linux_*.efi.extra.d
|
|
|
|
if [ "$@" != "" ]; then
|
|
# any argument de-addons
|
|
exit 0
|
|
fi
|
|
|
|
ukify build \
|
|
--cmdline 'console=ttyS0 console=tty0
|
|
rd.systemd.debug_shell=on systemd.debug_shell=on SYSTEMD_SULOGIN_FORCE=1
|
|
systemd.log_level=debug systemd.log_target=kmsg log_buf_len=1M printk.devkmsg=on systemd.show_status=auto rd.udev.log_level=3' \
|
|
--output debug.addon.efi
|
|
|
|
ukify build \
|
|
--cmdline 'init=/usr/lib/systemd/systemd-bootchart' \
|
|
--output bootchart.addon.efi
|
|
|
|
efis=(/efi/EFI/Linux/kde-linux_*.efi)
|
|
efi=${efis[-1]}
|
|
name=$(basename "$efi")
|
|
mkdir "/efi/EFI/Linux/$name.extra.d"
|
|
cp -v ./*.addon.efi "/efi/EFI/Linux/$name.extra.d"
|