Steve Langasek
8589d3548f
live-build/ubuntu-cpc/hooks/033-disk-image-uefi.binary: call apt-get
...
update *before* installing packages, not after.
2017-09-12 14:39:04 -07:00
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.
2017-09-12 14:36:50 -07:00
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).
2017-09-08 11:48:06 +01:00
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.
2017-09-01 10:50:32 -06:00
Christopher Glass
f10cd80ebb
Make sure the .ssh directory has the right permissions.
2017-09-01 18:25:41 +02:00
Christopher Glass
e798276910
Fixed review comments by Adam.
...
- use adduser instead of useradd.
2017-09-01 18:21:53 +02:00
Christopher Glass
3d901daef4
Fix file permission problem - the authorized_keys file was still owned by root since the chown call came before its creation.
2017-08-29 16:27:03 +02:00
Christopher Glass
e6fd2b657e
Remove ubuntu user customisations.
...
Let's just do the absolute minimum here, the default is what people expect.
2017-08-29 09:23:33 +02:00
Steve Langasek
b1432b36be
Don't reference dropped grub_modules variable in grub-install command
2017-08-25 11:18:19 -07:00
Christopher Glass
87f34122fb
Remove useless diff.
2017-08-25 17:02:52 +02:00
Christopher Glass
97c8996c29
Remove the useless user and password from default config.
2017-08-25 16:57:36 +02:00
Christopher Glass
72dbb4c75d
Added comments.
2017-08-25 13:19:21 +02:00
Christopher Glass
467b8c9c06
Reset the default SSH user to being vagrant.
...
Using "vagrant ssh" is confusing otherwise.
2017-08-25 12:59:53 +02:00
Christopher Glass
1cc6041cd6
Remove root login. Ubuntu user keeps generated password.
2017-08-25 12:05:29 +02:00
Christopher Glass
b9363e97fb
Explicitely permit passworded root login over SSH.
2017-08-25 08:37:18 +02:00
Christopher Glass
c0730ef6f6
Fix typo in variable name.
2017-08-24 21:19:30 +02:00
Christopher Glass
cc8a6e2709
Turns out the user adding should be done when the chroot is available...
2017-08-24 19:17:17 +02:00
Mathieu Trudel-Lapierre
563abee702
Drop special handling of grub modules, adding a note. Modules should be included in the signed grub binaries when necessary.
2017-08-23 20:23:32 -04:00
Mathieu Trudel-Lapierre
869bb9808a
Clean up GRUB_MODULES_PRELOAD / grub_modules. Remove the modules already loaded in stock signed grub EFI binaries.
2017-08-23 19:25:12 -04:00
Christopher Glass
5442860c14
Added a "vagrant" user to the vagrant image build, as per the vagrant community's
...
expectations.
2017-08-21 11:09:18 +02:00
Dimitri John Ledkov
bec201601d
Set a default locale of C.UTF-8 in the cloud images.
2017-08-18 09:12:22 +01:00
Steve Langasek
8aadf2c73d
Set a default locale of C.UTF-8 in the cloud images.
2017-08-16 16:32:27 -07:00
Dimitri John Ledkov
4f0e9c286c
Drop add_serial_console for upstart.
2017-08-11 14:51:51 -04:00
Balint Reczey
cfda7d20bd
Use xz -T4 -0 instead of pxz
...
Test showed very little difference in file-size between -0 and -9 while
both compression and decompression need much less memory and compression
needs less CPU time for -0.
Supported xz versions before 5.2 also accept the -T4 option but ignore it.
Also depend on xz-utils instead of on pxz.
LP: #1701132
2017-06-30 12:22:29 +02:00
Balint Reczey
6c9cf10d72
Depend on pxz and vmdk-stream-converter instead of installing them at runtime
2017-06-14 18:25:15 +02:00
Balint Reczey
aa54a130c3
Depend on packages in main instead of installing them at runtime
2017-06-14 18:25:11 +02:00
Steve Langasek
e89c54b271
Merge lp:~rcj/livecd-rootfs/trunk/
2017-04-13 10:54:14 -07:00
Robert C Jennings
01b476c0eb
live-build/ubuntu-cpc/hooks/999-extras.binary: Exit on first failure
...
Failure should be quick to eliminate excessive buildd time and make
identification of failure easier (no more buried errors).
2017-04-11 22:27:58 -05:00
Robert C Jennings
166b5eb4b3
ubuntu-cpc/060-ipv6.chroot: remove release comparison (LP: #1681548 )
2017-04-11 22:27:08 -05:00
Mathieu Trudel-Lapierre
94275558de
Make sure variables are exported for run-parts in 999-extras.binary; and drop the unnecessary sourcing of functions.
2017-04-11 22:38:18 -04:00
Mathieu Trudel-Lapierre
6272f60665
Merge fixes from rcj.
2017-04-11 22:14:40 -04:00
Robert C Jennings
f8264a59c6
Change remaining CLOUD_IMG_STR references to IMAGE_STR
2017-04-11 21:10:56 -05:00
Mathieu Trudel-Lapierre
4e01beda8c
Set IMAGE_STR and FS_LABEL for ubuntu-cpc 999-extras.binary hook too; but also export CLOUD_IMG_STR.
2017-04-11 22:03:04 -04:00
Mathieu Trudel-Lapierre
9ed476572f
Resynchronize with parent branch.
2017-04-11 17:30:48 -04:00
Mathieu Trudel-Lapierre
46bae4cebf
Fix up functions refactoring tfor a proper path to the file.
2017-04-11 17:16:35 -04:00
Mathieu Trudel-Lapierre
46fd6c58f5
Refactor functions out of ubuntu-cpc and ubuntu-server hooks.
2017-04-07 17:14:56 -04:00
Balint Reczey
16eee8d7eb
Use all config hooks from the proper place, not from /build/
2017-04-03 16:42:55 +02:00
Balint Reczey
7cae48fd12
Source ubuntu-cpc functions from the right place
2017-03-31 15:16:36 +00:00
Steve Langasek
738ff116a5
Merge lp:~vorlon/livecd-rootfs/image-flavors/
2017-02-27 22:34:19 -08:00
Brian Murray
f79fc7973c
Add replace_grub_root_with_label function thereby consolidating multiple
...
uses of the same calls to sed. Thanks to Dan Watkins.
2017-02-17 14:30:31 -08:00
Brian Murray
a5cc2033a0
Fix the OVF's metadata to include Ubuntu specific identifiers and
...
descriptions instead of the generic Linux ones. Thanks to Chris Glass.
(LP: #1656293 )
2017-02-16 09:04:07 -08:00
Christopher Glass
5da94c05e5
Fixed template omission (found wile running a build withthis branch).
2017-02-16 03:11:06 +01:00
Christopher Glass
b6e7b22680
Rool both switches into one for all affected files (the vagrant file was still
...
doing two switches on $ARCH).
2017-02-16 01:42:25 +01:00
Nish Aravamudan
404e524013
live-build/ubuntu-cpc/hooks/061-open-iscsi.chroot: generate iSCSI
...
Initiator Name at first iscsid run for cloud images to ensure it is
unique (LP: #1444992 ).
2017-02-08 18:10:35 -08:00
Steve Langasek
60da7e7c43
Also make squashfs skippable with $IMAGE_TARGETS
2017-02-08 15:18:22 -08:00
Steve Langasek
97bc634bd9
vmdk-ova has to key on the vmdk image build
2017-02-07 11:58:52 -08:00
Steve Langasek
53e1feefdb
Per discussion with Adam, don't make this an LB_ variable since it's not actually part of live-build; instead we will look to pass it into the environment through launchpad-buildd
2017-02-07 10:19:03 -08:00
Steve Langasek
8ba3a00622
Support passing IMAGE_FLAVORS in the environment, to limit which images
...
are output as part of a build; particularly useful for ubuntu-cpc builds
which output multiple image types.
2017-02-06 22:12:32 -08:00
Christopher Glass
5a07ff4602
Roll both switches on $ARCH into one, as suggested at review.
2017-01-17 08:10:26 +00:00
Christopher Glass
f1a8538c8e
This branch fixes the OVF's metadata to include Ubuntu-specific identifiers and
...
descriptions instead of the generic linux ones (lp:1656293).
This applies to both the general image and the vagrant-specific one.
2017-01-16 09:26:25 +00:00