Imported using git-ubuntu import.
Changelog parent: 17d25fe43c
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)
impish
parent
17d25fe43c
commit
553526f375
@ -0,0 +1,14 @@
|
||||
#!/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
|
Loading…
Reference in new issue