-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for running fai inside a screen or tmux session
- Loading branch information
Showing
7 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule simple
updated
31 files
+4 −2 | basefiles/mk-basefile | |
+5 −6 | class/20-hwdetect.sh | |
+0 −2 | class/60-misc | |
+22 −1 | class/DEBIAN.var | |
+1 −1 | class/FAIBASE.var | |
+5 −5 | class/example.profile | |
+3 −3 | disk_config/CLOUD_EFI | |
+3 −0 | disk_config/FAIBASE | |
+8 −5 | disk_config/FAIBASE_EFI | |
+7 −7 | disk_config/FAISERVER_EFI | |
+2 −2 | disk_config/LVM | |
+4 −4 | disk_config/LVM_EFI | |
+3 −0 | disk_config/ROCKY | |
+1 −1 | files/etc/fai/nfsroot.conf/FAISERVER | |
+1 −1 | files/etc/rc.local/FAISERVER | |
+1 −0 | hooks/savelog.LAST.sh | |
+0 −5 | hooks/updatebase.DEBIAN | |
+10 −9 | package_config/DEBIAN | |
+3 −0 | package_config/ROCKY | |
+0 −6 | package_config/STANDARD | |
+11 −13 | package_config/UBUNTU | |
+0 −5 | scripts/CLOUD/99-cleanup | |
+1 −1 | scripts/DEBIAN/40-misc | |
+2 −2 | scripts/DEMO/10-misc | |
+35 −0 | scripts/FAIBASE/15-root-ssh-key | |
+1 −1 | scripts/FAISERVER/10-conffiles | |
+10 −0 | scripts/GRUB_EFI/10-setup | |
+10 −0 | scripts/GRUB_PC/10-setup | |
+10 −4 | scripts/LAST/50-misc | |
+1 −1 | scripts/ROCKY/30-mkinitrd | |
+56 −15 | scripts/ROCKY/60-network-scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#! /bin/bash | ||
|
||
# This script is part of FAI (Fully Automatic Installation) | ||
# (c) 2023 by Thomas Lange, lange@debian.org | ||
|
||
# start fai directly or inside screen or tmux | ||
|
||
. /usr/lib/fai/subroutines | ||
eval_cmdline | ||
define_fai_flags | ||
|
||
if [ X$flag_screen = X1 ]; then | ||
screen -S FAI /etc/init.d/rcS | ||
exec /etc/init.d/fai-abort | ||
elif [ X$flag_tmux = X1 ]; then | ||
tmux new-session -s FAI /etc/init.d/rcS | ||
exec /etc/init.d/fai-abort | ||
else | ||
exec /etc/init.d/rcS | ||
fi |