* live-build/ubuntu-core/hooks/01-setup_user.chroot:

- run with -e
ubuntu/yakkety
Michael Vogt 10 years ago
parent 6d34c7a9e9
commit e226eb6331

7
debian/changelog vendored

@ -1,3 +1,10 @@
livecd-rootfs (2.275+ppa3) vivid; urgency=low
* live-build/ubuntu-core/hooks/01-setup_user.chroot:
- run with -e
-- Michael Vogt <michael.vogt@ubuntu.com> Fri, 16 Jan 2015 18:28:10 +0100
livecd-rootfs (2.275+ppa2) vivid; urgency=medium
* live-build/ubuntu-core/hooks/04-configure_network.chroot: use

@ -1,16 +1,19 @@
#!/bin/sh -x
set -e
USER=ubuntu
UGID=1000
echo "I: creating default user $USER"
adduser --gecos $USER --disabled-login $USER --uid $UGID
adduser --gecos $USER --disabled-password $USER --uid $UGID
chown -R $UGID:$UGID /home/$USER
passwd -d $USER
echo "I: set user $USER password to $USER"
echo "$USER:$USER" | chpasswd
chown -R $UGID:$UGID /home/$USER
# Enable libnss-extrusers
sed -i 's/^group:.*compat/\0 extrausers/' /etc/nsswitch.conf
sed -i 's/^passwd:.*compat/\0 extrausers/' /etc/nsswitch.conf

Loading…
Cancel
Save