From 4a67846efc2f96a003929da4a43f6a2d385acae6 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Fri, 13 Dec 2024 14:14:25 +0100 Subject: [PATCH] Initialize zsh caches so first startup on Live CD is faster --- etc/grml/fai/config/scripts/RELEASE/98-clean-chroot | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/etc/grml/fai/config/scripts/RELEASE/98-clean-chroot b/etc/grml/fai/config/scripts/RELEASE/98-clean-chroot index 6e1bfa93..5e49726a 100755 --- a/etc/grml/fai/config/scripts/RELEASE/98-clean-chroot +++ b/etc/grml/fai/config/scripts/RELEASE/98-clean-chroot @@ -45,5 +45,14 @@ $ROOTCMD chown "${USERNAME}:${USERNAME}" "/home/${USERNAME}" echo "Syncing /home/${USERNAME}/ with data from /etc/skel/:" $ROOTCMD su -s /bin/sh "${USERNAME}" -c "rsync -Hav /etc/skel/ /home/${USERNAME}/" + +# Initialize zsh caches so first startup on Live CD is faster. +echo "exit" | $ROOTCMD zsh -l -s -i +echo "exit" | $ROOTCMD setpriv --reuid="${USERNAME}" --regid="${USERNAME}" --reset-env zsh -l -s -i +ls -la "$target"/root/ +ls -la "$target"/home/"${USERNAME}" +ls -la "$target"/root/.zcompdump +ls -la "$target"/home/"${USERNAME}"/.zcompdump + ## END OF FILE ################################################################# # vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2