v0.0.3 - Add loglevel=1 to live boot args to suppress TTY console noise

This commit is contained in:
Laan Tungir
2026-05-07 10:20:50 -04:00
parent adebb27c62
commit 0f74671529
59985 changed files with 8508144 additions and 4402 deletions

View File

@@ -0,0 +1,64 @@
source /boot/grub/config.cfg
# Live boot
menuentry "Live system (amd64)" --hotkey=l {
linux /live/vmlinuz-6.12.85+deb13-amd64 boot=live components console=tty0 console=ttyS0,115200n8 loglevel=4 findiso=${iso_path}
initrd /live/initrd.img-6.12.85+deb13-amd64
}
menuentry "Live system (amd64 fail-safe mode)" {
linux /live/vmlinuz-6.12.85+deb13-amd64 boot=live components memtest noapic noapm nodma nomce nosmp nosplash vga=788
initrd /live/initrd.img-6.12.85+deb13-amd64
}
# You can add more entries like this
# menuentry "Alternate live boot" {
# linux /live/vmlinuz-6.12.85+deb13-amd64 boot=live components console=tty0 console=ttyS0,115200n8 loglevel=4 findiso=${iso_path} custom options here
# initrd /live/initrd.img-6.12.85+deb13-amd64
# }
# menuentry "Alternate graphical installer" {
# linux custom options here
# initrd
# }
# menuentry "Alternate textual installer" {
# linux custom options here
# initrd
# }
# Installer (if any)
if false; then
source /boot/grub/install_start.cfg
submenu 'Advanced install options ...' --hotkey=a {
source /boot/grub/theme.cfg
source /boot/grub/install.cfg
}
fi
submenu 'Utilities...' --hotkey=u {
source /boot/grub/theme.cfg
# Memtest (if any)
if false; then
source /boot/grub/memtest.cfg
fi
# Firmware setup (UEFI)
if [ "${grub_platform}" = "efi" ]; then
menuentry "UEFI Firmware Settings" --hotkey=f {
fwsetup
}
fi
# Verify the checksums
if true; then
menuentry "Verify integrity of the boot medium" --hotkey=v {
linux /live/vmlinuz-6.12.85+deb13-amd64 boot=live components console=tty0 console=ttyS0,115200n8 loglevel=4 findiso=${iso_path} verify-checksums
initrd /live/initrd.img-6.12.85+deb13-amd64
}
fi
}

View File

@@ -0,0 +1,4 @@
include menu.cfg
default vesamenu.c32
prompt 0
timeout 0

View File

@@ -0,0 +1,12 @@
label live-amd64
menu label ^Live system (amd64)
menu default
linux /live/vmlinuz
initrd /live/initrd.img
append boot=live components console=tty0 console=ttyS0,115200n8 loglevel=4
label live-amd64-failsafe
menu label Live system (amd64 fail-safe mode)
linux /live/vmlinuz
initrd /live/initrd.img
append boot=live components memtest noapic noapm nodma nomce nosmp nosplash vga=788

View File

@@ -0,0 +1,17 @@
menu hshift 0
menu width 82
menu title Boot menu
include stdmenu.cfg
include live.cfg
menu begin utilities
menu label ^Utilities
menu title Utilities
include stdmenu.cfg
label mainmenu
menu label ^Back..
menu exit
include utilities.cfg
menu end
menu clear

View File

@@ -0,0 +1,18 @@
# n-OS-tr service posture: only identity + firstboot + TUI start automatically.
# Optional services are loaded/installed but disabled by default.
enable n-os-tr-firstboot.service
enable nostr-id.service
enable nostr-id-tui.service
disable c-relay.service
disable ginxsom.service
disable fips.service
disable fips-dns.service
disable nginx.service
disable nostr-config-loader.service
disable nostr-config-writer.service
disable ssh.service
disable tor.service
enable nsigner.service
enable didactyl.service

View File

@@ -0,0 +1,3 @@
[Unit]
# If the TUI binary exists, do not start tty1 getty so tty1 is reserved for nostr-id-tui.
ConditionPathExists=!/usr/local/sbin/nostr-id-tui

View File

@@ -0,0 +1,3 @@
[Unit]
# If the service-menu binary exists, do not start tty2 getty so tty2 is reserved for nostr-id-tui services menu.
ConditionPathExists=!/usr/local/sbin/nostr-id-tui

View File

@@ -0,0 +1 @@
/etc/systemd/system/nostr-id-tui.service

View File

@@ -0,0 +1,23 @@
[Unit]
Description=n-OS-tr post-unlock service selection menu
After=nsigner.service
Wants=nsigner.service
Conflicts=getty@tty2.service
Before=getty@tty2.service
[Service]
Type=simple
ExecStartPre=/usr/bin/setterm -term linux -background blue -store
ExecStart=/usr/local/sbin/nostr-id-tui --mode=services-only
Restart=always
RestartSec=1
StandardInput=tty
StandardOutput=tty
StandardError=journal
TTYPath=/dev/tty2
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,23 @@
[Unit]
Description=n-OS-tr Nostr Identity TUI
Documentation=file:///usr/share/doc/n-os-tr/README
After=systemd-user-sessions.service network-online.target n-os-tr-firstboot.service
Wants=network-online.target n-os-tr-firstboot.service
Conflicts=getty@tty1.service
Before=getty@tty1.service
[Service]
Type=simple
ExecStart=/usr/local/sbin/nostr-id-tui
Restart=always
RestartSec=1
StandardInput=tty
StandardOutput=tty
StandardError=journal
TTYPath=/dev/tty1
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
[Install]
WantedBy=multi-user.target

Binary file not shown.

View File

@@ -0,0 +1 @@
/usr/lib/systemd/system/getty@.service

View File

@@ -0,0 +1 @@
/usr/lib/systemd/system/cron.service

View File

@@ -0,0 +1 @@
/etc/systemd/system/didactyl.service

View File

@@ -0,0 +1 @@
/usr/lib/systemd/system/e2scrub_reap.service

View File

@@ -0,0 +1 @@
/etc/systemd/system/n-os-tr-firstboot.service

View File

@@ -0,0 +1 @@
/usr/lib/systemd/system/networking.service

View File

@@ -0,0 +1 @@
/etc/systemd/system/nostr-id-tui-services.service

View File

@@ -0,0 +1 @@
/etc/systemd/system/nostr-id-tui.service

View File

@@ -0,0 +1 @@
/etc/systemd/system/nsigner.service

View File

@@ -0,0 +1 @@
/usr/lib/systemd/system/remote-fs.target

View File

@@ -0,0 +1 @@
/usr/lib/systemd/system/rsync.service

View File

@@ -0,0 +1 @@
/usr/lib/systemd/system/systemd-networkd.service

View File

@@ -0,0 +1 @@
/usr/lib/systemd/system/ifupdown-wait-online.service

View File

@@ -0,0 +1 @@
/usr/lib/systemd/system/networking.service

View File

@@ -0,0 +1 @@
/usr/lib/systemd/system/systemd-networkd-wait-online.service