gnomeos-run.sh: Only create /etc/passwd if we need to
Otherwise we blow away data from "adduser"
This commit is contained in:
parent
8020bf3c6c
commit
7f8c030541
|
|
@ -73,17 +73,18 @@ if ! test -d ostree; then
|
||||||
mkdir -p -m 0755 ./ostree/var/{log,run,tmp,spool}
|
mkdir -p -m 0755 ./ostree/var/{log,run,tmp,spool}
|
||||||
mkdir ostree/repo
|
mkdir ostree/repo
|
||||||
ostree --repo=ostree/repo init
|
ostree --repo=ostree/repo init
|
||||||
fi
|
|
||||||
cat >ostree/var/passwd << EOF
|
cat >ostree/var/passwd << EOF
|
||||||
root::0:0:root:/:/bin/sh
|
root::0:0:root:/:/bin/sh
|
||||||
dbus:*:1:1:dbus:/:/bin/false
|
dbus:*:1:1:dbus:/:/bin/false
|
||||||
gdm:*:2:2:gdm:/var/lib/gdm:/bin/false
|
gdm:*:2:2:gdm:/var/lib/gdm:/bin/false
|
||||||
EOF
|
EOF
|
||||||
cat >ostree/var/group << EOF
|
cat >ostree/var/group << EOF
|
||||||
root:*:0:root
|
root:*:0:root
|
||||||
dbus:*:1:
|
dbus:*:1:
|
||||||
gdm:*:2:
|
gdm:*:2:
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
cd ostree
|
cd ostree
|
||||||
ostree --repo=${OSTREE_REPO} local-clone repo ${BRANCH_PREFIX}runtime ${BRANCH_PREFIX}devel
|
ostree --repo=${OSTREE_REPO} local-clone repo ${BRANCH_PREFIX}runtime ${BRANCH_PREFIX}devel
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue