stacki
stacki copied to clipboard
Stacki OS frontend installs not partitioning disks
I have only tested on a vm. The install wizard throws the following error.

failed to find suitable stage1 device
The fix is to select the hard drive, choose standard partitioning, set automatically and accept the changes.

Cause of bug is an empty attributes dictionary, as code was originally written with backends in mind where this dictionary would be populated by a call to stack list host profile chapter=stacki
and land in /tmp/stack_site/__init__.py
.
In this case, __init__.py
is empty (that command doesn't work for installing frontends) but it should be dict of attributes, csv_partitions, csv_controllers.
Fix is (on frontends only) to populate this file by parsing /tmp/site.attrs
to populate the attributes dictionary. The other two objects should be able to be empty lists.
Reopening. Issue still exists on a normal install. Workaround is still valid.
My test included using a pre-made site.attrs where nukedisks=true
. Fix now depends on either:
- #183 (add nukedisks checkbox to installer) OR:
- Declaring that if the user selects 'automated' partitioning, that implies nukedisks=true and adjusting the end of
wizard.py
to set nukedisks in site.attrs file.