mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-11 05:07:09 +00:00
Imported using git-ubuntu import. Changelog parent: 17d25fe43c40688f2d12a5c6d3604ca9a4869fa6 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)
15 lines
286 B
Bash
Executable File
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
|