From 4bcf3f6172eb790ef3953eb1b0a5372363ebaa26 Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Mon, 17 Apr 2006 18:57:35 +0000 Subject: [PATCH] Added a check for the games group and add it if it doesn't exist already. This should resolve bug #125498. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1109 d1e1f19c-881f-0410-ab34-b69fee027534 --- ChangeLog | 7 ++++++- targets/support/livecdfs-update.sh | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 70374ca7..6727dde7 100644 --- 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 + 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 examples/generic_stage_template.spec, examples/grp_template.spec, diff --git a/targets/support/livecdfs-update.sh b/targets/support/livecdfs-update.sh index 4aa1dafe..681b7381 100755 --- a/targets/support/livecdfs-update.sh +++ b/targets/support/livecdfs-update.sh @@ -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" \ -- 2.26.2