mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-03-15 13:21:15 +00:00
Core: drop live-build/ubuntu-core/hooks/12-add-docker-user.chroot and move
docker user creation to live-build/ubuntu-core/hooks/00-uid-gid-fix.chroot_early; add ubuntu user to docker group in live-build/ubuntu-core/hooks/02-add_user_to_groups.chroot. This fixes static uid/gid maps for docker user/group.
This commit is contained in:
parent
9bda91ee77
commit
29c976b326
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -5,6 +5,12 @@ livecd-rootfs (2.278) UNRELEASED; urgency=medium
|
||||
error message changed. Currently, the passwd/group checks weren't run.
|
||||
* live-build/ubuntu-touch/hooks/00-uid-gid-fix.chroot_early: also add input
|
||||
group.
|
||||
* Core: drop live-build/ubuntu-core/hooks/12-add-docker-user.chroot and move
|
||||
docker user creation to
|
||||
live-build/ubuntu-core/hooks/00-uid-gid-fix.chroot_early; add ubuntu user
|
||||
to docker group in
|
||||
live-build/ubuntu-core/hooks/02-add_user_to_groups.chroot. This fixes
|
||||
static uid/gid maps for docker user/group.
|
||||
|
||||
-- Loïc Minier <loic.minier@ubuntu.com> Wed, 04 Feb 2015 13:39:26 +0100
|
||||
|
||||
|
@ -40,6 +40,7 @@ systemd-timesync:x:103:108:systemd Time Synchronization,,,:/run/systemd:/bin/fal
|
||||
systemd-network:x:104:109:systemd Network Management,,,:/run/systemd/netif:/bin/false
|
||||
systemd-resolve:x:105:110:systemd Resolver,,,:/run/systemd/resolve:/bin/false
|
||||
systemd-bus-proxy:x:106:111:systemd Bus Proxy,,,:/run/systemd:/bin/false
|
||||
docker:x:107:113::/nonexistent:/bin/false
|
||||
EOF
|
||||
else
|
||||
echo "/etc/passwd post-debootstrap hash doesn't match record" >&2
|
||||
@ -74,6 +75,7 @@ systemd-timesync:*:16413:0:99999:7:::
|
||||
systemd-network:*:16413:0:99999:7:::
|
||||
systemd-resolve:*:16413:0:99999:7:::
|
||||
systemd-bus-proxy:*:16413:0:99999:7:::
|
||||
docker:*:16413:0:99999:7:::
|
||||
EOF
|
||||
else
|
||||
echo "/etc/shadow post-debootstrap hash doesn't match record" >&2
|
||||
@ -134,6 +136,7 @@ systemd-network:x:109:
|
||||
systemd-resolve:x:110:
|
||||
systemd-bus-proxy:x:111:
|
||||
input:x:112:
|
||||
docker:x:113:
|
||||
EOF
|
||||
else
|
||||
echo "/etc/group post-debootstrap hash doesn't match record" >&2
|
||||
@ -194,6 +197,7 @@ systemd-network:!::
|
||||
systemd-resolve:!::
|
||||
systemd-bus-proxy:!::
|
||||
input:!::
|
||||
docker:!::
|
||||
EOF
|
||||
else
|
||||
echo "/etc/gshadow post-debootstrap hash doesn't match record" >&2
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
USER=ubuntu
|
||||
|
||||
DEFGROUPS="sudo"
|
||||
DEFGROUPS="docker sudo"
|
||||
|
||||
echo "I: add $USER to ($DEFGROUPS) group(s)"
|
||||
usermod -a -G ${DEFGROUPS} ${USER}
|
||||
|
@ -1,18 +0,0 @@
|
||||
#!/bin/sh -x
|
||||
|
||||
# FIXME: add click hook for user creation
|
||||
|
||||
USER=docker
|
||||
|
||||
echo "I: creating docker user"
|
||||
|
||||
addgroup --system --quiet $USER
|
||||
adduser --system \
|
||||
--ingroup $USER \
|
||||
--disabled-login \
|
||||
--shell /bin/false \
|
||||
--no-create-home \
|
||||
$USER
|
||||
|
||||
# ensure that the ubuntu user has the right group
|
||||
adduser ubuntu docker
|
Loading…
x
Reference in New Issue
Block a user