mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-11 05:07:09 +00:00
- create device-azure.tar.gz during the build that includes the packages for the azure cloud * live-build/ubuntu-core/hooks/400-create-apt-get-warning.binary: - display helpful message to use snappy when a user tries to use apt-get on a snappy system * live-build/ubuntu-core/hooks/500-move-kernel-to-device-tar.binary: - do the device-azure.tar.gz extraction here * live-build/ubuntu-core/hooks/12-add-docker-user.chroot: - ensure docker group is used
19 lines
349 B
Bash
19 lines
349 B
Bash
#!/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
|