From 55f0b5fe7d263f113f5d0aa3d8c04266cc340180 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Thu, 6 Jan 2022 15:59:41 +0100 Subject: etc/ltsp/: Keep /root/.ssh while cleaning up nearly everything else in /root before SquashFS image creation. --- etc/ltsp/image-local.excludes | 16 ++++++++++++++++ etc/ltsp/ltsp.conf.in | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/etc/ltsp/image-local.excludes b/etc/ltsp/image-local.excludes index e69de29..10125cd 100644 --- a/etc/ltsp/image-local.excludes +++ b/etc/ltsp/image-local.excludes @@ -0,0 +1,16 @@ +# we want to keep root/.ssh, therefore we need to +# omit system-wide root/.* and exclude well-known +# files in /root/ manually... +root/.bash* +root/.cache* +root/.config* +root/.dbus* +root/.gnupg* +root/.lesshst +root/.local* +root/.profile* +root/.rpmdb* +root/.var* +root/.viminfo +root/.vim* +root/.wget* diff --git a/etc/ltsp/ltsp.conf.in b/etc/ltsp/ltsp.conf.in index e6c3380..5cb2466 100644 --- a/etc/ltsp/ltsp.conf.in +++ b/etc/ltsp/ltsp.conf.in @@ -19,7 +19,7 @@ SEARCH_DOMAIN=intern KERNEL_PARAMETERS="quiet splash" ADD_IMAGE_EXCLUDES="/etc/ltsp/image-local.excludes" -OMIT_IMAGE_EXCLUDES="root/.ssh/*" +OMIT_IMAGE_EXCLUDES="root/.*" [clients] -- cgit v1.2.3