Skip to content

Commit

Permalink
Initialize zsh caches so first startup on Live CD is faster
Browse files Browse the repository at this point in the history
  • Loading branch information
zeha committed Dec 13, 2024
1 parent 829bd42 commit 4a67846
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions etc/grml/fai/config/scripts/RELEASE/98-clean-chroot
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4a67846

Please sign in to comment.