Repository : ssh://git@diktynna/doc
On branches: backup-redmine/2021-09-11,backup-redmine/2021-10-09,backup-redmine/2021-11-13,backup-redmine/2021-12-11,backup-redmine/2022-01-08,backup-redmine/2022-02-12,backup-redmine/2022-03-12,backup-redmine/2022-04-09,backup-redmine/2022-05-07,backup-redmine/2022-06-11,backup-redmine/2022-08-06,backup-redmine/2022-10-07,backup-redmine/2022-11-14,backup-redmine/2023-01-14,main
commit 327bfded210a33acd676e1bcd0b3cd6743d45955 Author: Sven Eckelmann sven@narfation.org Date: Sat Sep 4 00:44:40 2021 +0000
doc: open-mesh/Kernel_hacking_Debian_image: Keep logs + journald data in-memory under Debian bullseye
327bfded210a33acd676e1bcd0b3cd6743d45955 open-mesh/Kernel_hacking_Debian_image.textile | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/open-mesh/Kernel_hacking_Debian_image.textile b/open-mesh/Kernel_hacking_Debian_image.textile index 1e9ec23b..57ea404b 100644 --- a/open-mesh/Kernel_hacking_Debian_image.textile +++ b/open-mesh/Kernel_hacking_Debian_image.textile @@ -28,6 +28,7 @@ sudo systemd-nspawn -D debian apt update sudo systemd-nspawn -D debian apt install --no-install-recommends build-essential vim openssh-server less \ pkg-config libnl-3-dev libnl-genl-3-dev libcap-dev tcpdump rng-tools5 \ trace-cmd flex bison libelf-dev libdw-dev binutils-dev libunwind-dev libssl-dev libslang2-dev liblzma-dev libperl-dev +sudo systemd-nspawn -D debian apt remove rsyslog sudo systemd-nspawn -D debian systemctl enable fstrim.timer
sudo mkdir debian/root/.ssh/ @@ -55,6 +56,12 @@ sudo chmod a+x debian/etc/rc.local
sudo sed -i 's/^root:[^:]*:/root::/' debian/etc/shadow
+sudo mkdir -p debian/etc/systemd/journald.conf.d +cat << "EOF" | sudo tee debian/etc/systemd/journald.conf.d/storage.conf +[Journal] +Storage=volatile +EOF + ## optionally: allow ssh logins without passwords #cat << "EOF" | sudo tee debian/etc/ssh/sshd_config.d/local.conf #PermitRootLogin yes