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

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

 



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@xxxxxxxxxx>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.




[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux