Cody Shepherd
1f05fbea69
Backport adding snaps to image manifests (LP: #1805497 )
2018-11-27 11:53:59 -08:00
Robert C Jennings
8e53c77a11
snap: Alternate fix for snap pre-seeding (LP: #1775710 )
...
* Backport: Refactor functions out of ubuntu-cpc and ubuntu-server hooks.
* Backport: Add dependency on distro-info for snap preseeding
2018-06-07 17:35:12 -07:00
Balint Reczey
7cc9576845
Depend on packages instead of installing them at run time
2017-12-05 22:40:35 +01:00
Steve Langasek
b2fba90356
Fix the force-partuuid handling to create the file under
...
/etc/default/grub.d/ with a .cfg extension as grub expects; it's unclear
how this ever worked without.
2017-10-05 16:02:26 +02:00
Steve Langasek
b66cc28507
Factor out grub-related diversions and use them consistently, so we
...
don't end up with wrong os-probe output in our grub.cfg.
2017-10-05 16:01:04 +02:00
Balint Reczey
88d854ffb5
Use SUBPROJECT=minimized name instead of SUBPROJECT=minimize for consistency
2017-10-03 17:31:26 +02:00
Steve Langasek
4d7509f570
Fix a reference to an undefined variable in a script that's set -u.
2017-10-03 17:31:16 +02:00
Balint Reczey
86ed851b5a
Force partuuid in /etc/default/grub.d/* instead of in /etc/default/grub
...
This prevents ucf questions upon installation of changed /etc/default/grub
2017-09-28 09:38:23 -04:00
Steve Langasek
b32298ede1
minimization handling for UEFI disk images
2017-09-28 09:38:23 -04:00
Steve Langasek
f16611774f
* 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.
* Also nuke the sleep / udevadm settle calls in the process, which should
never be required and slow down the builds.
2017-09-19 13:45:37 -07:00
Robert C Jennings
a623618e2c
Install udev before calls to udevadm
2017-09-13 21:05:22 -05:00
Steve Langasek
880d4f8b89
live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary: call apt-get
...
update *before* installing packages, not after.
2017-08-25 15:30:48 -07:00
Mathieu Trudel-Lapierre
a75544e0c3
Only set a default GRUB_PRELOAD_MODULES if not already defined; otherwise used the existing values.
2017-08-23 19:20:35 -04:00
Mathieu Trudel-Lapierre
f48670cec5
Clean up GRUB_MODULES_PRELOAD / grub_modules. Remove the modules already loaded in stock signed grub EFI binaries.
2017-08-18 19:37:34 -04:00
Balint Reczey
e25936cc61
Source ubuntu-cpc functions from the right place
2017-05-12 21:20:22 +02:00
Mathieu Trudel-Lapierre
d50b3ba529
ubuntu-cpc: Remove redundant copy of grub files. (LP: #1637290 )
2017-03-23 14:40:47 -04:00
Daniel Watkins
ececc9789d
Add replace_grub_root_with_label function
...
When update-grub is run, it will detect the disks in the build system.
Currently, we sed the grub configuration in places where this happens;
replace_grub_root_with_label moves that seddery in to a single callable
location to avoid ending up with multiple versions of it.
(It's worth noting that we also do this in 999-cpc-fixes.chroot, but as our
functions file isn't available within the chroot we don't use it there.)
2017-03-17 13:35:37 -05:00
Steve Langasek
99cdaafd61
Refactor ubuntu-cpc hooks to allow us to handle images where the root
...
partition should not be partition 1.
2016-02-06 00:34:16 -08:00
Steve Langasek
7ec8dd87ac
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.
2016-02-05 23:39:56 -08:00
Michael Vogt
c97c00d749
manually merge upload of 2.359
2015-12-07 11:20:57 +01:00
Ben Howard
a40cfd6180
ubuntu-cpc: Move apt-get to the top of uefi disk creation
2015-11-12 14:45:07 -07:00
Daniel Watkins
216762748b
Move building of all architecture-specific CPC artifacts in to
...
Launchpad.
2015-11-06 09:54:59 +00:00