Comment 8 for bug 290661

Revision history for this message
Manny Vindiola (serialorder) wrote :

Hi,

If you are talking about uml-utilities.init. It does contain code to create the directory if it does not exist.
23:UML_DIR=/var/run/uml-utilities
...
44: # create $UML_DIR if it doesn't exist (RAMRUN=yes in /etc/default/rcS)
45: if [ ! -d "$UML_DIR" ] ; then
46: mkdir -p $UML_DIR
47: chown uml-net:uml-net $UML_DIR

This error occurs specifically in the following instance:
1) Package is unpacked
2) System is rebooted or /var/run/uml-utilities is removed for some other reason
3) Package is configured

The postinst assumes that the directory exists however since /var is mounted as a tmpfs if a reboot occurs between unpacking and configuration then postinst will halt. I think the fix is in the correct place. See attached file for an example.

Regarding the patch, I was just following https://wiki.ubuntu.com/PackagingGuide/PatchSystems.
Can you clarify when the patch should be applied directly to debain versus when to use a patchsystem?
There was actually a small error in the patch so I can resend the corrected version when everything is hammered out.