#495266 xen-tools: xen-create-image --accounts misnumbers user groups

#495266#5
Date:
2008-08-15 18:58:06 UTC
From:
To:
*** Please type your report below this line ***

I used "xen-create-image --accounts" to copy the user database from dom0
to the new domU.  The resulting domU has incorrect entries in /etc/group.

(following output massaged with sed to conceal names.)

dom0# egrep 'a1|a2|s1' /etc/{passwd,group}
/etc/passwd:a1:x:1000:1000:a1,,,:/home/a1:/bin/zsh
/etc/passwd:s1:x:1001:1001:s1,,,:/home/s1:/bin/bash
/etc/passwd:a2:x:1002:1002:a2,,,:/home/a2:/bin/bash
...
/etc/group:a1:x:1000:
/etc/group:s1:x:1001:
/etc/group:a2:x:1002:
dom0# xen-create-image --accounts \
       --admin=.. --output=... --dir=... --size=50G --swap=4G \
       --dist=sid --hostname=... --ip=...

domU% egrep 'a1|a2|s1' /etc/{passwd,group}
/etc/passwd:a1:x:1000:1000:a1,,,:/home/a1:/bin/zsh
/etc/passwd:a2:x:1002:1002:a2,,:/home/a2:/bin/bash
/etc/passwd:s1:x:1001:1001:s1,,:/home/s1:/bin/bash
...
/etc/group:a1:x:1000:a1
/etc/group:a2:x:1001:a2
/etc/group:s1:x:1004:s1
domU% egrep :100 /etc/group
users:x:100:
a1:x:1000:a1
a2:x:1001:a2
ntpd:x:1002:ntpd
postfix:x:1003:postfix
s1:x:1004:s1

Note that a2 is in group 1002 according to /etc/passwd, but
that group is ntpd according to /etc/group.

(Also, a cosmetic nit:  the added entries in /etc/passwd are
sorted alphabetically rather than by numeric uid.)

#495266#10
Date:
2009-09-22 10:01:36 UTC
From:
To:
Hi,

I created a small patch that fixes that bug (for debian DomUs, when
using other destributions, that bug might occur again, but the fix
should be as simply as for debian DomUs).

Best,
Michael

#495266#15
Date:
2009-12-27 09:29:12 UTC
From:
To:
You filled the bug http://bugs.debian.org/495266 in Debian BTS
against the package xen-tools. I'm closing it at *unstable*, but it will
remain open for older distributions.

For more information about this package's removal, read
http://bugs.debian.org/561667. That bug might give the reasons why
this package was removed and suggestions of possible replacements.

Don't hesitate to reply to this mail if you have any question.

Thank you for your contribution to Debian.