[Pkg-opennebula-devel] Bug#681567: Bug#681567: opennebula-common: fails to install, purge, and install again
Damien Raude-Morvan
drazzib at drazzib.com
Sat Jul 28 21:21:16 UTC 2012
Hi gregor,
Le 28/07/2012 18:23, gregor herrmann a écrit :
> Control: tag 681567 + patch
>
> On Sat, 14 Jul 2012 12:42:03 +0200, Andreas Beckmann wrote:
>
>> during a test with piuparts I noticed your package failed to install,
>> remove+purge, and install again.
>
>> This is often a problem with the home directory of a system user:
>> the user is not deleted during purge (which is fine), but the home
>> directory is removed. Since the user already exists on the next
>> installation, adduser won't recreate the home.
>
> That's exactly the case here: in postrm/purge the user account is not
> deleted but just disabled; but the home directory is deleted. So at
> the second install the directory is not created.
>
> Since there's already a codepath to deal with an exisiting user, I
> suggest to (re)create the directory there --> attached patch.
>
> Any comments before I NMU?
I haven't had time, yet, to work on opennebula package recently but your
patch seems fine. Go fo NMU! I'll merge it back latter into git repository.
Cheers,
--
Damien
More information about the Pkg-opennebula-devel
mailing list