mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-11 05:07:09 +00:00
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)
16 lines
350 B
Bash
Executable File
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
|