mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-11 05:07:09 +00:00
Imported using git-ubuntu import. Changelog parent: 8d920803b00bef5b15a0315639a72f2338d6e490 New changelog entries: [ Michael Vogt ] * live-build/ubuntu-core/hooks/01-setup_user.chroot: - do not create "ubuntu" user for ubuntu-core anymore, the console-conf package will create this user now * live-build/ubuntu-core/hooks/02-add_user_to_groups.chroot - dropped [ Steve Langasek ] * live-build/ubuntu-cpc/hooks/042-vagrant.binary: fix unmount handling so that the teardown is done properly /before/ we try to make an image from our filesystem, since otherwise /etc/resolv.conf is broken. LP: #1621393.
25 lines
587 B
Bash
Executable File
25 lines
587 B
Bash
Executable File
#!/bin/sh -x
|
|
|
|
set -e
|
|
|
|
# There is no default user anymore, console-conf is responsible
|
|
# for creating one
|
|
|
|
# setup the required files for extrausers
|
|
for name in group gshadow passwd shadow subuid subgid; do
|
|
touch /var/lib/extrausers/$name
|
|
done
|
|
|
|
for name in gshadow shadow; do
|
|
chmod 640 /var/lib/extrausers/$name
|
|
chown root:shadow /var/lib/extrausers/$name
|
|
done
|
|
|
|
# Enable libnss-extrusers
|
|
sed -i 's/^group:.*compat/\0 extrausers/' /etc/nsswitch.conf
|
|
sed -i 's/^passwd:.*compat/\0 extrausers/' /etc/nsswitch.conf
|
|
sed -i 's/^shadow:.*compat/\0 extrausers/' /etc/nsswitch.conf
|
|
|
|
|
|
|