Anaconda: Only STDERR are logged into a file when using %post --log-file in Red Hat Enterprise Linux 6 or %post --log-file seems corrupted after installation

Solution Unverified - Updated -

Issue

  • I'd like to keep logging of all what's done in the kickstart %post install script.
  • All is logged well unless something is printed on standard error. Otherwise, whole previous output is lost and log is starting from this first message printed on stderr.
  • I don't want to redirect all commands with 2>&1.

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content