#!/bin/bash #============================================================================ # Title : lab-firstboot # Description : Open a postinstall session on tty8 and run post-install # --------------------------------------------------------------------------- # Prevent openvt "could not deallocate" issue by redirecting stdin and stderr exec 1>/dev/null exec 2>/dev/null # Don't run if homelab is already installed test -f /etc/postinstall && exit openvt -c 8 -w -f -s /var/lib/misc/custom/post-install.sh sleep 15