boot-tree: portable unit, dracut and mkinitcpio hooks, self-quieting console, minimal NixOS module
This commit is contained in:
1 parent
2b1447965a
commit
1482d4437a
13 files changed
+208
-121
No files matched your search
@@ -0,0 +1 @@
|
||||
disable=SC2154
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
check() {
|
||||
require_binaries boot-tree || return 1
|
||||
return 255
|
||||
}
|
||||
|
||||
depends() {
|
||||
echo systemd
|
||||
}
|
||||
|
||||
install() {
|
||||
inst_binary boot-tree
|
||||
inst_simple "$systemdsystemunitdir/boot-tree.service"
|
||||
$SYSTEMCTL -q --root "$initdir" enable boot-tree.service
|
||||
}
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
build() {
|
||||
add_binary boot-tree
|
||||
add_systemd_unit boot-tree.service
|
||||
add_symlink /usr/lib/systemd/system/sysinit.target.wants/boot-tree.service \
|
||||
/usr/lib/systemd/system/boot-tree.service
|
||||
}
|
||||
|
||||
help() {
|
||||
cat <<HELP
|
||||
Shows a live dependency tree of systemd jobs while the initramfs boots.
|
||||
Requires the systemd hook; add sd-boot-tree after it in HOOKS.
|
||||
HELP
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=Live dependency tree of boot jobs
|
||||
DefaultDependencies=no
|
||||
IgnoreOnIsolate=yes
|
||||
After=systemd-vconsole-setup.service
|
||||
Before=display-manager.service shutdown.target
|
||||
Conflicts=shutdown.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=@/usr/bin/boot-tree @boot-tree
|
||||
StandardInput=tty
|
||||
StandardOutput=tty
|
||||
StandardError=journal
|
||||
TTYPath=/dev/tty12
|
||||
TTYReset=yes
|
||||
TTYVTDisallocate=no
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
||||
Reference in new issue
Block a user