mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-10 04:37:29 +00:00
Imported using git-ubuntu import. Changelog parent: 5edb230a21e0360cdcd03a51dad9562219c9b1f5 New changelog entries: [ Oliver Grawert ] * bump UID for tss user in snappy, else it matches dnsmasq and bad things happen * fix handling of writable files in /etc/default for snappy [ Ben Howard ] * Cloud Images: disable new NIC naming convention (LP: #1510345).
27 lines
744 B
Bash
27 lines
744 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
mkdir -p /etc/writable/default
|
|
|
|
# cloud-init needs to be able to modify hostname and has the ability to
|
|
# set the other two.
|
|
for f in timezone localtime hostname watchdog.conf; 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
|
|
|
|
# do the same for /etc/default files
|
|
for f in watchdog; do
|
|
if [ -e /etc/default/$f ]; then
|
|
echo "I: Moving /etc/default/$f to /etc/writable/default"
|
|
mv /etc/default/$f /etc/writable/default/$f
|
|
fi
|
|
echo "I: Linking /etc/default/$f to /etc/writable/default"
|
|
ln -s /etc/writable/default/$f /etc/default/$f
|
|
done
|
|
|