Kickstart: How log and view %post? Method works in CentOS 5 but not CentOS 7

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

 



The following method has worked for years with CentOS 5, to allow
live viewing of %post output and also logging it.  It doesn't
work in CentOS 7.  What is the recommended method now?

# from kickstart text mode install

%post --erroronfail

chvt 3
exec < /dev/tty3 > /dev/tty3 2> /dev/tty3

tail -F /root/ks-post.log &
(

echo "Starting post-kickstart ..."

# ... various commands

echo "Done."
echo
echo "Do Alt-F1 and press Enter to reboot"

) >> /root/ks-post.log 2>&1

%end


_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list



[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