- add ubuntu-core-libs - add packages not (yet) in the ubuntu-core seed - fix resolv.conf - make timezone, localtime and hostname writable for cloud-initubuntu/yakkety
commit
f04d8577ab
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
mkdir -p /etc/writable
|
||||||
|
|
||||||
|
# cloud-init needs to be able to modify hostname and has the ability to
|
||||||
|
# set the other two.
|
||||||
|
for f in timezone localtime hostname; 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
|
@ -1,7 +0,0 @@
|
|||||||
#!/bin/sh -x
|
|
||||||
#---------------------------------------------------------------------
|
|
||||||
# this must be run as a binary hook (outside the chroot) since lb
|
|
||||||
# massages resolv.conf on finishing the chroot operations.
|
|
||||||
#---------------------------------------------------------------------
|
|
||||||
|
|
||||||
ln -fs /run/resolvconf/resolv.conf chroot/etc/resolv.conf
|
|
@ -0,0 +1 @@
|
|||||||
|
/run/resolvconf/resolv.conf
|
Loading…
Reference in new issue