[Bug 1330799] [NEW] No --log option with %post sections
Hamilton Turner
hamiltont at gmail.com
Tue Jun 17 03:39:36 UTC 2014
Public bug reported:
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
** Affects: kickseed (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to kickseed in Ubuntu.
https://bugs.launchpad.net/bugs/1330799
Title:
No --log option with %post sections
Status in “kickseed” package in Ubuntu:
New
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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kickseed/+bug/1330799/+subscriptions
More information about the foundations-bugs
mailing list