Pre-create some home directories

ubuntu/yakkety
Stéphane Graber 10 years ago
parent 372216dfa0
commit 83120c758c

8
debian/changelog vendored

@ -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 <stgraber@ubuntu.com> Fri, 26 Sep 2014 14:39:49 -0400
livecd-rootfs (2.246) utopic; urgency=medium livecd-rootfs (2.246) utopic; urgency=medium
* live-build/auto/config: Use ubuntukylin-live task for ubuntukylin, not * live-build/auto/config: Use ubuntukylin-live task for ubuntukylin, not

@ -244,6 +244,16 @@ else
exit 1 exit 1
fi 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 # Record the current state for later comparison
for file in /etc/passwd /etc/shadow /etc/group /etc/gshadow; do for file in /etc/passwd /etc/shadow /etc/group /etc/gshadow; do
rm -f ${file}- rm -f ${file}-

Loading…
Cancel
Save