mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-15 21:01:47 +00:00
ubuntu-touch: Add 03-etc-writable.chroot hook to move/symlink files in
/etc to /etc/writable/ that we need to update atomically. At the moment these are adjtime, timezone, localtime. (LP: #1227520)
This commit is contained in:
parent
1ea8bef4ca
commit
7e84ea20c6
8
debian/changelog
vendored
8
debian/changelog
vendored
@ -1,3 +1,11 @@
|
|||||||
|
livecd-rootfs (2.190) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* ubuntu-touch: Add 03-etc-writable.chroot hook to move/symlink files in
|
||||||
|
/etc to /etc/writable/ that we need to update atomically. At the moment
|
||||||
|
these are adjtime, timezone, localtime. (LP: #1227520)
|
||||||
|
|
||||||
|
-- Martin Pitt <martin.pitt@ubuntu.com> Wed, 25 Sep 2013 11:06:03 +0200
|
||||||
|
|
||||||
livecd-rootfs (2.189) saucy; urgency=low
|
livecd-rootfs (2.189) saucy; urgency=low
|
||||||
|
|
||||||
* Explicitly add the ubuntu-desktop task to Edubuntu builds, so that any
|
* Explicitly add the ubuntu-desktop task to Edubuntu builds, so that any
|
||||||
|
14
live-build/ubuntu-touch/hooks/03-etc-writable.chroot
Executable file
14
live-build/ubuntu-touch/hooks/03-etc-writable.chroot
Executable file
@ -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…
x
Reference in New Issue
Block a user