mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-04-28 19:41:28 +00:00
* merge ubuntu-core system-image fixes from the PPA:
- add ubuntu-core-libs - add packages not (yet) in the ubuntu-core seed - fix resolv.conf - make timezone, localtime and hostname writable for cloud-init
This commit is contained in:
commit
f04d8577ab
10
debian/changelog
vendored
10
debian/changelog
vendored
@ -1,3 +1,13 @@
|
|||||||
|
livecd-rootfs (2.259) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
|
* merge ubuntu-core system-image fixes from the PPA:
|
||||||
|
- add ubuntu-core-libs
|
||||||
|
- add packages not (yet) in the ubuntu-core seed
|
||||||
|
- fix resolv.conf
|
||||||
|
- make timezone, localtime and hostname writable for cloud-init
|
||||||
|
|
||||||
|
-- Michael Vogt <michael.vogt@ubuntu.com> Wed, 29 Oct 2014 11:05:29 +0100
|
||||||
|
|
||||||
livecd-rootfs (2.258) vivid; urgency=medium
|
livecd-rootfs (2.258) vivid; urgency=medium
|
||||||
|
|
||||||
* collect changes to /etc/{passwd|shadow|group|gshadow} in the error output
|
* collect changes to /etc/{passwd|shadow|group|gshadow} in the error output
|
||||||
|
@ -343,10 +343,19 @@ case $PROJECT in
|
|||||||
if [ "$SUBPROJECT" = "system-image" ]; then
|
if [ "$SUBPROJECT" = "system-image" ]; then
|
||||||
OPTS="${OPTS:+$OPTS }--apt-recommends false"
|
OPTS="${OPTS:+$OPTS }--apt-recommends false"
|
||||||
add_task install ubuntu-core
|
add_task install ubuntu-core
|
||||||
# Only in
|
|
||||||
# ppa:ubuntu-foundations-team/ubuntu/ubuntu-core-system-image
|
# some workarounds because the seeds are not quite
|
||||||
# at the moment, and PPAs don't have tasks.
|
# corrent at the moment
|
||||||
add_package install click-systemd
|
add_package install dbus
|
||||||
|
add_package install libpam-systemd
|
||||||
|
case $ARCH in
|
||||||
|
i386|amd64)
|
||||||
|
add_package install grub-pc ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# contains the framework definition
|
||||||
|
add_package install ubuntu-core-libs
|
||||||
|
|
||||||
# universe needed for 'system-image-cli'
|
# universe needed for 'system-image-cli'
|
||||||
COMPONENTS='main restricted universe'
|
COMPONENTS='main restricted universe'
|
||||||
fi
|
fi
|
||||||
|
15
live-build/ubuntu-core/hooks/08-etc-writable.chroot
Normal file
15
live-build/ubuntu-core/hooks/08-etc-writable.chroot
Normal file
@ -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
|
|
1
live-build/ubuntu-core/includes.chroot/etc/resolv.conf
Symbolic link
1
live-build/ubuntu-core/includes.chroot/etc/resolv.conf
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
/run/resolvconf/resolv.conf
|
Loading…
x
Reference in New Issue
Block a user