forked from KDE/kde-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddons.sh
More file actions
executable file
·29 lines (23 loc) · 873 Bytes
/
Copy pathaddons.sh
File metadata and controls
executable file
·29 lines (23 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/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 /boot/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=(/boot/EFI/Linux/kde-linux_*.efi)
efi=${efis[-1]}
name=$(basename "$efi")
mkdir "/boot/EFI/Linux/$name.extra.d"
cp -v ./*.addon.efi "/boot/EFI/Linux/$name.extra.d"