Loading src/syslite.cpp +2 −2 Changes for src/syslite.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -31,12 +31,12 @@ namespace syslite { // Configuration is compile-time (config.h). Hostname from /etc/hostname. // Register TTYs based on compiled-in count. // On a live ISO (squashfs boot), run the installer on tty1. bool liveMode = std::filesystem::exists("/usr/local/sbin/fenriros-install") bool liveMode = std::filesystem::exists("/usr/sbin/fenriros-install") && !std::filesystem::exists("/etc/fstab"); for (int i = 1; i <= _numTtys; ++i) { std::string dev = "/dev/tty" + std::to_string(i); if (i == 1 && liveMode) { _ttys.addTty(dev, "/usr/local/sbin/fenriros-install"); _ttys.addTty(dev, "/usr/sbin/fenriros-install"); } else { _ttys.addTty(dev); } Loading Loading
src/syslite.cpp +2 −2 Changes for src/syslite.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -31,12 +31,12 @@ namespace syslite { // Configuration is compile-time (config.h). Hostname from /etc/hostname. // Register TTYs based on compiled-in count. // On a live ISO (squashfs boot), run the installer on tty1. bool liveMode = std::filesystem::exists("/usr/local/sbin/fenriros-install") bool liveMode = std::filesystem::exists("/usr/sbin/fenriros-install") && !std::filesystem::exists("/etc/fstab"); for (int i = 1; i <= _numTtys; ++i) { std::string dev = "/dev/tty" + std::to_string(i); if (i == 1 && liveMode) { _ttys.addTty(dev, "/usr/local/sbin/fenriros-install"); _ttys.addTty(dev, "/usr/sbin/fenriros-install"); } else { _ttys.addTty(dev); } Loading