You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
livecd-rootfs/live-build/ubuntu-touch/hooks/03-etc-writable.chroot

15 lines
299 B

#!/bin/sh
set -e
set -x
mkdir -p /etc/writable
for f in adjtime 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 /etc/writable/$f /etc/$f
done