If, for some reason, the network is not properly configured (due to
e.g. no DHCP server being present on the network), there will be no
routes in the runtime environment as well. So do not depend on that,
otherwise the installer fails at the start.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
In a8fbe0ff, the protocol was changed; such that the TUI now multiplies
the value by 100. Thus divide it here by 100 before sending it off.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Since the cargo lockfile was removed from the repo in 74e3a21, this
became useless.
Fixes: 74e3a21 ("tui: remove cargo lockfile")
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Since the TUI was put into a top-level workspace, the `target` folder
and lockfile exist too on that level.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Using the product is actually fine, but we should derive it from the
ISO env, not hard-coding "pve", but for now ok enough.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Currently the installer depends on the index to derive the selected
disks, so use that instead of a wishing-how-it-could-be approach.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
The proxinstall takes a GB float here and multiplies it up to KB for
most parts, which is then passed to various tools, passing bytes here
makes this go bonkers and try to create a 4 EiB swap partition.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
If, one would need to write the full product name, and as that is
already written in the "inner" dialogue header, lets just drop it
from the outer.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Otherwise, when STDOUT is connected to a pipe, it will not get flushed
completely after each message, which might than hangs the installer UI.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
This was accidentally removed with below commit.
Fixes: 4532cff ("run env: replace lsblk with hd_list but fix it up a bit")
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
This adds some duplication there, but much safer than restructuring
stuff at this point in time, we can deal with unification later.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Instead of lsblk we use the original `hd_list` to be closer
to what we originally had.
However, from the PVE codebase I copied over the use of the
`E: DEVNAME` property to find the `/dev` node like (since
some weird devices can have '!' in /sys with '/' in /dev),
drop the check for `/sys/block/$d/dev`, and provide both the
`/dev` and `/sys/block` path in the output array.
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>