While this might look at it should it terminal emulators, in a raw tty
this can have different effects; e.g. being a bright blue/green and
nearly unreadable. For now, just remove the effect completely, the
semantics are still very much clear.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Otherwise, if anything is printed there, black bars appear at the
current cursor position in the TUI until after a refresh.
Also aligns it more closely. Might also be useful in the future for the
TUI to log some things.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Note that unlike the rest of the file, we connect to the response signal
instead of using Gtk3::Dialog->run, the reason is that run blocks the
main loop used by GTK and this undesirable to the point where
Gtk3::Dialog->run was removed for GTK 4.
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
Since we already handly non-present domain names, invalid names can be
handled the same way, as not to completely fail the installation.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Otherwise, the user would be blocked from continuing the the installer,
instead just being presented with an error.
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
This definitively worked without that value when the functionality
was first added in dfc02f3 ("fix #3093: allow to automatically reboot
on installation success"), so possibly something new with the glib,
gtk, or the perl bindings in bookworm..
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Similar to our actual battle proven get_ip_config, but as the TUI
uses this one, and switching to it rather more risk, make just
addresses optional, add skip for "lo" loopback and don't skip ifaces
that aren't UP in the current helper.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
with this you can type without removing the decimal places, but if
you type inside the decimal places it'll just move the cursor to the
end and do nothing
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
e.g., due to having no network (no DHCP lease)
Reported-by: Christian Ebner <c.ebner@proxmox.com>
Reported-by: Stefan Hanreich <s.hanreich@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
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>