Steve Langasek
9465166169
Merge lp:~daniel-thewatkins/livecd-rootfs/custom-model-assertions
7 years ago
Daniel Watkins
42ef796b92
Remove necessarily true conditional
7 years ago
Daniel Watkins
fe76613e69
Require brand:model to be passed to snap_prepare_assertions
...
We only need the default in one place, so remove it from all but the top-level
function.
7 years ago
Daniel Watkins
38518507ec
Generalise other assertion paths
7 years ago
Daniel Watkins
265218c1cb
Don't include model assertion name in FS path (LP: #1764541 )
...
There can only be one model assertion, so we don't need to disambiguate them.
This also brings us in line with the behaviour of `snap prepare-image`, and
consistency is nice.
7 years ago
Daniel Watkins
a09c14c0ab
Fix missing local variables
7 years ago
Daniel Watkins
a844c6f8cd
Fix another unbound variable
7 years ago
Daniel Watkins
ed50ee0e0d
Fix use of unbound variable
7 years ago
Daniel Watkins
d908e89a52
Fix typo
7 years ago
Daniel Watkins
54649b40c3
Allow custom model assertions in snap_prepare_assertions
...
This also splits up the preparation in to two functions, so that images that
want to use a custom model assertion but don't have any snaps to preinstall
don't end up with the core snap installed.
7 years ago
Steve Langasek
e6089e9e32
Remove landscape-common from minimal image, and handle restoring it in
...
unminimize script. LP: #1763182 .
7 years ago
Dimitri John Ledkov
466607c590
In subiquity image, mount additional squashfs in /media.
7 years ago
Michael Hudson-Doyle
65dd7df171
last minute pre-upload typo fix
7 years ago
Michael Hudson-Doyle
aacb8daaee
merge trunk
7 years ago
Steve Langasek
c46962ca2e
Refactor snap preseeding to allow additional snaps to be preseeded from
...
hooks
7 years ago
Robert C Jennings
26f31fbd9c
live-build/functions: spelling fix
7 years ago
Robert C Jennings
5f12253791
live-build/functions: Help developers resolve snap download issues
7 years ago
Robert C Jennings
73dba1f31a
snap preseeding: capture Ubuntu snap seeding policy in code
...
When no channel is given for a pre-seeded snap, the channel
should be stable/ubuntu-XX.YY to match Ubuntu policy.
This patch adds the LB_DISTRIBUTION var to config/{binary,chroot}
to have a common way of determining the Ubuntu XX.YY version
number between hooks and auto/build.
7 years ago
Robert C Jennings
cbcb5d3ed8
live-build/functions: reduce scope of snap account variable
...
* Only shell out to set $account when we need to use it.
* Reduce scope of $account to make it local to the function
* Fix indenting within an 'if' block
7 years ago
Robert C Jennings
0dbaf4cc9d
live-build/functions: Drop spurious backslash
7 years ago
Robert C Jennings
936c3dbc79
live-build/functions: Update snap seed.yaml format to comply with yaml spec
7 years ago
Robert C Jennings
829716a6d7
live-build/functions: Change arithmetic to make the file 'sh' friendly
7 years ago
Robert C Jennings
57261c3edf
auto/build: Install snaps using common functions
7 years ago
Robert C Jennings
e655aff7b1
live-build/functions: Migrate from generic snap account-id
7 years ago
Dimitri John Ledkov
8d5af150cd
Make subiquity installer boot quicker, by making dhcp interfaces
...
optional, such that wait-online is not blocking bringing up the
installer UI.
7 years ago
Iain Lane
e68923777e
merge lp:~tsimonq2/livecd-rootfs/lubuntu-seed-mangling
7 years ago
Robert C Jennings
152adcaa04
live-build/functions: add snap preseeding support
7 years ago
Steve Langasek
4bb0414a5d
Make sure we call the build "minimal" within the cloud build info,
...
when building a minimized image.
7 years ago
Christopher Glass
51c663a892
Fixed whitespace/tabs.
7 years ago
Michael Hudson-Doyle
3cb1f38cf2
Set the default locale to C.UTF-8 in all server and cloud images.
...
(LP: #1751051 , #1759003 )
7 years ago
Simon Quigley
e4151ca741
Proper bash is rad, let's do it.
7 years ago
Simon Quigley
10ebe98d84
Special-case Lubuntu's seeds so that the minimal install works.
7 years ago
Christopher Glass
0b2239c069
Parametrize BUILD_NAME in /etc/cloud/build.info to make it "minimal-aware".
7 years ago
Dimitri John Ledkov
bfa43c1c5c
On amd64, if building minimal images for bionic, xenial, or extra ppa,
...
use kvm kernel, otherwise fallback to virtual.
7 years ago
Michael Hudson-Doyle
8ee1f566e2
In the live-server build, prevent casper from mounting any existing
...
swap partitions from drives we might later be installing to.
(LP: #1743643 )
7 years ago
Daniel Watkins
12339422c5
ubuntu-cpc: When performing a minimized build, don't generate artifacts
...
that won't boot with the linux-kvm kernel (LP: #1757223 ).
7 years ago
Dimitri John Ledkov
815c3dfc10
Whitelist preserving "unowned" /var/log/journal. Maybe systemd package
...
should own the directory, and only adjust the permissions in
postinst. LP: #1754332
7 years ago
Michael Hudson-Doyle
8ece245153
In the live-server build, prevent casper from mounting any existing swap
...
partitions from drives we might later be installing to.
7 years ago
Michael Hudson-Doyle
a5a4f4e0d8
* Rename the directory containing the systemd override file for subiquity to
...
the correct name :/
* Add Environment=SNAP_REEXEC=0 to the above override file.
* Remove the snap.subiquity.started overrides, that service is long gone.
7 years ago
Michael Hudson-Doyle
c787069c5c
do not set INITRAMFS_COMPRESSION for projects that end up passing --initramfs=none to lb config
7 years ago
Michael Hudson-Doyle
d46edbffdb
reduce duplication somewhat
7 years ago
Michael Hudson-Doyle
b7f3ec398b
Make lzma initramfs compression opt-in rather than opt-out, and do not
...
opt-in to it for live-server builds to speed up the boot. (LP: #1750873 )
7 years ago
Michael Hudson-Doyle
0d750f78bc
Set INITRAMFS_COMPRESSION to gzip for live-server builds to speed up the
...
boot. (LP: #1750873 )
7 years ago
Dimitri John Ledkov
bc194dd48b
Build EFI armhf images.
7 years ago
Steve Langasek
8fddc6b469
Merge lp:~vorlon/livecd-rootfs/many-loops
7 years ago
Steve Langasek
90ef53cef1
Merge lp:~vorlon/livecd-rootfs/ubuntu-channels-for-snaps
7 years ago
Dimitri John Ledkov
9df3a91e26
ubuntu-server: generate multi-lowerdir overlayfs for
...
maas-rack-controller, and full maas. To be used in subiquity for maas
install options.
7 years ago
Iain Lane
ba4b16626f
live-build-auto/{build,config}: Support fetching a file from the seed
...
mirror (BASE_SEED.minimal-remove) and putting it into the livefs build as
filesystem.manifest-minimal-remove. It's intended for ubiquity to read
this file as a list of packages to remove when doing a 'minimal' desktop
installation.
7 years ago
Michael Hudson-Doyle
57200eaa01
tyop
7 years ago
Michael Hudson-Doyle
4407aaf1ae
it is config/common, not config/binary, grr
7 years ago