From f9c8f65b7503928fee8d00ba4b56cdd36793919f Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 26 Jun 2022 14:26:32 +0300 Subject: disable systemd journal persistence on installer image for boot speed Sponsored-by: author --- installer-ansible.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/installer-ansible.yml b/installer-ansible.yml index fe7475a..a53d998 100644 --- a/installer-ansible.yml +++ b/installer-ansible.yml @@ -15,6 +15,18 @@ shell: | sed -i '/^root:[^:]*:/s//root::/' /etc/passwd + - name: "uninstall rsyslogd" + apt: + name: rsyslogd + state: absent + purge: yes + + - name: "make systemd journal volatile (non-persistent)" + lineinfile: + path: /etc/systemd/journald.conf + regexp: Storage= + line: Storage=volatile + - name: "create /root/.ssh" file: state: directory -- cgit v1.2.1