1484 Commits

Author SHA1 Message Date
Philip Roche
004475ce66 fix: Mark grub-pc-bin as manual install to avoid autoremoval (LP: #2045418)
With amd64 build target calling `update-grub` no longer works and fails build with error

```
grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.
```

`/usr/lib/grub/i386-pc/modinfo.sh` is part of the grub-pc-bin package.

We are seeing this now on xenial as grub-pc-bin is now removed during build as part of fixing
bug https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2036195.

To resolve this we mark grub-pc-bin as manually installed so it is not autoremoved.

As we are running grub-install ourselves for a specific target we need to make sure to install that
target first which means this will not be solved by changing dependencies of the grub packages.
2023-12-04 12:50:18 +00:00
Steve Langasek
6e9e7754b6 The chroot tmpfs mount should only be /var/lib/apt/lists, not /var/lib/apt; the latter breaks changes to /var/lib/apt/extended_states. LP: #2036195.
(cherry picked from commit 1deccc2edd7f139b84a6cb3d0a4dfe5ebaff50c7)

# Conflicts:
#	debian/changelog
2023-10-19 18:27:20 +01:00
Robert C Jennings
f09ffc57a3
releasing package livecd-rootfs version 2.408.68 2021-04-10 05:28:51 -05:00
Gauthier Jolly
eef7feef4a
ubuntu-cpc: secure esp mountpoint (LP: #1881006)
Change mount option for ubuntu-cpc images from "defaults" to
"umask=0077". ESP partitions might contain sensitive data and
non-root users shouldn't have read access on it.
2021-03-18 10:19:02 +00:00
Dimitri John Ledkov
e77821bace
releasing package livecd-rootfs version 2.408.67 2021-02-10 13:00:54 +00:00
Dimitri John Ledkov
2d81daa76f
releasing package livecd-rootfs version 2.408.66 2021-02-09 01:18:21 +00:00
Dimitri John Ledkov
e1fd5415df
Merge branch 'dk/xenial-buildd-unpack-kernel-initrd' of git+ssh://git.launchpad.net/~davidkrauser/livecd-rootfs/+git/livecd-rootfs into ubuntu/xenial 2021-02-09 01:16:01 +00:00
David Krauser
c1a71f933b Produce buildd kernel and initrd as separate artifacts
Multipass on Mac OS X requires standalone kernel and initrd artifacts
to boot.

Also call update-initramfs on all installed kernels. We only have one
kernel installed, so we don't need to specify an explicit version.
2021-01-08 14:58:25 -05:00
Robert C Jennings
5609e89ffe
release package livecd-rootfs version 2.408.65 2020-12-15 11:11:24 -06:00
Joshua Powers
22e7194442
release package livecd-rootfs version 2.408.65 2020-12-04 13:33:03 -08:00
Robert C Jennings
edc6ca4708
Merge xenial-grub-add-signed into ubuntu/xenial [a=powersj] [r=rcj]
amd64: always install grub-efi-amd64-signed

shim-signed does not depend on grub-efi-amd64-signed in Xenial.
Historically, Xenial did not always ship with signatures. This is
different than LTSes after Xenial where this is the case. A future SRU
for grub should change this, but for now ensure to install the signed
package so that secure boot systems can actually boot.

MP: https://code.launchpad.net/~powersj/livecd-rootfs/+git/livecd-rootfs-1/+merge/394769
2020-12-02 13:12:01 -06:00
Joshua Powers
57b5d78989
release package livecd-rootfs version 2.408.64 2020-12-02 10:45:24 -08:00
Robert C Jennings
c7ec9b7fbd
releasing package livecd-rootfs version 2.408.63 2020-11-20 15:55:19 -06:00
Robert C Jennings
18844ea566
Merge xenial-open-vm-tools-update into ubuntu/xenial [a=jchittum] [r=]
Backport vmtools version in vmdk (LP: #1893898)

Backport
LP: #1893898 describes missing vmtools version from the vmdk headers.
The version should be added as ddb.toolsVersion = "2147483647" however
the sed was no longer replacing a ddb.comment field with the tools
version. Rather than subbing ddb.comment with toolsVersion, this commit
deletes ddb.comment (which the comment mentions could cause errors),
and adds the correct value. There was no visibility into the descriptor
during hook creation, so debug statements were added. This allows us to
quickly verify in the logs that bad statements are removed (the possibly
offending comments), as well as ensuring that the toolsVersion is added

MP: https://code.launchpad.net/~jchittum/livecd-rootfs/+git/livecd-rootfs/+merge/394145
2020-11-20 15:54:37 -06:00
Robert C Jennings
55ac4fd1b5
releasing package livecd-rootfs version 2.408.62 2020-11-20 15:28:38 -06:00
Robert C Jennings
98238df82a
Merge xenial-sru-grub into ubuntu/xenial [a=powersj] [r=patviafore,rcj]
SRU always install grub-pc with shim-signed (LP: #1901906), and ensure to autoremove packages

MP: https://code.launchpad.net/~powersj/livecd-rootfs/+git/livecd-rootfs-1/+merge/393733
2020-11-20 15:26:53 -06:00
Robert C Jennings
4144105767
Merge vagrant_40_gb_xenial into ubuntu/xenial [a=patviafore] [r=rcj]
Make Ubuntu Vagrant box 40G. (LP: #1580596)

Vagrant images were previously put at 10G, but this was a regression
from Trusty, in which they were 40G. This made it a tough sell for
users to upgrade if they were using a Ubuntu desktop experience.

This change does not impact disk usage as Vagrant with the virtualbox
provider dynamically allocates space with the VMDK. On a test system,
the VMDK took up 1.1G of disk space according to df, and after
creating a 2G file in Vagrant, the VMDK grew to 3.1G.

Therefore, users who are running on a system with little free space will
not see adverse effects if they upgrade to a new vagrant image

MP: https://code.launchpad.net/~patviafore/livecd-rootfs/+git/livecd-rootfs/+merge/384636
2020-11-20 15:25:51 -06:00
Robert C Jennings
51b616f991
Merge tarball-transform into ubuntu/xenial [a=codyshepherd] [r=rcj,vorlon]
Bring tarball and rootfs hooks in line with bionic+, and allow for ext4 image format to be built without breaking tarballs. LP: #1863024

MP: https://code.launchpad.net/~codyshepherd/livecd-rootfs/+git/livecd-rootfs/+merge/392066
2020-11-20 15:25:07 -06:00
John Chittum
c6c61282bd
Open and update changelog
Open new xenial release and add changelog line
2020-11-18 13:25:35 -06:00
Joshua Powers
b9021b56df
releasing package livecd-rootfs version 2.408.62 2020-11-13 09:24:37 -08:00
Steve Langasek
02ea8c9398 releasing package livecd-rootfs version 2.408.61 2020-10-06 12:56:47 -07:00
Cody Shepherd
c440245dba
Update changelog 2020-10-06 10:22:06 -07:00
Steve Langasek
33328cc7ed releasing package livecd-rootfs version 2.408.60 2020-09-16 13:41:32 -07:00
Steve Langasek
18bd95f937 Changelog 2020-09-16 13:41:03 -07:00
Pat Viafore
4e18eab233
Make Ubuntu Vagrant box 40G. (LP: #1580596)
Vagrant images were previously put at 10G, but this was a regression
from Trusty, in which they were 40G.  This made it a tough sell for
users to upgrade if they were using a Ubuntu desktop experience.

This change does not impact disk usage as Vagrant with the virtualbox
provider dynamically allocates space with the VMDK.  On a test system,
the VMDK took up 1.1G of disk space according to df, and after
creating a 2G file in Vagrant, the VMDK grew to 3.1G.

Therefore, users who are running on a system with little free space will
not see adverse effects if they upgrade to a new vagrant image
2020-05-26 09:47:05 -05:00
Robert C Jennings
8789997c4b
Backport snap preseed base support (LP: #1874834)
Xenial builds with core18-based snaps pre-seed core snap instead core18
and snapd.  This patch is a backport of snap pre-seeding functionality
that is snap base aware.
2020-04-24 11:31:23 -05:00
Brian Murray
2738ffc1b3 Merge remote-tracking branch 'rcj/feature/snap_cohort_key-xenial' into ubuntu/xenial 2020-03-06 01:23:33 -08:00
Robert C Jennings
ace52c572b
Use a snap cohort key for consistent parallel builds (LP: #1866159) 2020-03-05 08:21:47 +01:00
Michael Hudson-Doyle
9e58a0d403 releasing package livecd-rootfs version 2.408.57 2019-12-19 22:42:31 +13:00
Michael Hudson-Doyle
d70309b7e0 Preserve apt preferences created by any package we install (i.e. ubuntu-advantage-tools) against live-build's attempt to delete them. (LP: #1855354) 2019-12-19 15:47:26 +13:00
Łukasz 'sil2100' Zemczak
1f4b996077 releasing package livecd-rootfs version 2.408.56 2019-10-30 17:31:37 +01:00
Łukasz 'sil2100' Zemczak
baf2b5bcdd Backport enabling of adding extra snaps to ubuntu-core images via the EXTRA_SNAPS environment 2019-10-30 17:30:10 +01:00
Adam Conrad
2a5370e7b6 releasing package livecd-rootfs version 2.408.55 2019-10-08 16:05:46 -06:00
Robert C Jennings
53e8eeaee3
magic-proxy: dump proxy log to stdout on failure (LP: #1847300)
When we encounter a failure in 'lb binary' the launchpad builders can
only surface the build output from stdout.  If the binary hook failure
implicates the archive we can not determine fault without the apt
proxy log.  This patch will dump the proxy log to stdout to aid in
debugging these failures.
2019-10-08 11:02:30 -05:00
Colin Watson
24e1ea3bc2 releasing package livecd-rootfs version 2.408.54 2019-09-26 10:54:28 +01:00
Colin Watson
27ef9b07b4 Fix /dev/ptmx rather than excluding makedev
Revert exclusion of makedev from buildd chroots, as it turned out not to
be the problem.  Instead, fix up /dev/ptmx to be a character device node
rather than a symlink to /dev/pts/ptmx, in line with the discussion in
https://bugs.debian.org/817236; I think this is safer than
cherry-picking the fix to debootstrap at this point in a stable release
cycle.

LP: #1844504
2019-09-26 10:32:04 +01:00
Colin Watson
684c0c6888 releasing package livecd-rootfs version 2.408.53 2019-09-24 15:06:16 +01:00
Colin Watson
6049019a8b Fix exclusion of makedev from buildd chroots
debootstrap doesn't respect --exclude for "Priority: required" packages,
so we have to purge makedev later.

LP: #1844504
2019-09-24 14:31:40 +01:00
Colin Watson
ca8e2b2c7b releasing package livecd-rootfs version 2.408.52 2019-09-18 11:02:33 +02:00
Colin Watson
ca945b9a34 Add reference to LP: #1844504 2019-09-18 10:59:24 +02:00
Colin Watson
566b3f3a3e Exclude makedev from buildd chroots
It was historically excluded, and apparently breaks some builds (e.g.
mir).
2019-09-17 13:42:33 +02:00
Łukasz 'sil2100' Zemczak
badff9dcb7 releasing package livecd-rootfs version 2.408.51 2019-09-12 10:52:02 +02:00
Robert C Jennings
9bea8296ee
ubuntu-cpc: Only produce explicitly named artifacts (LP: #1837254)
In parallel builds where a list of image targets are provided the build
may produce binaries that are not part of the named set of targets but
are created by series dependencies.  These implicitly created binaries
may be generated by multiple builds but are unused as our convention for
the ubuntu-cpc project is to only consume binaries from the explicitly
named image targets; this avoid overwriting the same object by multiple
parallel builds.

This patch adds support for a 'provides' keyword for series files. It can
be specified multiple times per series file.  The field is used by the
make-hooks script to generate a list of output files created explicitly by
the named image targets.  The list is saved to the "explicit_provides"
file in the hooks output directory. In the case of the "all" target
this list would be empty.  This list is consumed by the "final.binary"
hook file.

This patch adds support for optional final.binary hooks in hooks.d/base
and/or hooks.d/extra.  These final.binary hooks are always included as
the last hook(s) if either exist with the hook in "extra" running last.

The base/final.binary hook includes logic to parse the "explicit_provides"
file generated by the make-hooks script and remove any binary output not
explicitly specified.

Some series files named unnecessary dependencies, specifically
disk-image, to keep output of implicit artifacts consistent between
parallel builds.  These unnecessary dependencies are removed in this
patch.
2019-08-30 14:05:07 -05:00
Łukasz 'sil2100' Zemczak
313fd0af9b releasing package livecd-rootfs version 2.408.50 2019-06-25 22:57:17 +02:00
Łukasz 'sil2100' Zemczak
2d1ee4da19 Do not depend on snapd on powerpc. 2019-06-25 22:56:50 +02:00
Steve Langasek
fa98de9a7d releasing package livecd-rootfs version 2.408.49 2019-05-30 14:20:35 -07:00
Steve Langasek
39db5175d6 Add explicit dependency on python3-yaml, which is used in the code but was previously pulled in indirectly via ubuntu-image. LP: #1830823. 2019-05-30 14:20:27 -07:00
Łukasz 'sil2100' Zemczak
2a568381e3 releasing package livecd-rootfs version 2.408.48 2019-05-29 18:53:12 +02:00
Łukasz 'sil2100' Zemczak
6e73a2b3a6 Do not depend on ubuntu-image on powerpc. 2019-05-29 18:52:36 +02:00
Steve Langasek
76527b27cf releasing package livecd-rootfs version 2.408.47 2019-05-21 17:19:47 -07:00