diff --git a/debian/changelog b/debian/changelog index 1aeb50f5..f5dcea26 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +livecd-rootfs (2.190) UNRELEASED; urgency=low + + * ubuntu-touch: Add 03-etc-writable.chroot hook to move/symlink files in + /etc to /etc/writable/ that we need to update atomically. At the moment + these are adjtime, timezone, localtime. (LP: #1227520) + + -- Martin Pitt Wed, 25 Sep 2013 11:06:03 +0200 + livecd-rootfs (2.189) saucy; urgency=low * Explicitly add the ubuntu-desktop task to Edubuntu builds, so that any diff --git a/live-build/ubuntu-touch/hooks/03-etc-writable.chroot b/live-build/ubuntu-touch/hooks/03-etc-writable.chroot new file mode 100755 index 00000000..8421cf4c --- /dev/null +++ b/live-build/ubuntu-touch/hooks/03-etc-writable.chroot @@ -0,0 +1,14 @@ +#!/bin/sh +set -e +set -x + +mkdir -p /etc/writable + +for f in adjtime timezone localtime; do + if [ -e /etc/$f ]; then + echo "I: Moving /etc/$f to /etc/writable/" + mv /etc/$f /etc/writable/$f + fi + echo "I: Linking /etc/$f to /etc/writable/" + ln -s /etc/writable/$f /etc/$f +done