From 03764235e8eb8e2935b76d0bc19f151a5a178bc0 Mon Sep 17 00:00:00 2001 From: Chris Wayne Date: Mon, 6 Jan 2014 12:06:39 -0500 Subject: [PATCH 1/4] live-build/ubuntu-touch/hooks/03-etc-writable.chroot: Add /etc/machine-info to /etc/writable, which allows user to change the bluetooth device name by setting PRETTY_HOSTNAME --- live-build/ubuntu-touch/hooks/03-etc-writable.chroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-build/ubuntu-touch/hooks/03-etc-writable.chroot b/live-build/ubuntu-touch/hooks/03-etc-writable.chroot index 4fc2c6dc..7c854a81 100755 --- a/live-build/ubuntu-touch/hooks/03-etc-writable.chroot +++ b/live-build/ubuntu-touch/hooks/03-etc-writable.chroot @@ -4,7 +4,7 @@ set -x mkdir -p /etc/writable -for f in timezone localtime; do +for f in timezone localtime machine-info; do if [ -e /etc/$f ]; then echo "I: Moving /etc/$f to /etc/writable/" mv /etc/$f /etc/writable/$f From 2cc7d04ffd2553e2f143272729e6a5b9b4b13254 Mon Sep 17 00:00:00 2001 From: Chris Wayne Date: Mon, 13 Jan 2014 23:55:13 -0500 Subject: [PATCH 2/4] live-build/ubuntu-touch/hooks/03-etc-writable.chroot: Add hostname to the list of writable files --- live-build/ubuntu-touch/hooks/03-etc-writable.chroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/live-build/ubuntu-touch/hooks/03-etc-writable.chroot b/live-build/ubuntu-touch/hooks/03-etc-writable.chroot index 7c854a81..f0a14f3f 100755 --- a/live-build/ubuntu-touch/hooks/03-etc-writable.chroot +++ b/live-build/ubuntu-touch/hooks/03-etc-writable.chroot @@ -4,7 +4,7 @@ set -x mkdir -p /etc/writable -for f in timezone localtime machine-info; 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 From a28790c6f95e02468be8e951a4baf4a7bdaa2800 Mon Sep 17 00:00:00 2001 From: Chris Wayne Date: Mon, 20 Jan 2014 09:06:16 -0500 Subject: [PATCH 3/4] Touch file if it doesnt exist --- live-build/ubuntu-touch/hooks/03-etc-writable.chroot | 3 +++ 1 file changed, 3 insertions(+) diff --git a/live-build/ubuntu-touch/hooks/03-etc-writable.chroot b/live-build/ubuntu-touch/hooks/03-etc-writable.chroot index f0a14f3f..28756002 100755 --- a/live-build/ubuntu-touch/hooks/03-etc-writable.chroot +++ b/live-build/ubuntu-touch/hooks/03-etc-writable.chroot @@ -8,6 +8,9 @@ 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 + else + echo "I: Creating /etc/writable/$f" + touch /etc/writable/$f fi echo "I: Linking /etc/$f to /etc/writable/" ln -s writable/$f /etc/$f From 4b74aba181b2662e86abe83acafa2ada8d353967 Mon Sep 17 00:00:00 2001 From: Chris Wayne Date: Mon, 20 Jan 2014 09:22:18 -0500 Subject: [PATCH 4/4] only touch /etc/writable/machine-info --- live-build/ubuntu-touch/hooks/03-etc-writable.chroot | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/live-build/ubuntu-touch/hooks/03-etc-writable.chroot b/live-build/ubuntu-touch/hooks/03-etc-writable.chroot index 28756002..c58b4bdd 100755 --- a/live-build/ubuntu-touch/hooks/03-etc-writable.chroot +++ b/live-build/ubuntu-touch/hooks/03-etc-writable.chroot @@ -3,14 +3,12 @@ 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 - else - echo "I: Creating /etc/writable/$f" - touch /etc/writable/$f fi echo "I: Linking /etc/$f to /etc/writable/" ln -s writable/$f /etc/$f