improve-bootstrap-visibility #29

Merged
torjus merged 11 commits from improve-bootstrap-visibility into master 2026-02-07 15:00:09 +00:00
Showing only changes of commit 11261c4636 - Show all commits

View File

@@ -2,12 +2,10 @@
let let
bootstrap-script = pkgs.writeShellApplication { bootstrap-script = pkgs.writeShellApplication {
name = "nixos-bootstrap"; name = "nixos-bootstrap";
runtimeInputs = with pkgs; [ systemd curl nixos-rebuild jq git ncurses ]; runtimeInputs = with pkgs; [ systemd curl nixos-rebuild jq git ];
text = '' text = ''
set -euo pipefail set -euo pipefail
# Clear screen and show bootstrap banner
clear
echo "================================================================================" echo "================================================================================"
echo " NIXOS BOOTSTRAP IN PROGRESS" echo " NIXOS BOOTSTRAP IN PROGRESS"
echo "================================================================================" echo "================================================================================"
@@ -110,11 +108,6 @@ in
Check status: journalctl -fu nixos-bootstrap Check status: journalctl -fu nixos-bootstrap
''; '';
# Disable getty on tty1 so bootstrap output is visible
systemd.services."getty@tty1" = {
enable = false;
};
systemd.services."nixos-bootstrap" = { systemd.services."nixos-bootstrap" = {
description = "Bootstrap NixOS configuration from flake on first boot"; description = "Bootstrap NixOS configuration from flake on first boot";
@@ -134,12 +127,9 @@ in
# Read environment variables from cloud-init (set by cloud-init write_files) # Read environment variables from cloud-init (set by cloud-init write_files)
EnvironmentFile = "-/run/cloud-init-env"; EnvironmentFile = "-/run/cloud-init-env";
# Output to tty1 for visibility on console # Log to journal and console
StandardOutput = "tty"; StandardOutput = "journal+console";
StandardError = "tty"; StandardError = "journal+console";
TTYPath = "/dev/tty1";
TTYReset = true;
TTYVHangup = true;
}; };
}; };
} }