1878 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
Philip Roche
41ecdf5c74 Merge bugfix/ubuntu-cpc-LP-2036195-auto-installed-packages-xenial into ubuntu/xenial [a=philroche] [r=andrew-cloke,vorlon]
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.

MP: https://code.launchpad.net/~philroche/livecd-rootfs/+git/livecd-rootfs/+merge/454068
2023-11-30 12:28:58 +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 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 2.408.67 2021-02-10 13:00:54 +00:00
Dimitri John Ledkov
bf6e4d35a3
Revert "esp: install grub in ubuntu bootloader id path, instead of removable."
This reverts commit 8e9925729534fffa7b8fb1a30a2f4527b00e850e.
2021-02-10 12:59:36 +00:00
Dimitri John Ledkov
2d81daa76f
releasing package livecd-rootfs version 2.408.66 2.408.66 2021-02-09 01:18:21 +00:00
Dimitri John Ledkov
6832b6bda4
functions: stop removing systemd-detect-virt unconditionally in undivert_grub
One can call divert_grub; replace_kernel; undivert_grub. And
replace_kernel will call into force_boot_without_initramfs, which
under certain conditions can call divert_grub &
undivert_grub. Resulting in undivert_grub called twice in a row.

When undivert_grub is called twice in a row it wipes
systemd-detect-virt binary from disk, as the rm call is unguarded to
check that there is something to divert if systemd package is
installed. And if the systemd package is not installed, it does not
check that systemd-detect-virt file is in-fact what divert_grub has
created.

Add a guard to check that systemd-detect-virt is the placeholder one,
before removing it.

LP: #1902260
(cherry picked from commit 096a00f40459187719840ccad99e86c7ade2ec12)
2021-02-09 01:17:35 +00:00
Dimitri John Ledkov
d2e70ab48e
Perform fsck on all rootfs.
LP: #1912835
(cherry picked from commit 33b7272a2331279b4c7aa8de73ed8a9069d0bd39)
2021-02-09 01:17:12 +00:00
Dimitri John Ledkov
ef43f0cf21
esp: perform fsck.
LP: #1912835
(cherry picked from commit 53b28d5f58284657ee8efd08a633d557af1fcd97)
2021-02-09 01:16:40 +00:00
Dimitri John Ledkov
8e99257295
esp: install grub in ubuntu bootloader id path, instead of removable.
Do not use removable uefi bootloader path in the cloud-images by
default, as that prevents upgrades of the bootloader.

LP: #1912830
(cherry picked from commit 7c760864fdcb278ca37396f06f5e3f297428d63d)
2021-02-09 01:16:33 +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 2.408.65 2020-12-15 11:11:24 -06:00
Robert C Jennings
94cafd703d
Merge xenial-revert-grub into ubuntu/xenial [a=powersj] [r=patviafore,rcj]
amd64: revert all grub changes for xenial

For LP: #1901906, on other releases we ensured that grub-pc is always
installed with shim-signed. However, xenial has different behavior that
does not work the same. This reverts those changes back to what
livecd-rootfs was before any of those changes were made, keeping only
the autoremove packages work.

LP: #1901906

MP: https://code.launchpad.net/~powersj/livecd-rootfs/+git/livecd-rootfs-1/+merge/394910
2020-12-15 11:11:11 -06:00
Joshua Powers
22e7194442
release package livecd-rootfs version 2.408.65 2020-12-04 13:33:03 -08:00
Joshua Powers
a9249b1773
amd64: revert all grub changes for xenial
For LP: #1901906, on other releases we ensured that grub-pc is always
installed with shim-signed. However, xenial has different behavior that
does not work the same. This reverts those changes back to what
livecd-rootfs was before any of those changes were made, keeping only
the autoremove packages work.

LP: #1901906
2020-12-04 13:26:52 -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
2.408.64
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
Joshua Powers
e196306173
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.

LP: #1901906
2020-12-02 10:44:22 -08:00
Robert C Jennings
c7ec9b7fbd
releasing package livecd-rootfs version 2.408.63 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 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
Cody Shepherd
695b4de393
Omit file type exensions in manifest names 2020-11-20 12:41:32 -08:00
Cody Shepherd
c5102d998e
Create manifests for buildd tarballs 2020-11-20 07:52:21 -08:00
John Chittum
c6c61282bd
Open and update changelog
Open new xenial release and add changelog line
2020-11-18 13:25:35 -06:00
John Chittum
242508908a
re-add sed command
Older version of vmdk-stream-converter has an incorrect header. The
original sed command replaced the incorrect "Description File" comment
with the correct "Disk DescriptorFile".
2020-11-18 11:37:04 -06:00
John Chittum
58f9e413ba
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
2020-11-16 11:18:59 -06:00
Joshua Powers
b9021b56df
releasing package livecd-rootfs version 2.408.62 2020-11-13 09:24:37 -08:00
Joshua Powers
370db20757
amd64: always install grub-pc with shim-signed
shim-signed depends on grub-efi-amd64-signed, which in turn has
alternative depends on either `grub-efi-amd64 | grub-pc`. However to
support booting with either via shim&signed-grub and BIOS, the choice
must be made to install grub-pc, not grub-efi-amd64.

This makes images consistent with Ubuntu Deskop, Live Server, buildd
bootable images; all of which already do install grub-pc and
shim-signed.

Additionally, this will ensure that autoremove is run after installing
anything in the CPC build hooks. This is done to avoid shipping images
that include packages that are autoremovable. This will clean-up as
packages are installed and detect any breakage at build time.

LP: #1901906
2020-11-13 09:19:10 -08:00
Cody Shepherd
aede5df67b
Skip jasper for buildd subproject 2020-10-26 09:40:53 -07:00
Cody Shepherd
bacc18b6b3
Change tar transform target to match changes in bionic+, allowing for
ext4 image format to be built correctly
2020-10-09 09:25:23 -07:00
Steve Langasek
02ea8c9398 releasing package livecd-rootfs version 2.408.61 2.408.61 2020-10-06 12:56:47 -07:00
Cody Shepherd
e1e3fec767
Don't install recommends for bootable buildd image 2020-10-06 10:22:12 -07:00
Cody Shepherd
c440245dba
Update changelog 2020-10-06 10:22:06 -07:00
Cody Shepherd
c9043b2697
Call function to set up resolvconf to enable DNS for buildd 2020-10-06 10:20:46 -07:00
Cody Shepherd
f7512b21a0
Remove bind9 from buildd installed packages 2020-10-06 10:20:46 -07:00
Cody Shepherd
4a9592601d
Disable buildd console output on ttyS0 2020-10-06 10:20:46 -07:00
Cody Shepherd
515bc1430b
Safely set /etc/resolv.conf to an empty file in buildd images.
In the buildd image chroot, /etc/resolv.conf is a symbolic link to
a configuration file in the /run directory. A call to truncate will
modify that file, which we should not do. Instead, we want to remove
the symbolic link and replace it with an empty file.
2020-10-06 10:20:45 -07:00
Cody Shepherd
e23685134e
* Remove explicit install of grub-efi* packages for amd64
* Remove systemd-networkd artifacts from includes.chroot
2020-10-06 10:20:45 -07:00
Cody Shepherd
7981a08c2c
Install packages and perform dist-upgrade necessary for secure xenial
bootable-buildd image
2020-10-06 10:20:44 -07:00
Cody Shepherd
2d9243e499
Fork buildd disk-image-uefi hook from the ubuntu-cpc/base/
disk-image-uefi hook; it was originally a backported fork of the hook
from the ubuntu/focal branch
2020-10-06 10:20:44 -07:00
Cody Shepherd
bd20b4321b
Set ports/archive as appropriate for default mirror 2020-10-06 10:20:43 -07:00
Cody Shepherd
0e66c9e3f0
Set a default archive mirror 2020-10-06 10:20:43 -07:00
Cody Shepherd
e30aefc83b
Only build bootable buildd images for amd64. 2020-10-06 10:20:43 -07:00
Cody Shepherd
9b93c0c613
Properly setup the chroot before using the network in buildd hook. 2020-10-06 10:20:42 -07:00