diff --git a/debian/changelog b/debian/changelog index 0d298cb1..8d869ec9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Fri, 19 Jun 2015 10:26:41 +0200 diff --git a/live-build/ubuntu-desktop-next/hooks/00-uid-gid-fix.chroot_early b/live-build/ubuntu-desktop-next/hooks/00-uid-gid-fix.chroot_early index cce63559..4f7fc896 100755 --- a/live-build/ubuntu-desktop-next/hooks/00-uid-gid-fix.chroot_early +++ b/live-build/ubuntu-desktop-next/hooks/00-uid-gid-fix.chroot_early @@ -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