Add hostname and machine-info to the writable paths, so that hostnamectl

can change them to create a sane default bluetooth device name.
This commit is contained in:
Your Name 2014-01-20 15:29:30 +01:00
commit b646083ad7
2 changed files with 9 additions and 1 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
livecd-rootfs (2.203) UNRELEASED; urgency=medium
* Add hostname and machine-info to the writable paths, so that hostnamectl
can change them to create a sane default bluetooth device name.
-- Chris Wayne <chris.wayne@canonical.com> Mon, 20 Jan 2014 15:25:29 +0100
livecd-rootfs (2.202) trusty; urgency=medium
* Add the minimal task to ubuntu-core to preserve brand consistency.

View File

@ -3,8 +3,9 @@ set -e
set -x
mkdir -p /etc/writable
touch /etc/writable/machine-info
for f in timezone localtime; do
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