/etc to /etc/writable/ that we need to update atomically. At the moment these are adjtime, timezone, localtime. (LP: #1227520)ubuntu/trusty
parent
1ea8bef4ca
commit
7e84ea20c6
@ -0,0 +1,14 @@
|
|||||||
|
#!/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
|
Loading…
Reference in new issue