projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7bb415b
)
user/root group
author
Peter Palfrader
<peter@palfrader.org>
Fri, 10 May 2013 12:27:45 +0000
(14:27 +0200)
committer
Peter Palfrader
<peter@palfrader.org>
Fri, 10 May 2013 12:27:45 +0000
(14:27 +0200)
modules/porterbox/files/setup-dchroot
patch
|
blob
|
history
diff --git
a/modules/porterbox/files/setup-dchroot
b/modules/porterbox/files/setup-dchroot
index
130feac
..
8458c60
100755
(executable)
--- a/
modules/porterbox/files/setup-dchroot
+++ b/
modules/porterbox/files/setup-dchroot
@@
-42,8
+42,10
@@
OPTIONS:
-c write config only
-d dir place where to build the chroot [${builddir:-$basedir}]
-f overwrite config and target tarball
-c write config only
-d dir place where to build the chroot [${builddir:-$basedir}]
-f overwrite config and target tarball
+ -g GROUPS groups that should have access to the schroot [$groupuser]
-k KEYRING use an alternate keyring [$keyring]
-p PERS use a different sbuild personality [$personality]
-k KEYRING use an alternate keyring [$keyring]
-p PERS use a different sbuild personality [$personality]
+ -r GROUPS groups that should have root in the schroot [$grouproot]
-s use sbuild compatible naming scheme
-u Ubuntu target
-h this help
-s use sbuild compatible naming scheme
-u Ubuntu target
-h this help
@@
-85,8
+87,8
@@
cat << EOF
description=[${name}] Debian $suite chroot for $arch
type=file
file=$target
description=[${name}] Debian $suite chroot for $arch
type=file
file=$target
-groups=
Debian,guest
-root-groups=
adm
+groups=
$groupuser
+root-groups=
$grouproot
source-groups=adm
source-root-groups=adm
EOF
source-groups=adm
source-root-groups=adm
EOF
@@
-138,10
+140,12
@@
keyring=/usr/share/keyrings/debian-archive-keyring.gpg
personality="dsa"
sbuildnames=""
ubuntu=""
personality="dsa"
sbuildnames=""
ubuntu=""
+groupuser="Debian,guest"
+grouproot="adm"
declare -a cleanup
trap do_cleanup EXIT
declare -a cleanup
trap do_cleanup EXIT
-while getopts "a:b:cd:f
hk:m:p
:su" OPTION
+while getopts "a:b:cd:f
g:hk:m:p:r
:su" OPTION
do
case $OPTION in
a)
do
case $OPTION in
a)
@@
-159,6
+163,9
@@
do
f)
force="1"
;;
f)
force="1"
;;
+ g)
+ groupuser="$OPTARG"
+ ;;
h)
usage
exit 0
h)
usage
exit 0
@@
-172,6
+179,9
@@
do
p)
personality="$OPTARG"
;;
p)
personality="$OPTARG"
;;
+ r)
+ grouproot="$OPTARG"
+ ;;
s)
sbuildnames="1"
;;
s)
sbuildnames="1"
;;