Imported using git-ubuntu import.
Changelog parent: 84e5eaf9ae0ac374e869d157b1cf8c660a0b1bdd
New changelog entries:
* Add back pollinate for minimal after it is removed due to a dependency
on vim-common. LP: #1779406.
Imported using git-ubuntu import.
Changelog parent: 8d6e24efc75872c5321ca41c8176be76736a452f
New changelog entries:
* snaps: Fixes for snap pre-seeding (LP: #1775710)
* Backport: Refactor functions out of ubuntu-cpc and ubuntu-server hooks.
* Add dependency on distro-info for snap preseeding
Imported using git-ubuntu import.
Changelog parent: ce664be75f887c57731d3c53089462f25c2de69f
New changelog entries:
* ubuntu-cpc: When performing a minimized build, don't generate artifacts
that won't boot with the linux-kvm kernel (LP: #1757223).
Imported using git-ubuntu import.
Changelog parent: 6be108d84763e754152b03b31ff01998edc673bb
New changelog entries:
* Don't ask for password and GECOS while creating vagrant user
(LP: #1569237)
* Added a "vagrant" user to the vagrant image in addition to the "ubuntu"
user, in accordance with the vagrant community's expectations (LP: #1569237)
Imported using git-ubuntu import.
Changelog parent: 4c3694d4a2b50dd2faa9ee66575645d5b3315179
New changelog entries:
* Sort and list dependencies nicely
* Depend on packages instead of installing them at run time
* Use xz -T4 instead of pxz.
Supported xz versions before 5.2 accept the -T4 option but ignore it.
Also depend on xz-utils instead of downloading pxz. (LP: #1701132)
Imported using git-ubuntu import.
Changelog parent: 118c6476a962cbdc0a61dd8384f65265a9cb8e98
New changelog entries:
[ Gary Wang ]
* Add the IMAGEFORMAT=none to support generating a single rootfs
(LP: #1730642)
[ Christopher Glass (Ubuntu) ]
* Backport "minimized round 2" changes from trunk to Xenial (LP: #1731492)
* Remove apt, debconf, dpkg cruft files from /var/cache and /var/lib in
all our livefses.
* Pass --cache false to lb config; otherwise we copy around caches of
.debs that are never used properly, and which prevent us from emptying
/var/cache/apt in images.
* When building minimized cloud images, remove various packages that we
don't want installed by default. Some are tools that aren't needed for
non-interactive use; some are libraries whose reverse-dependencies
will have already been removed; and one, open-vm-tools, should only be
included in images that are targeted to VMWare (which is not the case
for any of the current minimal images), rather than being included
directly in the cloud-image seed.
Imported using git-ubuntu import.
Changelog parent: 09a02366158f903528da1e2c083407c75a2f7a18
New changelog entries:
* Make sure to remove any initramfs that was generated in a minimized
image.
* divert /usr/bin/systemd-detect-virt as part of the grub diversions, so
that the grub kernel postinst hook is operational when we're building
in a container. LP: #1729034.
Imported using git-ubuntu import.
Changelog parent: 8cc7060c24b61c30d5f5dc4f224916f2c2f40132
New changelog entries:
[ Balint Reczey ]
* Use kvm kernel only on amd64.
* Make non-x86 minimized images consistent with x86 by not explicitly
installing the server task.
* Clean up dangling /boot/initrd.img symlink left behind on minimized
builds.
Imported using git-ubuntu import.
Changelog parent: d59199fe59fa2649ca5dccd2bc03df6de64d7274
New changelog entries:
* Now that grub-related diversions have been factored out in 2.466
instead of having bogus root=stuff arg generated in grub.cfg, it is
actually empty. Therefore update the sed command to make the arg in
the root= token optional. This should resolve non-booting livecd cpc
images.
[ Nishanth Aravamudan ]
* live-build/ubuntu-cpc/hooks/061-open-iscsi.chroot: generate iSCSI
Initiator Name at first iscsid run for cloud images to ensure it is
unique (LP: #1444992).
[ Steve Langasek ]
* Improve teardown_mountpoint to recursively find all submounts and
unmount them, instead of working from a hard-coded list. This makes
the code resilient against other submounts being added later, including
downstream. LP: #1721279.
* Also nuke the sleep / udevadm settle calls in the process, which should
never be required and slow down the builds.
* Fix a reference to an undefined variable in a script that's set -u.
* Use /bin/sh, not /bin/bash, for autopkgtest.
* debian/tests/default-bootstraps: minor adjustments to shell syntax,
syncing with artful where this originated.
[ Steve Langasek, Balint Reczey ]
* Introduce a new project-independent 'minimized' subproject
(LP: #1721261):
- omit ubuntu-minimal in favor of using only the minbase package set.
- boot directly by partuuid, avoiding the use of an initramfs.
- Bump needed live-build version which can build images without initrd
- drop man pages and most of the documentation from minimized images
(/usr/share/doc/*/copyright and changelog.Debian.gz files are still
kept)
- Add unminimize script for reverting minimization on a running system
- Mention unminimize script in motd
- Run autopkgtest for SUBPROJECT=minimized
- If we're using SUBPROJECT=minimized, and tzdata is not installed,
remove files that have been left behind. This is a workaround for a
bug that should be fixed in tzdata.
* Factor out grub-related diversions and use them consistently, so we
don't end up with wrong os-probe output in our grub.cfg.
[ Balint Reczey ]
* Mount using --make-rslave to ensure safe unmounts for rbind mounts
* When SUBPROJECT environment variable is not set assume it to be ""
Imported using git-ubuntu import.
Changelog parent: 803cf10633714ca2289646de61a9952a420232e0
New changelog entries:
[ Robert C Jennings ]
* Install udev before calls to udevadm
Imported using git-ubuntu import.
Changelog parent: d980e7008da283668653a90e6ee574b05dc19d74
New changelog entries:
[ Robert C Jennings ]
* live-build/ubuntu-cpc/functions: Add a function, teardown_mountpoint,
to reverse the work done in setup_mountpoint. Lack of this function
has forced users of setup_mountpoint to implement this separately
and the implementations have diverged. (LP: #1716992)
* live-build/ubuntu-cpc/functions: Remove umount_settle function.
The was only used where teardown_mountpoint was lacking.
Imported using git-ubuntu import.
Changelog parent: aee4e79c87bc904e07c71ea30b16055335d55ef7
New changelog entries:
* live-build/ubuntu-cpc/functions: call apt-get update in the chroot
after mounting a blank /var/lib/apt, so that further operations work
as expected; otherwise, 'apt-get purge ^grub-.*' fails on s390x because
no such packages are known to apt.
* live-build/ubuntu-cpc/hooks/030-root-tarball.binary: correct a missing
unmount of /var/{lib,cache}/apt on cleanup, detected via autopkgtests.
Imported using git-ubuntu import.
Changelog parent: 2473668b91bf1e0c83f8160377ba7de3364657b0
New changelog entries:
[ Mathieu Trudel-Lapierre ]
* Drop preloading of grub modules that are built into the grub signed
image. This is functionally a no-op, changed only to clean up the code.
[ Steve Langasek ]
* live-build/ubuntu-cpc/functions: mount tmpfs on /var/cache/apt and
/var/lib/apt, so we don't have to leave empty space in our derivative
images for packages that have been downloaded/installed/removed. This
normally isn't relevant for the installed system, since the root
filesystem will auto-expand in place on the target disk, but lets us
ship smaller images.
* live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary: call apt-get
update *before* installing packages, not after.
[ Colin Watson ]
* Mount and unmount /dev recursively, to cope with setups where there are
interesting bind-mounts under /dev (e.g. loop devices bind-mounted by
LXD). LP: #1716465.
[ Balint Reczey ]
* Fix suppression of kpartx error. LP: #1684090.
Imported using git-ubuntu import.
Changelog parent: eea56e02ae121482387ddc2206bc27de53f2627c
New changelog entries:
[ Balint Reczey ]
* Source ubuntu-cpc functions from the right place
* Use all config hooks from the proper place, not from /build/
* Add basic but configurable autopkgtest (LP: #1690440)
* sync before calling kpartx to let writing to loop devices finish
* wrap kpartx and trap spurious errors, to work around kpartx
unreliability.
Imported using git-ubuntu import.
Changelog parent: f4c4fa3fcc4b5a9fff8a56c4bb21dada6239c0a0
New changelog entries:
* live-build/ubuntu-cpc/hooks/999-extras.binary: Exit on first failure.
(LP: #1687752)
Imported using git-ubuntu import.
Changelog parent: af583de4a48845e6e00f199b4fc4eda3e7091efb
New changelog entries:
* Add `apt-get update` to ubuntu-cpc ppc64el builds so they use the new
sources.
Imported using git-ubuntu import.
Changelog parent: 7b0112eea72aa1b63afa8ea110f70b6442c544b9
New changelog entries:
[ Daniel Watkins ]
* Don't overwrite the default sources.list in cloud images.
* Replace sources.list generated using COMPONENTS with the sources.list from
an Ubuntu Server installation (i.e. with all components enabled, and all
deb-src lines commented). LP: #1513529.
[ Chris Glass ]
* Fix the manifest generation in OVA files so that ovf files don't have
double extensions. (LP: #1627931)
* Fix the OVF's metadata to include Ubuntu specific identifiers and
descriptions instead of the generic Linux ones. (LP: #1656293)
[ Daniel Watkins ]
* Add replace_grub_root_with_label function thereby consolidating multiple
uses of the same calls to sed.
[ Robert C Jennings ]
* ubuntu-cpc: Remove redundant copy of grub files. (LP: #1637290)
Imported using git-ubuntu import.
Changelog parent: 00897d2a2a5282c4639eb4b8f5f950e5c401e1ef
New changelog entries:
* live-build/ubuntu-cpc/hooks/042-vagrant.binary: fix unmount handling
so that the teardown is done properly /before/ we try to make an
image from our filesystem, since otherwise /etc/resolv.conf is broken.
LP: #1621393.
Imported using git-ubuntu import.
Changelog parent: 01521cefe4108a2a62c47eb2bdbc978a70f0ed20
New changelog entries:
[ Oliver Grawert ]
* live-build/ubuntu-core/hooks/25-create-generic-initrd.chroot:
kill the snappy os build if the initramfs-tools-ubuntu-core package
is not found
* make s390x known to the snappy builds
* skip kernel snap an device tarball builds for s390x and ppc64el
* drop listing of the device tarballs, this was only for debugging
[ Adam Conrad ]
* live-build/ubuntu-cpc/hooks/032-disk-image.binary: Install s390-tools
and sysconfig-hardware before we attempt to configure zipl.
Imported using git-ubuntu import.
Changelog parent: 3061756ecb64747bf12af0dc1b0db390717c07a6
New changelog entries:
[ Adam Conrad ]
* Remove obsolete pvr-omap4 special-casing to simplify configs.
[ Daniel Watkins ]
* Enable building of powerpc cloud images.
Imported using git-ubuntu import.
Changelog parent: 5bc52b48769f2082c67ad4d3b33ab4fb77ff04b8
New changelog entries:
[ Ben Howard ]
* live-build/ubuntu-cpc/hooks/042-vagrant.binary: scope serial device for
Virtualbox only.
[ Łukasz 'sil2100' Zemczak ]
* Update the debootstrap group and gshadow hashes for ubuntu-touch.
Imported using git-ubuntu import.
Changelog parent: 8027f4d9dfa5da2553557a5cb727f301166396ac
New changelog entries:
[ Ben Howard ]
* live-build/ubuntu-cpc/hooks/042-vagrant.binary: add serial device for
Vagrant images (LP: #1546108).
[ Daniel Watkins ]
* Refactor ubuntu-cpc hooks to hard-code producing an 'ext4' rootfs, which
is used outside of the livecd-rootfs build process (specifically for EC2
publication).
Imported using git-ubuntu import.
Changelog parent: 0ae1111c558c96f1ddd7b15e79e3c179301a7ac5
New changelog entries:
* live-build/ubuntu-cpc/hooks/999-cpc-fixes.chroot: Add fake_cloud_init
function to create a nocloud data source for cloud images that aren't
meant to be used on real clouds and use it by default on armhf+raspi2
Imported using git-ubuntu import.
Changelog parent: 80fddc56a2b4d6ed82dcce3ef56028b37e40705a
New changelog entries:
[ Michael Terry ]
* Change real name for phablet user to "Ubuntu" in ubuntu-touch.
[ Steve Langasek ]
* Drop BuildLiveCD from the examples; we now use launchpad-buildd to drive
livefs builds, so BuildLiveCD is obsolete and misleading.
* Add hooks to ubuntu-cpc to divert /bin/sync in the chroot and undivert it
at the end. This is a general-purpose change that should be applied to
all flavors and archs, but at the moment it's only needed on armhf+raspi2
to work around the raspberrypi2-firmware postinst calling sync, which is
actually warranted in the normal case.
* If a subarch is specified for a cloud image build, don't build rootfs
artifacts; these should come from the 'generic' build.
* Fix architecture handling in hooks. We know we're always being invoked
from a launchpad-buildd-like setup, which passes ARCH and SUBARCH in the
environment, because auto/config and auto/build both rely on this. So
don't scatter dpkg --print-architecture calls throughout, especially
when many of these are not cross-build-aware.
* Refactor ubuntu-cpc hooks to allow us to handle images where the root
partition should not be partition 1.
[ Ben Howard ]
* ubuntu-cpc: fix hooks/032-disk-image.binary call to
create_empty_partition, which requires five args due to "-u"
* ubuntu-cpc: in hooks/030-root-tarball.binary create /lib/modules to fix
(LP: 1543204).
[ Dimitri John Ledkov ]
* Do not remove linux-base, when purging all the linux-*, in the tarball
build. Otherwise ubuntu-minimal is removed, and things get crazy.
* Correct initrd.img symlink, kernel/hooks should actually produce the
right thing here, but meh.
* Chroot to execute zipl, because it's nice.
* Use the right loop device to install zipl onto.
[ Steve Langasek ]
* Refactor ubuntu-cpc hooks to always produce a 'plain' rootfs via
live-build and reuse this for the tarball, instead of lb_binary_rootfs
creating some artifact that we ignore / throw away.
* Initial support for raspi2 subarch.
* Import live-build/ubuntu-cpc/hooks/raspi2/mkknlimg from
https://github.com/raspberrypi/linux/blob/rpi-4.1.y/scripts/mkknlimg
and use it to install a bootable uboot.bin.
Imported using git-ubuntu import.
Changelog parent: 2ace5b787ba058c6de1803bd4d4ef825ebfea82d
New changelog entries:
[ Steve Langasek ]
* Refactor some non-idiomatic architecture handling in
live-build/ubuntu-cpc/hooks/999-cpc-fixes.chroot that also misidentifies
the architecture name for armhf.
[ Ben Howard ]
* ubuntu-cpc: add missing net.ifnames=0 for ppc64el disk images.
Imported using git-ubuntu import.
Changelog parent: b668a9f9f9048b0fa06523dc084d8fb308fcd9c5
New changelog entries:
[ Michael Vogt ]
* ubuntu-core:
- include the dpkg.list in the device tarball
- store /usr/share/snappy/dpkg.list manifest on the OS tarball
[ Dimitri John Ledkov ]
* ubuntu-cpc:
- exclude s390x from should_install_grub
[ Steve Langasek ]
* Refactor/reorder ubuntu-cpc support for consistency with other flavors,
so that subarch overrides can be applied correctly.
[ Ben Howard ]
* ubuntu-cpc:
- fixed loop setup due to change of kpartx output
- only use grub-install logic for Intel architectures
Imported using git-ubuntu import.
Changelog parent: 63154a9a2f35d29fb66f3b90ba72d76df4d14503
New changelog entries:
* Set timeout options so ppc64el cloud images don't display a grub boot
menu (matching the behaviour of other cloud images).
* Specify a regex to run-parts so that cloud image extra scripts are found
and executed.
Imported using git-ubuntu import.
Changelog parent: 601e67d4841f74f29d6e78d497bd6b950c1f1b42
New changelog entries:
* Install grub in ppc64el cloud images so they are bootable (LP: #1538610)
Imported using git-ubuntu import.
Changelog parent: b479b0b368b74e0c718f4d414f1cf7f696137362
New changelog entries:
* Produce OVA files for i386 cloud builds.
Imported using git-ubuntu import.
Changelog parent: fafd5d2e07ba316cbce81f78f3fd5b681e7cb523
New changelog entries:
[ Łukasz 'sil2100' Zemczak ]
* Fix the invalid path for the error message in 00-uid-gid-fix.chroot_early
for ubuntu-touch.
[ Michael Vogt ]
* live-build/ubuntu-core/hooks/11-remove-extra-packages.chroot:
- remove libicu52 hook
[ Daniel Watkins ]
* Enable building of s390x cloud images.
Imported using git-ubuntu import.
Changelog parent: c9470d78b1f5a1d37001234373d905f5c627c264
New changelog entries:
* ubunut-cpc:
- extendend hooks/functions to support creation of derivative images
including mounting images.
- added the ability to create qcow2 images in hooks/functions
- simplified loop clean-up in hooks/functions
- removed assumption that disk1.img would be built
- switched qcow2 generation to use hooks/functions function
Imported using git-ubuntu import.
Changelog parent: fc5a8afdab08a12e9b45b1d26b83b3d20f1684a9
New changelog entries:
* ubuntu-cpc:
- add devpts-live to hook builds
- add logic to settle the disks after UEFI builds
Imported using git-ubuntu import.
Changelog parent: 9ac850741cb5c111949cb40b971436c3524d495d
New changelog entries:
* Move building of all architecture-specific CPC artifacts into Launchpad
(LP: #1513754).
Imported using git-ubuntu import.
Changelog parent: 5edb230a21e0360cdcd03a51dad9562219c9b1f5
New changelog entries:
[ Oliver Grawert ]
* bump UID for tss user in snappy, else it matches dnsmasq and bad things
happen
* fix handling of writable files in /etc/default for snappy
[ Ben Howard ]
* Cloud Images: disable new NIC naming convention (LP: #1510345).
Imported using git-ubuntu import.
Changelog parent: 1aff015ce1318f1ae128d9b21d50fdb86b3b7bc8
New changelog entries:
* fix device.tar.gz generation for snappy
* lp:~ubuntu-on-ec2/livecd-rootfs/cpc2:
- build cloud based images using livecd-rootfs