gnomeos: Add uid/group for dbus/gdm
This commit is contained in:
1 parent
d5def94b54
commit
8d36bad691
1 file changed
+10
-2
@@ -78,11 +78,19 @@ EOF
|
|||||||
ln -sf /var/run/resolv.conf ${IMAGE_ROOTFS}/etc/resolv.conf
|
ln -sf /var/run/resolv.conf ${IMAGE_ROOTFS}/etc/resolv.conf
|
||||||
|
|
||||||
# Override base-passwd...it has lots of crap in it we don't
|
# Override base-passwd...it has lots of crap in it we don't
|
||||||
# want, and we do want dbus.
|
# want, and we do want dbus/gdm etc.
|
||||||
cat >${IMAGE_ROOTFS}/var/passwd << EOF
|
cat >${IMAGE_ROOTFS}/etc/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
|
||||||
EOF
|
EOF
|
||||||
|
cat >${IMAGE_ROOTFS}/etc/group << EOF
|
||||||
|
root:*:0:root
|
||||||
|
dbus:*:1:
|
||||||
|
gdm:*:2:
|
||||||
|
EOF
|
||||||
|
mkdir ${IMAGE_ROOTFS}/var/lib/gdm
|
||||||
|
chown 2:2 ${IMAGE_ROOTFS}/var/lib/gdm
|
||||||
|
|
||||||
TOPROOT_BIND_MOUNTS="home root tmp"
|
TOPROOT_BIND_MOUNTS="home root tmp"
|
||||||
OSTREE_BIND_MOUNTS="var"
|
OSTREE_BIND_MOUNTS="var"
|
||||||
|
|||||||
Reference in new issue
Block a user