* live-build/ubuntu-core/hooks/00-uid-gid-fix.chroot_early:

- copy touch hacks to create needed userdirs (lightdm & usermetrics),
    the users are added by the script and not the usual postinst so their
    uderdirs are not created as they should
This commit is contained in:
Sebastien Bacher 2015-06-19 10:40:02 +02:00
parent eb41638781
commit 5fa4811051
2 changed files with 16 additions and 0 deletions

4
debian/changelog vendored
View File

@ -4,6 +4,10 @@ livecd-rootfs (2.317) UNRELEASED; urgency=medium
- create other needed directories
* live-build/ubuntu-desktop-next/includes.chroot:
- copy ubuntu-core's include for /etc/hosts and resolv.conf config
* live-build/ubuntu-core/hooks/00-uid-gid-fix.chroot_early:
- copy touch hacks to create needed userdirs (lightdm & usermetrics),
the users are added by the script and not the usual postinst so their
uderdirs are not created as they should
-- Sebastien Bacher <seb128@ubuntu.com> Fri, 19 Jun 2015 10:26:41 +0200

View File

@ -277,6 +277,18 @@ if [ -n "$ERRCNT" ]; then
exit 1
fi
# Create some missing directories
mkdir -p /var/lib/lightdm
chown lightdm:lightdm /var/lib/lightdm
chmod 750 /var/lib/lightdm
mkdir -p /var/lib/usermetrics
chown usermetrics:usermetrics /var/lib/usermetrics
chmod 750 /var/lib/usermetrics
echo "adjusting ownership of /var/log" >&2
chown root:syslog /var/log
ls -ln /var | grep log >&2
# Record the current state for later comparison
for file in /etc/passwd /etc/shadow /etc/group /etc/gshadow; do