The postinst script will fail if it is executed before Policykit was
ever started, because /var/run/PolicyKit won't exist yet, as /var/run is
on a tmpfs (I think, anyway. I've only had a chance to have a quick look
at it because I'm at work at the minute).

I'm confused why the postinst script needs to set ownership of a folder
that resides on a volatile filesystem anyway. This is handled by the
init script when it creates the folder at boot time (and the two aren't
consistent anyway - for example, the postinst script tries to set
ownership on /var/run/PolicyKit to root:polkituser, then the init script
sets it to polkituser:polkituser).

I think the postinst script should just start /etc/init.d/policykit and
let the init script create and set the ownership of /var/run/PolicyKit.

-- 
package policykit 0.9-1ubuntu2 failed to install/upgrade: 
https://bugs.launchpad.net/bugs/275355
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to