Skip to content

Commit

Permalink
Merge pull request #208 from grml/zeha/zshstartuptime
Browse files Browse the repository at this point in the history
Initialize zsh caches so first startup on Live CD is faster
  • Loading branch information
zeha authored Dec 13, 2024
2 parents 8d05599 + f45341b commit 4726496
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 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,20 @@ $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}" --clear-groups --reset-env zsh -l -s -i

echo "Listing homedir of user root:"
ls -la "$target"/root
echo "Listing homedir of user ${USERNAME}:"
ls -la "$target"/home/"${USERNAME}"

# "assert" zcompdump was created.
echo "Checking existence of /root/.zcompdump and /home/${USERNAME}/.zcompdump"
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 4726496

Please sign in to comment.