Added a check for the games group and add it if it doesn't exist already. This shoul...
authorChris Gianelloni <wolf31o2@gentoo.org>
Mon, 17 Apr 2006 18:57:35 +0000 (18:57 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Mon, 17 Apr 2006 18:57:35 +0000 (18:57 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1109 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
targets/support/livecdfs-update.sh

index 70374ca724086a85bd8b3f572c06f60aca765400..6727dde7bf91769433573a60903cc5dba1973afc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.594 2006/04/13 13:14:05 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.595 2006/04/17 18:57:35 wolf31o2 Exp $
+
+  17 Apr 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+  targets/support/livecdfs-update.sh:
+  Added a check for the games group and add it if it doesn't exist already.
+  This should resolve bug #125498.
 
   13 Apr 2006; Chris Gianelloni <wolf31o2@gentoo.org>
   examples/generic_stage_template.spec, examples/grp_template.spec,
index 4aa1dafeaee3beab26aee19432226268fd093aec..681b7381e7b98804833e6e1c64ef3fefa659bb2e 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/livecdfs-update.sh,v 1.42 2006/04/04 15:54:53 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/livecdfs-update.sh,v 1.43 2006/04/17 18:57:35 wolf31o2 Exp $
 
 . /tmp/chroot-functions.sh
 
@@ -36,6 +36,12 @@ echo 'DNSDOMAIN="gentoo"' >> /etc/conf.d/domainname
 # Add any users
 if [ -n "${clst_livecd_users}" ]
 then
+       # Here we check to see if games exists for bug #125498
+       if [ "$(getent group games | cut -d: -f1`)" != "games" ]
+       then
+               echo "Adding games group"
+               groupadd -g 35 games
+       fi
        for x in ${clst_livecd_users}
        do
                useradd -G users,wheel,audio,games,cdrom,usb -c "Default LiveCD User" \