Robert C Jennings
0acda846dd
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.
2017-09-13 13:18:03 -05:00
Steve Langasek
314a6b95a3
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). LP: #1716465 .
2017-09-11 14:33:23 -07:00
Balint Reczey
e25936cc61
Source ubuntu-cpc functions from the right place
2017-05-12 21:20:22 +02:00
Daniel Watkins
6f6fb2834b
Refactor ubuntu-cpc hooks to hard-code producing an 'ext4' rootfs, which
...
is used outside of the livecd-rootfs build process (specifically for EC2
publication).
2016-02-22 11:31:01 +00:00
Steve Langasek
246d45c839
And one more
2016-02-10 09:30:48 -08:00
Steve Langasek
c62743e5f4
...but if we're going to avoid using umount_partition, we need to actually unmount all the mountpoints mounted by setup_mountpoint
2016-02-10 09:29:55 -08:00
Steve Langasek
93314b5882
and the parent directory isn't a mountpoint, so roll back a change that also causes the script to fail. This still warrants refactoring, but let's refactor it in a way that actually works.
2016-02-10 08:26:36 -08:00
Steve Langasek
c53b727a79
But don't try to use the function without declaring the function...
2016-02-10 07:51:55 -08:00
Steve Langasek
7339cb09b3
Remove some code duplication
2016-02-09 14:29:22 -08:00
Steve Langasek
0b279f731b
Refactor ubuntu-cpc hooks to always produce a 'plain' rootfs via
...
live-build and reuse this for the tarball, instead of lb_binary_rootfs
creating some artifact that we ignore / throw away.
2016-02-09 12:22:13 -08:00
Ben Howard
28c10e02db
ubuntu-cpc: in hooks/030-root-tarball.binary create /lib/modules to fix
...
(LP: 1543204).
2016-02-08 10:23:14 -07:00
Dimitri John Ledkov
21b502d78c
Do not remove linux-base, when purging all the linux-*, in the tarball
...
build. Otherwise ubuntu-minimal is removed, and things get crazy.
2016-02-08 16:07:17 +00:00
Steve Langasek
cb58e88614
If a subarch is specified for a cloud image build, don't build rootfs
...
artifacts; these should come from the 'generic' build.
2016-02-05 11:08:26 -08:00
Ben Howard
fdd9a3e716
Remove unneeded packages from the root.tar.{gz,xz} cloud image targets
...
(LP: #1534765 ).
2016-01-17 01:06:56 +01:00
Daniel Watkins
216762748b
Move building of all architecture-specific CPC artifacts in to
...
Launchpad.
2015-11-06 09:54:59 +00:00