No --log option with %post sections

Bug #1330799 reported by Hamilton Turner
6
This bug affects 1 person
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/handlers/post.sh should pick up that --log is unrecognized and call warn_getopt %post.

I don't see that warning being printed - perhaps it's not showing up in /var/log/installer/syslog for some reason?

Just for future testing, here are some cases that don't work:

%post --nochroot --log=/target/test1.log
echo 'Hello, World'
%end

%post --nochroot --log=/test2.log
echo 'Hello, World'
%end

%post --log=/target/test3.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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.