livecd-rootfs/live-build/ubuntu-touch/hooks/03-etc-writable.chroot
Chris Wayne ae76d5d754 Import patches-unapplied version 2.203 to ubuntu/trusty-proposed
Imported using git-ubuntu import.

Changelog parent: 3371bafe21afe9ba81dbd5d0fd9672440c5a0b89

New changelog entries:
  * Add hostname and machine-info to the writable paths, so that hostnamectl
    can change them to create a sane default bluetooth device name.
2014-01-20 14:53:17 +00:00

16 lines
341 B
Bash
Executable File

#!/bin/sh
set -e
set -x
mkdir -p /etc/writable
touch /etc/writable/machine-info
for f in timezone localtime machine-info hostname; 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