mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-08-21 13:44:08 +00:00
Compare commits
3 Commits
ubuntu/mas
...
2.408.3
Author | SHA1 | Date | |
---|---|---|---|
|
d51fef0426 | ||
|
b0e649a83c | ||
|
caedaee057 |
25
debian/changelog
vendored
25
debian/changelog
vendored
@ -1,3 +1,28 @@
|
|||||||
|
livecd-rootfs (2.408.3) xenial-proposed; urgency=medium
|
||||||
|
|
||||||
|
[ Louis Zuckerman ]
|
||||||
|
* Fixes for vagrant box builder in ubuntu-cpc LP: #1565985
|
||||||
|
- Install virtualbox-guest-utils
|
||||||
|
- Don't disable default synced folder
|
||||||
|
- Don't set vm name
|
||||||
|
- Add cloud-init config to manage /etc/hosts LP: #1561250
|
||||||
|
|
||||||
|
-- Brian Murray <brian@ubuntu.com> Tue, 30 Aug 2016 13:17:55 -0700
|
||||||
|
|
||||||
|
livecd-rootfs (2.408.2) xenial; urgency=medium
|
||||||
|
|
||||||
|
* Switch ubuntu-gnome from using tasks to metapackages (LP: #1602035)
|
||||||
|
|
||||||
|
-- Adam Conrad <adconrad@ubuntu.com> Wed, 20 Jul 2016 01:46:41 -0600
|
||||||
|
|
||||||
|
livecd-rootfs (2.408.1) xenial; urgency=medium
|
||||||
|
|
||||||
|
* Rename old ubuntu-core tarballs to ubuntu-base, for consistency with
|
||||||
|
the changes already made to yakkety and the ubuntu-cdimage project.
|
||||||
|
LP: #1579950.
|
||||||
|
|
||||||
|
-- Steve Langasek <steve.langasek@ubuntu.com> Mon, 09 May 2016 17:00:19 -0700
|
||||||
|
|
||||||
livecd-rootfs (2.408) xenial; urgency=medium
|
livecd-rootfs (2.408) xenial; urgency=medium
|
||||||
|
|
||||||
* drop linux-firmware-raspi2, it does not actually contain driver
|
* drop linux-firmware-raspi2, it does not actually contain driver
|
||||||
|
@ -168,7 +168,7 @@ if [ "$PREINSTALLED" = "true" ] && [ "$SUBPROJECT" != "wubi" ]; then
|
|||||||
ubuntu-server)
|
ubuntu-server)
|
||||||
add_package live oem-config-debconf ubiquity-frontend-debconf
|
add_package live oem-config-debconf ubiquity-frontend-debconf
|
||||||
;;
|
;;
|
||||||
ubuntu-core|base|ubuntu-touch|ubuntu-pd|ubuntu-cpc|ubuntu-desktop-next)
|
ubuntu-core|ubuntu-base|base|ubuntu-touch|ubuntu-pd|ubuntu-cpc|ubuntu-desktop-next)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
add_package live oem-config-gtk ubiquity-frontend-gtk
|
add_package live oem-config-gtk ubiquity-frontend-gtk
|
||||||
@ -188,6 +188,7 @@ esac
|
|||||||
|
|
||||||
SIGNED_KERNEL_PACKAGE="linux-signed-generic"
|
SIGNED_KERNEL_PACKAGE="linux-signed-generic"
|
||||||
UNITY_HWE_HINTS="unity-settings-daemon notify-osd libqt4-sql-sqlite unity gnome-terminal"
|
UNITY_HWE_HINTS="unity-settings-daemon notify-osd libqt4-sql-sqlite unity gnome-terminal"
|
||||||
|
UBUNTUGNOME_HWE_HINTS="unity-settings-daemon- unity-control-center- libaccount-plugin-1.0-0- notification-daemon- libreoffice-style-elementary- libreoffice-style-human- libreoffice-style-breeze- curl- humanity-icon-theme- gnome-shell pinentry-curses"
|
||||||
|
|
||||||
case $PROJECT in
|
case $PROJECT in
|
||||||
ubuntu|ubuntu-dvd)
|
ubuntu|ubuntu-dvd)
|
||||||
@ -301,10 +302,11 @@ case $PROJECT in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
ubuntu-gnome)
|
ubuntu-gnome)
|
||||||
add_task install minimal standard ubuntu-gnome-desktop
|
add_package install ubuntu-minimal ubuntu-standard
|
||||||
|
add_package install ubuntu-gnome-desktop $UBUNTUGNOME_HWE_HINTS
|
||||||
LIVE_TASK='ubuntu-gnome-live'
|
LIVE_TASK='ubuntu-gnome-live'
|
||||||
case $ARCH in
|
case $ARCH in
|
||||||
amd64) add_package live linux-signed-generic ;;
|
amd64) add_package live $SIGNED_KERNEL_PACKAGE ;;
|
||||||
esac
|
esac
|
||||||
COMPONENTS='main restricted universe'
|
COMPONENTS='main restricted universe'
|
||||||
;;
|
;;
|
||||||
@ -413,6 +415,10 @@ case $PROJECT in
|
|||||||
OPTS="${OPTS:+$OPTS }--bootstrap-flavour=minimal"
|
OPTS="${OPTS:+$OPTS }--bootstrap-flavour=minimal"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
ubuntu-base)
|
||||||
|
OPTS="${OPTS:+$OPTS }--bootstrap-flavour=minimal"
|
||||||
|
;;
|
||||||
|
|
||||||
ubuntu-touch|ubuntu-pd)
|
ubuntu-touch|ubuntu-pd)
|
||||||
if [ "$PROJECT" = "ubuntu-touch" ]; then
|
if [ "$PROJECT" = "ubuntu-touch" ]; then
|
||||||
meta_package=ubuntu-touch
|
meta_package=ubuntu-touch
|
||||||
@ -557,7 +563,7 @@ case $ARCH in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
case $PROJECT in
|
case $PROJECT in
|
||||||
ubuntu-server|ubuntu-core|ubuntu-touch|ubuntu-pd)
|
ubuntu-server|ubuntu-core|ubuntu-base|ubuntu-touch|ubuntu-pd)
|
||||||
case $SUBPROJECT in
|
case $SUBPROJECT in
|
||||||
system-image)
|
system-image)
|
||||||
# keep the kernel for the system-image build
|
# keep the kernel for the system-image build
|
||||||
|
@ -1,22 +1,23 @@
|
|||||||
#!/bin/bash -eux
|
#!/bin/bash -ex
|
||||||
# vi: ts=4 noexpandtab
|
# vi: ts=4 noexpandtab
|
||||||
#
|
#
|
||||||
# Generate a generic Vagrant Box.
|
# Generate a generic Vagrant Box.
|
||||||
#
|
#
|
||||||
# Vagrant images are essentially nothing more than OVA's with extra-metadata.
|
# Vagrant images are essentially nothing more than OVA's with extra-metadata
|
||||||
|
# and some preinstalled packages.
|
||||||
#
|
#
|
||||||
# We can't use the OVA's for Vagrant since Vagrant uses SSH to modify the instance.
|
# We can't use the OVA's for Vagrant since Vagrant uses SSH to modify the
|
||||||
# This build step creates a cloud-config ISO so that Cloud-Init will configure
|
# instance. This build step creates a cloud-config ISO so that Cloud-Init
|
||||||
# the initial user, creates meta-data that tells Vagrant how to interact with
|
# will configure the initial user, creates meta-data that tells Vagrant how
|
||||||
# the cloud-init created users, and finally create the OVA.
|
# to interact with the cloud-init created users, and finally create the OVA.
|
||||||
#
|
#
|
||||||
# For this step, we re-use the VMDK's made in 040-vmdk-image.binary
|
# For this step, we make a deriviative of binary/boot/disk.ext4 and install
|
||||||
|
# some packages in it, convert it to a vmdk, and then assemble the vagrant
|
||||||
|
# box.
|
||||||
|
|
||||||
cur_d=${PWD}
|
cur_d=${PWD}
|
||||||
my_d=$(dirname $(readlink -f ${0}))
|
my_d=$(dirname $(readlink -f ${0}))
|
||||||
|
|
||||||
base_vmdk="livecd.ubuntu-cpc.disk1.vmdk"
|
|
||||||
|
|
||||||
case $ARCH in
|
case $ARCH in
|
||||||
amd64|i386) ;;
|
amd64|i386) ;;
|
||||||
*)
|
*)
|
||||||
@ -24,11 +25,6 @@ case $ARCH in
|
|||||||
exit 0
|
exit 0
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ ! -e ${base_vmdk} ]; then
|
|
||||||
echo "Did not find VMDK to produce Vagrant images."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
. /build/config/functions
|
. /build/config/functions
|
||||||
|
|
||||||
# Virtualbox is needed for making a small VMDK
|
# Virtualbox is needed for making a small VMDK
|
||||||
@ -37,7 +33,22 @@ apt-get -qqy install genisoimage qemu-utils
|
|||||||
# Lets be safe about this
|
# Lets be safe about this
|
||||||
box_d=$(mktemp -d)
|
box_d=$(mktemp -d)
|
||||||
seed_d=$(mktemp -d)
|
seed_d=$(mktemp -d)
|
||||||
trap "rm -rf ${box_d} ${seed_d}" EXIT
|
mount_d=$(mktemp -d)
|
||||||
|
|
||||||
|
create_derivative "disk" "vagrant" #sets ${derivative_img}
|
||||||
|
mount_disk_image ${derivative_img} ${mount_d}
|
||||||
|
|
||||||
|
cleanup_vagrant() {
|
||||||
|
umount_disk_image ${mount_d}
|
||||||
|
rm -rf ${box_d} ${seed_d} ${mount_d} ${derivative_img}
|
||||||
|
}
|
||||||
|
trap cleanup_vagrant EXIT
|
||||||
|
|
||||||
|
chroot ${mount_d} apt-get update
|
||||||
|
# virtualbox-guest-utils Recommends: virtualbox-guest-x11, which we want to
|
||||||
|
# avoid pulling into a cloud image.
|
||||||
|
chroot ${mount_d} apt-get install --no-install-recommends -y virtualbox-guest-utils
|
||||||
|
chroot ${mount_d} apt-get clean
|
||||||
|
|
||||||
# Used to identify bits
|
# Used to identify bits
|
||||||
suite=$(chroot chroot lsb_release -c -s)
|
suite=$(chroot chroot lsb_release -c -s)
|
||||||
@ -47,7 +58,7 @@ distro=$(chroot chroot lsb_release --id --short | tr [:upper:] [:lower:])
|
|||||||
# Get the VMDK in place
|
# Get the VMDK in place
|
||||||
prefix="${distro}-${suite}-${version}-cloudimg"
|
prefix="${distro}-${suite}-${version}-cloudimg"
|
||||||
vmdk_f="${box_d}/${prefix}.vmdk"
|
vmdk_f="${box_d}/${prefix}.vmdk"
|
||||||
cp ${base_vmdk} ${vmdk_f}
|
create_vmdk ${derivative_img} ${vmdk_f}
|
||||||
|
|
||||||
# Vagrant needs a base user. We either inject the well-known SSH key
|
# Vagrant needs a base user. We either inject the well-known SSH key
|
||||||
# or use password authentication. Both are ugly. So we'll use a password
|
# or use password authentication. Both are ugly. So we'll use a password
|
||||||
@ -70,6 +81,7 @@ cat > ${seed_d}/user-data <<END
|
|||||||
password: ${ubuntu_user_pass}
|
password: ${ubuntu_user_pass}
|
||||||
chpasswd: { expire: False }
|
chpasswd: { expire: False }
|
||||||
ssh_pwauth: True
|
ssh_pwauth: True
|
||||||
|
manage_etc_hosts: localhost
|
||||||
END
|
END
|
||||||
|
|
||||||
# Create the fake meta-data
|
# Create the fake meta-data
|
||||||
@ -111,15 +123,11 @@ Vagrant.configure("2") do |config|
|
|||||||
config.vm.base_mac = "${macaddr}"
|
config.vm.base_mac = "${macaddr}"
|
||||||
config.ssh.username = "ubuntu"
|
config.ssh.username = "ubuntu"
|
||||||
config.ssh.password = "${ubuntu_user_pass}"
|
config.ssh.password = "${ubuntu_user_pass}"
|
||||||
config.vm.synced_folder '.', '/vagrant', disabled: true
|
|
||||||
|
|
||||||
config.vm.provider "virtualbox" do |vb|
|
config.vm.provider "virtualbox" do |vb|
|
||||||
vb.name = "${prefix}"
|
|
||||||
vb.customize [ "modifyvm", :id, "--uart1", "0x3F8", "4" ]
|
vb.customize [ "modifyvm", :id, "--uart1", "0x3F8", "4" ]
|
||||||
vb.customize [ "modifyvm", :id, "--uartmode1", "file", File.join(Dir.pwd, "%s-console.log" % vb.name) ]
|
vb.customize [ "modifyvm", :id, "--uartmode1", "file", File.join(Dir.pwd, "${prefix}-console.log") ]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user