livecd-rootfs/live-build/ubuntu-touch/hooks/03-etc-writable.chroot
2013-09-30 13:59:57 +02: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