mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-05 07:41:31 +00:00
fix handling of writable files in /etc/default for snappy
This commit is contained in:
parent
952fa460d4
commit
81edee0431
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -2,6 +2,7 @@ livecd-rootfs (2.350) UNRELEASED; urgency=medium
|
|||||||
|
|
||||||
* bump UID for tss user in snappy, else it matches dnsmasq and bad things
|
* bump UID for tss user in snappy, else it matches dnsmasq and bad things
|
||||||
happen
|
happen
|
||||||
|
* fix handling of writable files in /etc/default for snappy
|
||||||
|
|
||||||
-- Oliver Grawert <ogra@ubuntu.com> Thu, 22 Oct 2015 11:34:34 +0200
|
-- Oliver Grawert <ogra@ubuntu.com> Thu, 22 Oct 2015 11:34:34 +0200
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
mkdir -p /etc/writable
|
mkdir -p /etc/writable/default
|
||||||
|
|
||||||
# cloud-init needs to be able to modify hostname and has the ability to
|
# cloud-init needs to be able to modify hostname and has the ability to
|
||||||
# set the other two.
|
# set the other two.
|
||||||
for f in timezone localtime hostname; do
|
for f in timezone localtime hostname watchdog.conf; 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
|
||||||
@ -13,3 +13,14 @@ for f in timezone localtime hostname; do
|
|||||||
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
|
||||||
done
|
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user