I tried this %post:
Code:
%post
touch dvmItsDoingSomething
exec < /dev/tty4 > /dev/tty4
chvt 4
set -x
echo 1 HELLO THERE
echo 2 and again
echo 3 and again again
echo 4 This goes to a file > /kstest_output.log
echo 5 And did it work?
echo 6 Installation Complete
sleep 15
chvt 1
%end
And I can see that it does switch to VT4 and there is output from echo on the screen. Specifically:
Code:
1 HELLO THERE
2 and again
3 and again again
5 And did it work?
6 Installation Complete
But... after rebooting, there is no "kstest_output.log" file isn't anywhere on the drive. Neither was there the usual anaconda-log file nor the dvmItsDoingSomething file.
Further I tried adding "--log=test.log" to the %post line. In this case,
it did switch to VT4
No echo lines were output, and
again no log files created anywhere on the filesysytem
Could this be something with SELINUX?
The ks file specifically says "selinux --disabled". However, I note the output of VT4 shows:
Code:
DEBUG kernel: SELinux 2048 avtab bash slots, 294585 rules.
DEBUG kernal: SELinux 2048 avtab bash slots, 294585 rules.
DEBUG kernal: SELinux 2048 9 users, 12 rules 4142 types, 228 boots
DEBUG kernal: SELinux 81 classes, 294585 rules
which comes just before my echo output (when it works)
I tried putting 'sestatus' before the echo statements to see if it was enforcing, but then anaconda just stopped with none of my log output at all....