Dimitri John Ledkov
fef6023ce5
subiquity: make subiqutiy_config.mount optional
...
Remove wants from local-fs.target, add wants from the uuid device instead.
Tested by applying these changes from pre-pivot-root by modifying
/root files in place whilst booting with break=bottom.
6 years ago
Julian Andres Klode
87a26d2cd2
Remove crufty files after minimize-manual
...
minimize-manual would be creating those files again, and other
parts may be creating them, so best to do the cleanup at the
very end.
LP: #1826377
6 years ago
Julian Andres Klode
fb4849aec1
Merge branch 'minimize-manual-bionic' into ubuntu/bionic
6 years ago
Steve Langasek
3229f51cc6
Also don't create the update-motd directory since we're not writing to it.
...
It will almost certainly be created at some point but we don't need to
create it here.
6 years ago
Steve Langasek
c87f87e4e1
Drop /etc/update-motd.d/51-cloudguest from cloud images; this is not consistent with current Ubuntu Advantage product language. Any future customizations to update-motd for cloud images should be done via a package instead.
6 years ago
Julian Andres Klode
be180bcf93
Minimize the number of manually installed packages
...
Minimize the number of manually installed packages in images by marking
dependencies of metapackages as automatically installed.
Squashed commits:
* minimize-manual.py: Followup with some cleanup, correct permissions
* fixup: Do not assume current directory
* Reorganize minimal-manual file location.
6 years ago
Colin Watson
fbba9fe46e
Make sure buildd images have a /usr/sbin/policy-rc.d symlink
...
Installing policyrcd-script-zg2 doesn't quite do this because of the way
that live-build installs its own temporary version of policy-rc.d. The
only remotely sensible way I can see to deal with this is to create the
symlink manually.
6 years ago
Adam Conrad
1003e76191
[mwhudson, r=adconrad] Merge mwhudson/live-server-bionic for live-server HWE
6 years ago
Colin Watson
a4fd32a7f1
Drop code to handle buildd images for != bionic
6 years ago
Colin Watson
2adceb461e
Move buildd image building to binary hooks
6 years ago
Colin Watson
71ec79e55d
Add a LXD image to builds for the buildd subproject
6 years ago
Colin Watson
e351909818
Add a buildd subproject
6 years ago
Adam Conrad
0ccce31ed5
Fixes to make the lubuntu livefs behave when swapping to the HWE stack.
...
* lubuntu: Select lubuntu-gtk-core task as well, so we get the HWE filter
applied to the explicit dependencies it has on Xorg-recommended packages.
* lubuntu: Manually install some packages that fall out due to the above.
6 years ago
Adam Conrad
bd5f3fcd3f
Forward-port HWE support from xenial, make it more generic, and enable it for the current LTS flavours.
6 years ago
Łukasz 'sil2100' Zemczak
86f2505871
Use linux-firmware-raspi2 instead of raspi3-firmware.
6 years ago
Łukasz 'sil2100' Zemczak
dbdf9e4a00
ARCH is not available in .chroot hooks so we need to get the architecture manually.
6 years ago
Łukasz 'sil2100' Zemczak
770a7b4c85
Add the 100-purge-grub-legacy-ec2-arm.chroot to ubuntu-cpc
6 years ago
Łukasz 'sil2100' Zemczak
6b63fa210f
Cherry-pick all the additionally needed fixes to enable proper raspi3 support.
6 years ago
Michael Hudson-Doyle
e35dde7f68
Do not include curtin in the live-server installer.squashfs as the version of subiquity that includes it in the snap has now been released to stable.
6 years ago
Michael Hudson-Doyle
f129e5797a
A few simple tweaks to reduce size of live servers installer.squashfs
...
- Do not run apt-get update (which can bring in package lists if we are
unlucky wrt publisher schedules).
- Run apt-get clean to clear out downloaded debs of curtin/casper and
dependencies.
- Do not install user-setup.
- Use the core snap from the base filesystem if present.
6 years ago
Michael Hudson-Doyle
a473683ac7
Do no install openssh-server in the base filsystem for the live server installer.
6 years ago
Michael Hudson-Doyle
7632df8e50
linux-generic-hwe-18.04 not linux-generic-hwe-bionic!
6 years ago
Michael Hudson-Doyle
f3a458a85f
enable hwe variant
6 years ago
Michael Hudson-Doyle
bfeebc90ab
remove cloud-initramfs-copymods before installing kernel
6 years ago
Michael Hudson-Doyle
bcbf9ea36e
add initramfs hook to record kernel metapackage & mount modules
6 years ago
Michael Hudson-Doyle
f475de24bf
add hook to create kernel/initrd/modules for ISO
6 years ago
Michael Hudson-Doyle
d3eadc704c
do not unmount the installer overlay in 032-installer-squashfs.binary
...
so that a new hook can create yet further overlays on top of it
6 years ago
Michael Hudson-Doyle
7ad0444511
do not include kernel in base install for ubuntu-server:live
...
this actually makes things closer to the non-live server build and so
makes things a bit simpler
6 years ago
Balint Reczey
2edb15bd10
Add .keep files to preserve empty directories
6 years ago
Steve Langasek
cdb4234912
Merge lp:~codyshepherd/livecd-rootfs/bionic-proposed-snaps-manifest
6 years ago
Steve Langasek
8b65ec6c2c
Key netplan delegation to NetworkManager on presence of
...
/usr/sbin/NetworkManager, not on /usr/lib/NetworkManager which may have
hooks from other packages (i.e., wpasupplicant).
6 years ago
Łukasz 'sil2100' Zemczak
1a39926dd0
First attempt on backporting all raspi3 changes to bionic.
6 years ago
Cody Shepherd
64e5330029
Adding snap-seed-parse.py (that might help)
6 years ago
Cody Shepherd
6527da055d
Change call to add grub efi packages using new create_manifests()
...
function.
6 years ago
Cody Shepherd
00c8b06004
Include snaps in image manifests
6 years ago
Steve Langasek
7ce7902cd0
Merge lp:~rcj/livecd-rootfs/bionic-proposed
6 years ago
Cody Shepherd
35c780c190
Include grub efi packages in uefi image manifests.
6 years ago
Robert C Jennings
d372016933
Disable checksum generation (LP: #1799773 )
6 years ago
Dimitri John Ledkov
96065b96c8
releasing package livecd-rootfs version 2.525.9
6 years ago
Michael Hudson-Doyle
85d022247c
Fix live-server journald config snippet to actually disable journald rate
...
limiting.
6 years ago
Michael Hudson-Doyle
a443abae28
Disentangle enabling universe in the final image a little from having
...
PREINSTALLED=true set and enable it for a live-server build.
(LP: #1783129 )
6 years ago
Steve Langasek
545e68e676
merge from trunk
6 years ago
Michael Hudson-Doyle
6ea20d222a
cherry-pick change to disable rate limiting in live-server live session
6 years ago
Daniel Watkins
d97233a7bb
* ubuntu-cpc: Reintroduce the -root.tar.xz artifact (LP: #1585233 ).
...
* ubuntu-cpc: Generate the root image contents once, and use it for both the
-root.tar.xz and the .squashfs.
* ubuntu-cpc: Generate -root.tar.xz with --xattrs.
6 years ago
Steve Langasek
b4dc030fdb
generate all tar files with --xattrs. LP: #1302192 .
6 years ago
Adam Conrad
2ab2c5a74e
live-build/auto/config: Improve linux-tools filter to work for i386 too.
7 years ago
Adam Conrad
1c99627313
live-build/auto/config: Dirty hack to filter linux-tools-aws from budgie.
7 years ago
Adam Conrad
6673d4d6ee
live-build/auto/config: Add nasty hack to order gtk-common-themese snap
...
first in snapd's seed.yaml to work around the snapd bug in LP: #1772844
7 years ago
Francis Ginther
7c09badeec
Update unminimize script text and install ubuntu-standard when unminimizing a minimal image (LP: #1778777 )
7 years ago
Michael Hudson-Doyle
a2309c6177
straight backport of change in 2.527 to bionic
7 years ago
Daniel Watkins
87c11b5114
Don't fail to build CPC images if /lib/modules already exists in the
...
squashfs.
7 years ago
Dimitri John Ledkov
94b49f9a1c
Ensure MAAS squashfsi are clean of passwords. LP: #1764991 .
7 years ago
Steve Langasek
9465166169
Merge lp:~daniel-thewatkins/livecd-rootfs/custom-model-assertions
7 years ago
Dimitri John Ledkov
f32b6ed261
Clear maas role password
7 years ago
Dimitri John Ledkov
3ed266091c
Ensure MAAS squashfsi are clean of passwords. LP: #1764991 .
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