[opensuse-autoinstall] opensuse 11.4: Order of packages to install
Hello, we install a 11.4-system with autoyast. Works nearly perfectly. But now, I have a problem and don't know how to solve it.... There are several packages which generate users with fixed IDs.And there is one package (not from us) which creates a user without a fixed ID. So the user gets the next free uid. In most cases it works, but sometimes the package with the random uid is installed before our packages with the fixed uid. In this case the uid already exists when our package is installed and yast shows an error and stops here....our user is not created. Which order are the packages installed? Are they installed randomly? Any Ideas how to solve it? Regards Daniel -- Daniel Spannbauer Software Entwicklung marco Systemanalyse und Entwicklung GmbH Tel +49 8333 9233-27 Fax -11 Rechbergstr. 4 - 6, D 87727 Babenhausen Mobil +49 171 4033220 http://www.marco.de/ Email ds@marco.de Geschäftsführer Martin Reuter HRB 171775 Amtsgericht München -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On 19.07.2012 15:38, Daniel Spannbauer wrote:
There are several packages which generate users with fixed IDs.And there is one package (not from us) which creates a user without a fixed ID. So the user gets the next free uid.
I'm afraid you can only install it in the 2nd stage then. Maybe there are some very strange solutions with a dummy RPM that somehow pushes the installation of the other RPM to the end but out of the head, I have no solution for that.
Which order are the packages installed? Are they installed randomly?
yes, more or less. The resolver must be happy of course but two RPMs that are totally independent from each other can be installed in any order. It's random. -- ciao, Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "Straftanz - Straftanz (Nord)" by Advanced Electronics -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On 07/19/2012 03:38 PM, Daniel Spannbauer wrote:
Hello,
we install a 11.4-system with autoyast. Works nearly perfectly. But now, I have a problem and don't know how to solve it....
There are several packages which generate users with fixed IDs.And there is one package (not from us) which creates a user without a fixed ID. So the user gets the next free uid. In most cases it works, but sometimes the package with the random uid is installed before our packages with the fixed uid. In this case the uid already exists when our package is installed and yast shows an error and stops here....our user is not created.
Which order are the packages installed? Are they installed randomly?
Any Ideas how to solve it?
Regards
Daniel
Run some script like #!/bin/sh cat >>/mnt/etc/group <<END userXYZ:!:500: END as postpartitioning.script. This works for me. Best regards Robert -- Robert Klein - Max Planck-Institut für Polymerforschung Ackermannweg 10 55128 Mainz -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On 07/19/2012 05:08 PM, Robert Klein wrote:
On 07/19/2012 03:38 PM, Daniel Spannbauer wrote:
Hello,
we install a 11.4-system with autoyast. Works nearly perfectly. But now, I have a problem and don't know how to solve it....
There are several packages which generate users with fixed IDs.And there is one package (not from us) which creates a user without a fixed ID. So the user gets the next free uid. In most cases it works, but sometimes the package with the random uid is installed before our packages with the fixed uid. In this case the uid already exists when our package is installed and yast shows an error and stops here....our user is not created.
Which order are the packages installed? Are they installed randomly?
Any Ideas how to solve it?
Regards
Daniel
Run some script like
#!/bin/sh cat >>/mnt/etc/group <<END userXYZ:!:500: END
as postpartitioning.script.
This works for me.
Umm, sorry, I just noticed my solution creates a group. I'd guess it could work with users, too, though. I needed a fixed group id, so I can assign user to the group in NIS. The original issue was similar to yours; a package created a non-fixed group ID. This changed depending on installation profile and I got different gids, e.g. 103, 104, and 107. Now, having the gid already in /etc/group the package doesn't (can't?) create the group again and all is shiny for me. Best regards Robert -- Robert Klein - Max Planck-Institut für Polymerforschung Ackermannweg 10 55128 Mainz -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
On Thu, Jul 19, 2012 at 03:38:46PM +0200, Daniel Spannbauer wrote:
Any Ideas how to solve it?
Put your rpm that does the random UID generation into <post-packages> I used that to solve issues related to timing with a custom rpm we build in house that creates some links (to support older EDA apps we need to support for our engineers) that would sometimes mkdir a path that a later rpm would see, and then move (or remove) the link that was already there. -- Mike Marion-Unix SysAdmin/Staff IT Engineer-http://www.qualcomm.com "It is commonly the case with technologies that you can get the best insight about how they work by watching them fail" - Neal Stephenson, "In the Beginning was the Command Line." -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org
participants (4)
-
Daniel Spannbauer
-
Mike Marion
-
Robert Klein
-
Uwe Gansert