No --log option with %post sections
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kickseed (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The %post section in RHEL has a --log option that kickseed does not support. Oddly enough, there should be a generic warning printed about this - kickseed/
I don't see that warning being printed - perhaps it's not showing up in /var/log/
Just for future testing, here are some cases that don't work:
%post --nochroot --log=/
echo 'Hello, World'
%end
%post --nochroot --log=/test2.log
echo 'Hello, World'
%end
%post --log=/
echo 'Hello, World'
%end
%post --log=/test4.log
echo 'Hello, World'
%end
%post
exec < /dev/tty3 > /dev/tty3
chvt 3
echo
echo "######
echo "# Running Post Configuration #"
echo "######
(
echo 'Hello, World!'
) 2>&1 | /usr/bin/tee /var/log/test5.log
chvt 1
%end
Also, the following does not work. I suspect I'm making some mistake here, as this should work just fine with the current kickseed codebase if I understand correctly. However this switching TTY stuff is new to me, so perhaps I'm mistaking something
%post --nochroot
exec < /dev/tty3 > /dev/tty3
chvt 3
echo
echo "######
echo "# Running Post Configuration #"
echo "######
(
echo 'Hello, World!'
) 2>&1 | /usr/bin/tee /target/test6.log
chvt 1
%end