Dimitri John Ledkov
08c9c26e58
Ensure /lib/modules exists in root tarballs and sqashfs.
...
(LP: #1792905 )
6 years ago
Steve Langasek
3db2340c54
generate all tar files with --xattrs. LP: #1302192 .
6 years ago
Robert C Jennings
58b510cf99
ubuntu-cpc: Remove git-man for minimized images
7 years ago
Daniel Watkins
f9cae3ff7f
Restore removal of /boot/grub from rootfs artifacts
7 years ago
Daniel Watkins
ab85167fb5
Shell formatting cleanup
7 years ago
Daniel Watkins
605b97de97
ubuntu-cpc: Generate the root image contents once, and use it for both the
...
-root.tar.xz and the .squashfs.
7 years ago
Steve Langasek
91f26e016c
resync with trunk
7 years ago
Daniel Watkins
a9bb37c661
Use a relative path for config/functions
7 years ago
Steve Langasek
92497af14f
live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary: don't manually
...
install grub-efi-amd64 since that forces off grub-pc, which is otherwise
now coinstallable.
7 years ago
Daniel Watkins
136e2e2200
Drop /lib/modules creation as MAAS handles it downstream
7 years ago
Daniel Watkins
8e344b1f6b
Add comment explaining /lib/modules creation
7 years ago
Daniel Watkins
0e5b19259d
ubuntu-cpc: Reintroduce the -root.tar.xz artifact (LP: #1585233 ).
7 years ago
Daniel Watkins
87c11b5114
Don't fail to build CPC images if /lib/modules already exists in the
...
squashfs.
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
Dimitri John Ledkov
bc194dd48b
Build EFI armhf images.
7 years ago
Dimitri John Ledkov
d4fe705be7
Stop building vagrant.box, ova, vmdk images for i386.
...
https://trello.com/c/zhisDVTq
7 years ago
Steve Langasek
c02f0f0f4c
Install grub-ieee1275 instead of grub2 on ppc64el; grub2 is a dummy
...
transitional package in universe.
7 years ago
Michael Hudson-Doyle
c24e13f8f9
install grub-ieee1275 instead of grub2 on ppc64el
...
grub2 is a dummy transitional package that is in universe.
7 years ago
Balint Reczey
532bd5b5ed
Build minimized images in a 1GiB image
7 years ago
Balint Reczey
c45ea223b4
Use default xz compression (-6) for raspi2 image
...
Xz with -0 generated ~35% bigger compressed image.
LP: #1732681
7 years ago
Balint Reczey
578fa5a92d
Update changelog
7 years ago
Balint Reczey
4a168af954
Skip setting up initrd for s390x when it is not generated for the image
...
This fixes building minimized s390x images.
7 years ago
Steve Langasek
51890b5b43
add 'file' to the axe list for minimized
7 years ago
Steve Langasek
c9b427c11b
Another round of package removals for minimization
7 years ago
Steve Langasek
c0bb8d760f
remove vim a little harder
7 years ago
Steve Langasek
783437f533
instead, call apt clean from the chroot
7 years ago
Steve Langasek
dec765f035
no actual point in apt clean here, since that just cleans files from the bind mount
7 years ago
Steve Langasek
bc361bc33b
call apt clean separately for the squashfs
7 years ago
Steve Langasek
dc875735b8
More packages to remove when minimizing
7 years ago
Steve Langasek
add1cca991
Refactor, mark all lib'*' and python'*' packages auto-installed so they can be cleaned up as dependencies instead
7 years ago
Steve Langasek
54427d4440
When building minimized cloud images, remove various packages that we
...
don't want installed by default. Some are tools that aren't needed for
non-interactive use; some are libraries whose reverse-dependencies
will have already been removed; and one, open-vm-tools, should only be
included in images that are targeted to VMWare (which is not the case
for any of the current minimal images), rather than being included
directly in the cloud-image seed.
7 years ago
Steve Langasek
ad78957f01
Remove boot/grub leftovers from our root squashfs, left behind after
...
grub purge.
7 years ago
Balint Reczey
549232f607
Clean up dangling /boot/initrd.img symlink when needed
7 years ago
Steve Langasek
a75cbf210b
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.
7 years ago
Steve Langasek
a5e27120c0
Factor out grub-related diversions and use them consistently, so we
...
don't end up with wrong os-probe output in our grub.cfg.
7 years ago
Balint Reczey
f0cb85a506
When SUBPROJECT environment variable is not set assume it to be ""
7 years ago
Balint Reczey
2ef2aee456
Use SUBPROJECT=minimized name instead of SUBPROJECT=minimize for consistency
7 years ago
Balint Reczey
c5d01a6635
Force partuuid in /etc/default/grub.d/* instead of in /etc/default/grub
...
This prevents ucf questions upon installation of changed /etc/default/grub
7 years ago
Steve Langasek
0365171ce3
minimization handling for UEFI disk images
7 years ago
Balint Reczey
9dd615d380
Drop initramfs-tools diversion
...
Kernels which are able to boot without initramfs now dropped dependency
on initramfs-tools thus initramfs-tools can be removed from the image
instead of having to divert it to avoid initramfs generation.
7 years ago
Balint Reczey
d65e1edfd1
Source config/binary instead of /build/config/binary which may not exist
7 years ago
Steve Langasek
3ed1f4fdd1
In a cloud environment, we can rely on the kernel being able to boot the
...
root filesystem directly, without an initramfs; enable this when
building minimized.
7 years ago
Steve Langasek
786370819c
Make the 999-cpc-fixes.chroot subproject-aware, so we don't try to locale-gen
7 years ago
Balint Reczey
20617c6f51
Don't ask for password and GECOS while creating vagrant user
7 years ago
Steve Langasek
bcb2bcc1cd
Remove spurious call to 'sync'; we don't need to flush all disk caches
...
on the system to cleanly unmount a partition.
7 years ago
Steve Langasek
7f9094170b
remove another straggler udevadm+sleep
7 years ago
Robert C Jennings
83b4f5338c
live-build/ubuntu-cpc/functions: Add teardown_mountpoint to reverse setup_mountpoint
...
* live-build/ubuntu-cpc/functions: Add a function, teardown_mountpoint,
to reverse the work done in setup_mountpoint. Lack of this function
has forced users of setup_mountpoint to implement this separately
and the implementations have diverged. (LP: #1716992 )
* live-build/ubuntu-cpc/functions: Remove umount_settle function.
The was only used where teardown_mountpoint was lacking.
7 years ago
Steve Langasek
8589d3548f
live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary: call apt-get
...
update *before* installing packages, not after.
7 years ago
Steve Langasek
a246300940
* live-build/functions: mount tmpfs on /var/cache/apt and var/lib/apt, so
...
we don't have to leave empty space in our derivative images for packages
that have been downloaded/installed/removed. This normally isn't
relevant for the installed system, since the root filesystem will
auto-expand in place on the target disk, but lets us ship smaller
images.
* live-build/functions: also call 'apt-get update' after mounting the
blank /var/lib/apt.
7 years ago