Public bug reported:

Release: I observed the problem in Intrepid and Jaunty.
Package (for Jaunty): bootchart (0.9-0ubuntu14)

When there is no /var/log/bootchart directory, bootchart fails to create a png 
file inside this directory.
A possible condition for a non-existing /var/log/bootchart directory is when 
/var/log is mounted as a tmpfs. This is a common configuration for netbooks 
with a SSD. At each reboot, /var/log is wiped and of course the bootchart 
subdirectory doesn't exist any more.

Suggested fix:
Add the following to /etc/init.d/stop-bootchart

 # Where we drop charts
 CHARTS="/var/log/bootchart"
+mkdir -p $CHARTS

Alternative fix:

 # Where we drop charts
 CHARTS="/var/log/bootchart"
+if [ ! -d $CHARTS ]; then
+    mkdir -p $CHARTS
+fi

I leave it up to the package maintainer which of the two is the better solution.
It also doesn't matter when the directory is created, perhaps it is even better 
to create it inside the start) case?
As long as it exists before java is called to create the png, it is ok.

I suppose that this problem also exists upstream.
Do I have to report it myself upstream, or will this be done automatically?

** Affects: bootchart (Ubuntu)
     Importance: Undecided
         Status: New

-- 
png generation fails when /var/log/bootchart does not exist
https://bugs.launchpad.net/bugs/330910
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to