refactor: reorganise flake, tests and repo tasks

This commit is contained in:
Willem Vanhulle committed 2026-10-21 12:12:49 +02:00
1 parent b93147c7a6
commit 794ca5a086
34 files changed
+670 -220

No files matched your search

+1
View File
@@ -0,0 +1 @@
disable=SC2154
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/bash
check() {
require_binaries bootvine || return 1
return 255
}
depends() {
echo systemd
}
install() {
inst_binary bootvine
inst_simple "$systemdsystemunitdir/bootvine.service"
if [[ -f /etc/bootvine.toml ]]; then
inst_simple /etc/bootvine.toml
fi
$SYSTEMCTL -q --root "$initdir" enable bootvine.service
}
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/bash
build() {
add_binary bootvine
add_systemd_unit bootvine.service
if [[ -f /etc/bootvine.toml ]]; then
add_file /etc/bootvine.toml
fi
add_symlink /usr/lib/systemd/system/sysinit.target.wants/bootvine.service \
/usr/lib/systemd/system/bootvine.service
}
help() {
cat <<HELP
Shows a live dependency tree of systemd jobs while the initramfs boots.
Requires the systemd hook; add sd-bootvine after it in HOOKS.
HELP
}
@@ -0,0 +1,17 @@
[Unit]
Description=Live dependency tree of shutdown jobs
DefaultDependencies=no
After=bootvine.service display-manager.service
[Service]
Type=simple
ExecStart=/usr/bin/bootvine --shutdown
StandardInput=tty
StandardOutput=tty
StandardError=journal
TTYPath=/dev/tty12
TTYReset=yes
TTYVTDisallocate=no
[Install]
WantedBy=shutdown.target
+19
View File
@@ -0,0 +1,19 @@
[Unit]
Description=Live dependency tree of boot jobs
DefaultDependencies=no
IgnoreOnIsolate=yes
Before=display-manager.service shutdown.target
Conflicts=shutdown.target
[Service]
Type=simple
ExecStart=@/usr/bin/bootvine @bootvine
StandardInput=tty
StandardOutput=tty
StandardError=journal
TTYPath=/dev/tty12
TTYReset=yes
TTYVTDisallocate=no
[Install]
WantedBy=sysinit.target