mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-06-06 07:32:22 +00:00
only touch /etc/writable/machine-info
This commit is contained in:
parent
a28790c6f9
commit
4b74aba181
@ -3,14 +3,12 @@ set -e
|
|||||||
set -x
|
set -x
|
||||||
|
|
||||||
mkdir -p /etc/writable
|
mkdir -p /etc/writable
|
||||||
|
touch /etc/writable/machine-info
|
||||||
|
|
||||||
for f in timezone localtime machine-info hostname; do
|
for f in timezone localtime machine-info hostname; do
|
||||||
if [ -e /etc/$f ]; then
|
if [ -e /etc/$f ]; then
|
||||||
echo "I: Moving /etc/$f to /etc/writable/"
|
echo "I: Moving /etc/$f to /etc/writable/"
|
||||||
mv /etc/$f /etc/writable/$f
|
mv /etc/$f /etc/writable/$f
|
||||||
else
|
|
||||||
echo "I: Creating /etc/writable/$f"
|
|
||||||
touch /etc/writable/$f
|
|
||||||
fi
|
fi
|
||||||
echo "I: Linking /etc/$f to /etc/writable/"
|
echo "I: Linking /etc/$f to /etc/writable/"
|
||||||
ln -s writable/$f /etc/$f
|
ln -s writable/$f /etc/$f
|
||||||
|
Loading…
x
Reference in New Issue
Block a user