[Bug 296129] Re: live Installer may rotate syslog during install and copy only a portion to /target/var/log/installer/syslog
Stéphane Graber
stgraber at stgraber.org
Tue Oct 2 21:49:50 UTC 2012
Moving back to ubiquity as we don't want to rotate logs for persistent sessions.
Instead ubiquity should stop logrorate before installing and start it again afterwards, easiest way to achieve this is to remove the executable bit from the logrotate binary.
** No longer affects: ubiquity
** Package changed: casper (Ubuntu) => ubiquity (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to casper in Ubuntu.
https://bugs.launchpad.net/bugs/296129
Title:
live Installer may rotate syslog during install and copy only a
portion to /target/var/log/installer/syslog
Status in “ubiquity” package in Ubuntu:
Triaged
Status in “ubiquity” source package in Precise:
Triaged
Bug description:
The Ubuntu Live CD includes the sysklogd package, which is used for
logging the install to /var/log/syslog. The syslog is copied to
/target/var/log/installer/syslog at the end of installation. The
sysklogd package installs a syslog rotation script into
/etc/cron.weekly/sysklogd which runs at 6:47 AM on Sunday. If an
install happens to span across this time, then the log gets rotated
during the install. As a result, the syslog that gets copied to
/target/var/log/installer/syslog doesn't contain the entire installer
log.
I'm seeing this in the intrepid installer. It may exist in previous
versions, but I didn't check. I'm not certain what component to file
the bug under, since it's a file from the sysklogd package that's
causing the problem, but the problem is specific only to the install
cd.
To reproduce, run an install when the computer's clock is going to
pass 6:47 AM on a sunday morning and observe the log file after the
install finishes. One would expect the see the entire installer log,
but in fact only sees the portion that occured after log rotation.
I propose that the live cd either does not rotate logs, or that log
rotation be disabled during an installation.
TEST CASE
1) Boot Live CD to Try Ubuntu
2) Adjust Date one day into the future
3) Execute 'sudo /etc/cron.daily/logrotate'
4) Observe 2 syslog files in /var/log/
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/296129/+subscriptions
More information about the foundations-bugs
mailing list