livecd-rootfs/live-build/ubuntu-touch/hooks/03-etc-writable.chroot
Iain Lane 808414beec Import patches-unapplied version 2.343 to ubuntu/wily-proposed
Imported using git-ubuntu import.

Changelog parent: 69a5210a5346c66ab135dad2cb19014094c2e1ab

New changelog entries:
  [ Oliver Grawert ]
  * add empty "extrausers" equivalents for subuid and subgid files, else
    adduser falls over in interactive mode when trying to write to them.
  [ Iain Lane ]
  * live-build/ubuntu-touch/hooks/03-etc-writable.chroot: Set up /etc/whoopsie
    too. (LP: #1437633)
2015-09-10 15:03:45 +00:00

16 lines
350 B
Bash
Executable File

#!/bin/sh
set -e
set -x
mkdir -p /etc/writable
touch /etc/writable/machine-info
for f in timezone localtime machine-info hostname whoopsie; 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