diff --git a/debian/changelog b/debian/changelog index 92818f9e..98ec755b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +livecd-rootfs (2.247) UNRELEASED; urgency=medium + + * live-build/ubuntu-touch/hooks/00-uid-gid-fix.chroot_early: + Create some directories which would otherwise go missing due to our + pre-created users. (LP: #1374553) + + -- Stéphane Graber Fri, 26 Sep 2014 14:39:49 -0400 + livecd-rootfs (2.246) utopic; urgency=medium * live-build/auto/config: Use ubuntukylin-live task for ubuntukylin, not diff --git a/live-build/ubuntu-touch/hooks/00-uid-gid-fix.chroot_early b/live-build/ubuntu-touch/hooks/00-uid-gid-fix.chroot_early index ca26e92a..b0b13c95 100755 --- a/live-build/ubuntu-touch/hooks/00-uid-gid-fix.chroot_early +++ b/live-build/ubuntu-touch/hooks/00-uid-gid-fix.chroot_early @@ -244,6 +244,16 @@ else 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 + # Record the current state for later comparison for file in /etc/passwd /etc/shadow /etc/group /etc/gshadow; do rm -f ${file}-