[Unit] Description=Setup local NVMe storage for K3s Documentation=file:///usr/local/bin/setup-node-storage # Run early, after devices are available but before container services After=local-fs.target systemd-udevd.service Before=containerd.service # Only run if not already mounted ConditionPathIsMountPoint=!/var/lib/containerd [Service] Type=oneshot ExecStart=/usr/local/bin/setup-node-storage RemainAfterExit=yes # Console access for interactive prompt StandardInput=tty TTYPath=/dev/tty1 TTYReset=yes # Generous timeout for user interaction (3 minutes) TimeoutStartSec=180 [Install] WantedBy=multi-user.target