Michael Hudson-Doyle
b3dafb250b
fix detection of mounted partitions
...
Even if we are going to ignore a mountpoint, we still need to process
its children...
Add machine config where the installer is running from a partition of a
disk you might want to install to, and an api test.
2023-07-24 12:41:35 +12:00
Dan Bungert
e84b3dda8f
Merge pull request #1530 from blackboxsw/use-cloudinit-for-networking
...
subiquity.network: cloud-init networking when netplan root-readonly
2023-07-21 14:29:13 -06:00
Chad Smith
2af582984c
subiquity.network: cloud-init networking when netplan root-readonly
...
When cloudinit.features.NETPLAN_CONFIG_ROOT_READ_ONLY is True,
cloud-init will write /etc/netplan/50-cloud-init.yaml as read-only
root.
This added security allows for subiquity to use cloud-init's
network renderer directly allowing both datasource and network
configuration passed in one place.
Read cloud-init features from
/run/cloud-init/combined-cloud-config.json when present.
Any netplan wifi configuration can be specified in a single
root-read-only network config file
/etc/cloud/cloud.cfg.d/90-installer-network.cfg instead of
having a separate config file for wifi, which could contain
credentials.
This simplifies golden image creation from images installed using
subiquity because image builders will not need to track down and
purge separate /etc/netplan/00-installer-config.yaml and
/etc/netplan/subiquity-disable-cloudinit-networking.cfg when preparing
a golden image.
Eventually, netplan config validation and cloudinit will support
separation of sensitive configuration by cloud-init without needing
to pre-categorize sensitive information.
This will allow cloud-init to grow to ability to write separate
world-readable configuration from config which is security sensitive
with no change needed in subiquity.
2023-07-21 13:46:50 -06:00
Dan Bungert
38bb450136
Merge pull request #1730 from dbungert/zfs-action-ordering
...
Zfs action ordering
2023-07-21 09:55:50 -06:00
Michael Hudson-Doyle
a9828edbb5
Merge pull request #1736 from mwhudson/dump-crash-files-in-ci
...
runtests.sh: dump crash files to stdout in CI
2023-07-21 12:07:49 +12:00
Michael Hudson-Doyle
06c89ce749
Merge pull request #1734 from mwhudson/hybrid-autoinstall
...
fix autoinstalling core boot classic and add integration and unit tests
2023-07-21 12:07:41 +12:00
Michael Hudson-Doyle
f08830cd71
fix autoinstalling core boot classic and add integration and unit tests
2023-07-21 11:39:50 +12:00
Michael Hudson-Doyle
cab3f072cd
runtests.sh: dump crash files to stdout in CI
2023-07-21 11:37:36 +12:00
Dan Bungert
a258f20e6a
filesystem: strict canmount
2023-07-20 12:20:19 -06:00
Dan Bungert
7da80945e9
filesystem: let create_zpool be opinionated
2023-07-20 12:15:27 -06:00
Dan Bungert
9dab634ade
filesystem: stricter zfs canmount tests
2023-07-20 12:15:22 -06:00
Dan Bungert
846098027c
filesystem: handle 'Mountlike.path is None'
2023-07-20 12:15:17 -06:00
Dan Bungert
8e7499ba2e
filesystem: ZFS/Zpool may be a mountpoint
2023-07-20 09:06:57 -06:00
Dan Bungert
203b9485a4
filesystem: let ZPool be more like Mount
2023-07-20 09:06:57 -06:00
Dan Bungert
8e084673c5
filesystem: let ZFS handle fstype / path
2023-07-20 09:06:57 -06:00
Michael Hudson-Doyle
5a4686fd01
Merge pull request #1733 from mwhudson/disk-annotations
...
fix some of the annotations on Disk
2023-07-20 20:03:27 +12:00
Michael Hudson-Doyle
9886826a51
Merge pull request #1732 from mwhudson/reformat-install-media-size-fix
...
Only consider size not in use when considering disks for guided reformat
2023-07-20 15:51:07 +12:00
Dan Bungert
3dfaa9ccea
Merge pull request #1731 from dbungert/zfs-fixes
...
Zfs fixes
2023-07-19 19:14:01 -06:00
Michael Hudson-Doyle
c2c5c94031
Only consider size not in use when considering disks for guided reformat
...
And as a bonus make the VariationInfo nicer.
2023-07-20 13:04:56 +12:00
Michael Hudson-Doyle
891c866b3f
fix some of the annotations on Disk
...
Some of these are probably not really Optional but well.
2023-07-20 12:57:37 +12:00
Dan Bungert
9a572996c8
Merge pull request #1729 from dbungert/udi-2252
...
filesystem: fix ~6GB extra pad on classic min size
2023-07-19 18:34:48 -06:00
Dan Bungert
1c9ada93e8
doc: reference update for guided zfs
2023-07-19 14:54:37 -06:00
Dan Bungert
ffc73ff8b1
filesystem: fix failed zpool export
...
Ordering matters of zpool export, or we get an 'export failed' error.
If one does a force reboot the export was not performed, and we
initramfs-prompt until someone does `zpool import -f $poolname`.
2023-07-19 14:54:37 -06:00
Dan Bungert
e79b6e2305
filesystem: guided zfs ordering tweak
2023-07-19 14:54:37 -06:00
Dan Bungert
86b9c5749b
examples: guided zfs autoinstall example
2023-07-19 14:54:37 -06:00
Dan Bungert
83c7c6de93
filesystem: log unknown action types
2023-07-19 14:54:37 -06:00
Michael Hudson-Doyle
b57087c8da
Merge pull request #1727 from mwhudson/no-apt-configuration-for-core
...
support core installs a bit more
2023-07-20 08:34:44 +12:00
Dan Bungert
c9fcd7d798
filesystem: fix ~6GB extra pad on classic min size
2023-07-19 09:48:08 -06:00
Dan Bungert
1d4b0ff71b
Merge pull request #1728 from mwhudson/curtin-update
...
update curtin
2023-07-19 09:47:34 -06:00
Michael Hudson-Doyle
55c68b5855
add an integration test to install core and some fixes
...
Note that it may not be possible to create an fsimage to use as a core
installation source (haven't tried, tbh) but I have upcoming changes to
use a disk image as installation source.
2023-07-19 15:49:32 +12:00
Michael Hudson-Doyle
8c958dda7e
update curtin
...
2495681a support dd-raw:file:// urls
ecd94789 have ChrootableTarget ignore allow_daemons when target == "/"
I need the former for the core desktop installation stuff, the latter to
fix integration tests in some environments.
2023-07-19 15:45:46 +12:00
Michael Hudson-Doyle
0b3a1c2c6a
generalize InstallController's handling of installs without apt
2023-07-19 15:41:33 +12:00
Michael Hudson-Doyle
008da97c03
Merge pull request #1723 from mwhudson/reformat-from-rp
...
offer guided options for the install media
2023-07-19 14:33:46 +12:00
Michael Hudson-Doyle
17c7b65442
include in use information in storage/v2 api
2023-07-19 13:01:01 +12:00
Michael Hudson-Doyle
7a39a53d59
offer reformats for the install media
2023-07-19 13:00:54 +12:00
Michael Hudson-Doyle
c147945e10
handle in use partitions in server ui a bit
2023-07-19 13:00:16 +12:00
Michael Hudson-Doyle
9d050d4049
move filtering of disks with mounted partitions to client side
2023-07-19 13:00:16 +12:00
Michael Hudson-Doyle
37a4a76cee
do not record install media as directly formatted
...
instead prefer to record the partition as such (as casper does)
2023-07-19 13:00:16 +12:00
Michael Hudson-Doyle
a8d680ebd0
identify mounted partitions more explicitly
...
Some care to handle old machine configs in sample data. Would be nice to
have a semi-automated way to refresh them!
2023-07-19 13:00:16 +12:00
Michael Hudson-Doyle
e399670002
Merge pull request #1720 from mwhudson/configure-rp-boot
...
configure reset partition boot
2023-07-19 12:59:25 +12:00
Michael Hudson-Doyle
7353085eb2
Merge pull request #1707 from mwhudson/no-mirror-config-for-core
...
do not do any mirror configuration when installing core
2023-07-19 08:58:43 +12:00
Michael Hudson-Doyle
0287671bd5
Merge pull request #1724 from mwhudson/install-races
...
wait for subscribers to run when broadcasting INSTALL_CONFIRMED
2023-07-19 08:58:04 +12:00
Michael Hudson-Doyle
9268c92aa2
Merge pull request #1725 from mwhudson/oem-no-wait-apt
...
oem: check variant before waiting for apt configuration
2023-07-19 08:57:51 +12:00
Michael Hudson-Doyle
3fc38439ca
Merge pull request #1726 from mwhudson/generalize-screen-skipping
...
generalize the way screens are skipped when installing desktop
2023-07-19 08:56:53 +12:00
Dan Bungert
368c5d10ee
Merge pull request #1699 from dbungert/zfs-guided
...
Zfs guided
2023-07-18 08:24:07 -06:00
Michael Hudson-Doyle
f838fcabb3
generalize the way screens are skipped when installing desktop
...
Also skip identity screen when installing neither server nor desktop
(i.e. core).
2023-07-18 22:42:24 +12:00
Michael Hudson-Doyle
ece437c73e
do not do any mirror configuration when installing core
2023-07-18 22:33:47 +12:00
Michael Hudson-Doyle
66823be3f7
oem: check variant before waiting for apt configuration
...
because if we add support for variant == 'core' (spoilers!), then apt
may never be configured.
2023-07-18 22:27:30 +12:00
Michael Hudson-Doyle
9eb7b24c9c
rejig answers support to not call confirm_install before storage is configured
2023-07-18 22:27:30 +12:00
Michael Hudson-Doyle
00102ec258
wait for subscribers to run when broadcasting INSTALL_CONFIRMED
2023-07-18 16:03:08 +12:00