13 Commits

Author SHA1 Message Date
Daniel Watkins
15d147bcdb Add replace_grub_root_with_label function
When update-grub is run, it will detect the disks in the build system.
Currently, we sed the grub configuration in places where this happens;
replace_grub_root_with_label moves that seddery in to a single callable
location to avoid ending up with multiple versions of it.

(It's worth noting that we also do this in 999-cpc-fixes.chroot, but as our
functions file isn't available within the chroot we don't use it there.)
2016-09-02 12:54:19 +01:00
Steve Langasek
e51a8f8aef Make sure we still mount the kernel filesystems in the disk setup
We skip the previous unmount/remount behavior because that makes things
unwieldly when there are multiple partitions; but we still have setup to do,
so that /dev is available for grub, etc.
2016-02-06 21:26:04 -08:00
Steve Langasek
e9d31ea96a Fix some thinkos in the loop device name handling 2016-02-06 18:21:49 -08:00
Steve Langasek
99cdaafd61 Refactor ubuntu-cpc hooks to allow us to handle images where the root
partition should not be partition 1.
2016-02-06 00:34:16 -08:00
Ben Howard
ca800e778b * ubuntu-cpc:
- fixed loop setup due to change of kpartx output
  - only use grub-install logic for Intel architectures
2016-02-02 13:10:06 -07:00
Ben Howard
7853f8b318 ubuntu-cpc:
- added ability to create derivative images
- added function to convert images to qcow2
- cleaned up the loop clean up logic
- added function to umount and settle devices
2015-12-07 11:42:49 -07:00
Michael Vogt
c97c00d749 manually merge upload of 2.359 2015-12-07 11:20:57 +01:00
Ben Howard
1855130ecc Pre-merge commit 2015-11-13 08:09:26 -07:00
Ben Howard
48a08042ed Fix 2015-11-12 18:52:33 -07:00
Ben Howard
4a752e14c0 Use standard tools for resize 2015-11-12 17:52:05 -07:00
Ben Howard
9a87b066cf Comment fixup 2015-11-12 17:33:47 -07:00
Ben Howard
e931fbeaa5 ubuntu-cpc: move vmdk creation code into common funtion to support Vagrant Box builds 2015-11-12 17:21:33 -07:00
Daniel Watkins
216762748b Move building of all architecture-specific CPC artifacts in to
Launchpad.
2015-11-06 09:54:59 +00:00