Skip to content

Instantly share code, notes, and snippets.

@Temikus
Created November 30, 2014 10:49
Show Gist options
  • Save Temikus/a0b459b41568f37ecefa to your computer and use it in GitHub Desktop.
Save Temikus/a0b459b41568f37ecefa to your computer and use it in GitHub Desktop.
Kickstart post redirection to see progress
%post
# Change to a vt to see progress
exec < /dev/tty3 > /dev/tty3
chvt 3
# redirect output to ks-post.log including stdout and stderr
(
#######################################################
# Your postscripts go here
#######################################################
echo 'KS-post completed.'
) 2>&1 | /usr/bin/tee /root/ks-post.log
# switch back to gui
chvt 7
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment