[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: redirect Kickstart %post output to serial console/port



To capture the output of my %post section for logging, I do:

************************************************************************
%post
PATH=/usr/bin:/bin:/usr/sbin:/sbin
export PATH

########################################################################
# Create a sub-script so the output can be captured
# Must change "$" to "\$" and "`" to "\`" to avoid shell quoting
cat > /post-install <<EOF
# Post install stuff goes here
EOF

/bin/bash -x /post-install 2>&1 | tee /post-install.log

************************************************************************

You could easily make the last line:

bash -x /post-install 2>&1 | tee /dev/console

or even:

bash -x /post-install 2>&1 | tee /post-install.log | tee /dev/console

-- 
Chris Adams <cmadams hiwaay net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]