diff --git a/Makefile b/Makefile index fc5a007..b6946ec 100644 --- a/Makefile +++ b/Makefile @@ -13,10 +13,12 @@ SRCD := src SRC_QEMU_HOME := qemu SRC_QEMU_BIN := $(SRC_QEMU_HOME)/bin SRC_LAUNCHERSD := $(SRC_QEMU_HOME)/launchers +SRC_TMUX_CONF := $(SRC_QEMU_HOME)/tmux.conf # Actual qemu Unix user home QEMU_HOME := $(shell echo ~$(QEMU_USER)) QEMU_BIN := $(QEMU_HOME)/bin LAUNCHERSD := $(QEMU_HOME)/launchers +TMUX_CONF := $(QEMU_HOME)/.tmux.conf # Names of all qemush modules SRC_MODULES_NAMES := $(notdir $(wildcard $(SRC_QEMU_BIN)/*)) @@ -43,7 +45,7 @@ C_BINARIES := $(addprefix $(QEMU_BIN)/,$(SRC_C_SOURCES_NAMES)) QEMUSH_DIRS_NAMES := bin launchers disks QEMUSH_DIRS := $(addprefix $(QEMU_HOME)/,$(QEMUSH_DIRS_NAMES)) -install: $(QEMUSH_DIRS) $(MODULES) $(C_BINARIES) $(QEMUSH) $(LAUNCHERS) +install: $(QEMUSH_DIRS) $(MODULES) $(C_BINARIES) $(QEMUSH) $(LAUNCHERS) $(TMUX_CONF) $(QEMUSH_DIRS): $(SUDO_QEMU) mkdir -p $@ @@ -61,3 +63,6 @@ $(C_BINARIES): $(QEMU_BIN)%: $(SRCD)%$(SRC_FMT) $(LAUNCHERS): $(LAUNCHERSD)%: $(SRC_LAUNCHERSD)% $(SUDO_QEMU) install -m $(BINS_MODE) $^ $@ + +$(TMUX_CONF): $(SRC_TMUX_CONF) + $(SUDO_QEMU) install -m 640 $^ $@ diff --git a/qemu/tmux.conf b/qemu/tmux.conf new file mode 100644 index 0000000..86e4d73 --- /dev/null +++ b/qemu/tmux.conf @@ -0,0 +1,5 @@ +# Keep tmux sessions visible after exit +set -g remain-on-exit on + +# Override the nologin directive +set -g default-shell /bin/sh