From e54d06a86c6b060c242b6fd3df31a6f35862bada Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Sat, 9 Feb 2008 01:47:00 +0000 Subject: [PATCH] We check for a plugdev group, add it if it doesn't exist, and make sure any users specified by livecd/users is in the group. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1294 d1e1f19c-881f-0410-ab34-b69fee027534 --- ChangeLog | 5 +++++ catalyst | 2 +- targets/support/livecdfs-update.sh | 9 +++++++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 04de4a35..7dde8a9e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 # $Id: $ + 09 Feb 2008; Chris Gianelloni catalyst, + targets/support/livecdfs-update.sh: + We check for a plugdev group, add it if it doesn't exist, and make sure any + users specified by livecd/users is in the group. + 09 Feb 2008; Chris Gianelloni arch/mips.py: Changing cobalt_n32 to use mipsel4_n32 as its inheritance point. Thanks to Stuart Longland for pointing this change out. diff --git a/catalyst b/catalyst index 25dc9ba7..3b9fc44b 100755 --- a/catalyst +++ b/catalyst @@ -39,7 +39,7 @@ def usage(): def version(): print "Catalyst, version "+__version__ - print "Copyright 2003-2007 Gentoo Foundation" + print "Copyright 2003-2008 Gentoo Foundation" print "Distributed under the GNU General Public License version 2\n" def parse_config(myconfig): diff --git a/targets/support/livecdfs-update.sh b/targets/support/livecdfs-update.sh index 2d07bd57..a5aec3cb 100755 --- a/targets/support/livecdfs-update.sh +++ b/targets/support/livecdfs-update.sh @@ -44,10 +44,15 @@ then echo "Adding games group" groupadd -g 35 games fi + if [ "$(getent group plugdev | cut -d: -f1)" != "plugdev" ] + then + echo "Adding plugdev group" + groupadd plugdev + fi for x in ${clst_livecd_users} do - useradd -G users,wheel,audio,games,cdrom,usb -c "Default LiveCD User" \ - -m ${x} + useradd -G users,wheel,audio,plugdev,games,cdrom,disk,floppy,usb \ + -c "Default LiveCD User" -m ${x} chown -R ${x}:users /home/${x} if [ -n "${clst_livecd_xdm}" -a -n "${clst_livecd_xsession}" ] then -- 2.26.2