livecd-rootfs/live-build/ubuntu-touch/hooks/03-etc-writable.chroot
Martin Pitt 553526f375 Import patches-unapplied version 2.191 to ubuntu/saucy-proposed
Imported using git-ubuntu import.

Changelog parent: 17d25fe43c40688f2d12a5c6d3604ca9a4869fa6

New changelog entries:
  * ubuntu-touch: Make writable symlinks relative.
  * 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 timezone and localtime. (LP: #1227520)
2013-09-30 12:23:19 +00:00

15 lines
286 B
Bash
Executable File

#!/bin/sh
set -e
set -x
mkdir -p /etc/writable
for f in 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 writable/$f /etc/$f
done