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
Colin Watson
6a42148b22
Mount and unmount /dev recursively, to cope with setups where there are
...
interesting bind-mounts under /dev (e.g. loop devices bind-mounted by
LXD).
7 years ago
Adam Conrad
fc48e02c37
[tribaal, r=adconrad] Create vagrant user per upstream requirements
...
This branch changes the behavior for default users on the vagrant image,
according to much of https://www.vagrantup.com/docs/boxes/base.html
Specifically, this adds a new "vagrant" user with a know password on top
of the already existing ubuntu user.
This conforms to the expectations of the Vagrant community, despite some
security concerns. Vagrant images are not used for production systems but
for development environments, and the absence of the "standard" vagrant user
has been hurting ubuntu adoption on that platform.
7 years ago
Christopher Glass
f10cd80ebb
Make sure the .ssh directory has the right permissions.
7 years ago
Christopher Glass
e798276910
Fixed review comments by Adam.
...
- use adduser instead of useradd.
7 years ago
Christopher Glass
3d901daef4
Fix file permission problem - the authorized_keys file was still owned by root since the chown call came before its creation.
7 years ago
Christopher Glass
e6fd2b657e
Remove ubuntu user customisations.
...
Let's just do the absolute minimum here, the default is what people expect.
7 years ago
Steve Langasek
b1432b36be
Don't reference dropped grub_modules variable in grub-install command
7 years ago
Christopher Glass
87f34122fb
Remove useless diff.
7 years ago
Christopher Glass
97c8996c29
Remove the useless user and password from default config.
7 years ago
Christopher Glass
72dbb4c75d
Added comments.
7 years ago
Christopher Glass
467b8c9c06
Reset the default SSH user to being vagrant.
...
Using "vagrant ssh" is confusing otherwise.
7 years ago
Christopher Glass
1cc6041cd6
Remove root login. Ubuntu user keeps generated password.
7 years ago
Christopher Glass
b9363e97fb
Explicitely permit passworded root login over SSH.
7 years ago