- added apt-get update before installing packages
- install all packages at once instead of looping over them
- check for error from apt-get install
- don't try to chroot if copying resolv.conf fails
pyparted uses 'linux-swap(v1)' as the filesystem name to indicate swap files.
Curtin currently recognizes 'swap'. Update the FormatAction class to emit
'swap' to match curtin.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
Switch to GPT partition. This requires using a small gpt partition
to hold grub payloads and flagged as bios_grub. Add logic to
create a bios_grub_partition if one is not already created when
first partitioning devices.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
- Reset button will clear out any changes made to the filesystem model.
- Fixed Reset button label and callback.
- Reverted change to DiskPartitionView which called filesystem:finish instead
of returning back to FilesystemView.
- Fixed a few lint errors.
Signed-off-by: Ryan Harper <ryan.harper@canonical.com>
This writes out the filesystem format to /tmp/subiquity-config.yaml
and exists the installer cleanly.
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Depending on if partitions already exist or not will determine
if the add partition label shows the first gpt partition or just
a plain "add partition" label. For create swap it is disabled
and the color dimmed if partitions already exist.
Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
- Removed package list from installer-user-data, and added a placemarker
instead
- geninstaller inserts the package list INSTALLER_DEPS into
installer-user-data if OFFLINE is set to no, if OFFLINE is set to yes,
geninstaller chroots into rootfs and does apt-get install for everything in
INSTALLER_DEPS
- If geninstaller is run with -o or --offline, then during generate_img,
chroot into target and run apt-get install with all required packges for
subiquity.
- At the moment, cloud-init will still attempt to install packages when it
boots without network, then fail over to the next part of the init, and
eventually will run subiquity.
- While this is functional for an offline installer, it is preferrable to
tell cloud-init not to try to install packages, to avoid extra delays
and to keep errors out of the cloud-init log