[pbs-devel] [PATCH v5 proxmox{, -backup} 0/5] Add boot_mode, improve kernel version

Gabriel Goller g.goller at proxmox.com
Wed Nov 29 14:23:34 CET 2023


Ported the recent changes from the PVE NodeSummary (done by @Thomas) to
the PBS NodeDashboard.

It consists of:
* Adding the bootmode field, shows either Legacy BIOS, EFI, or EFI
    (Secure Boot)
* Declutter the kernel-version field and only show the release version
    and build-date.

Changes since v3:
  * Rename function
  * Substitute lazy_cell + Mutex with std::sync::OnceLock

Changes since v3:
  * Split functions into BootMode and SecureBoot status

Changes since v3:
  * Removed leftover debug print

Changes since v2:
 * Return the exact same stuff as in pve, so create a struct that holds
    mode and secureboot boolean
 * Fix indentation in js
 * Add efi spec link

Changes since v1:
 * Moved boot_mode detection to proxmox-sys
 * Added caching to boot_mode detection (lazy_static)
 * Return legacy kernel-version as well



proxmox:

Gabriel Goller (1):
  sys: add helper to get bootmode and secureboot status

 proxmox-sys/src/boot_mode.rs | 72 ++++++++++++++++++++++++++++++++++++
 proxmox-sys/src/lib.rs       |  1 +
 2 files changed, 73 insertions(+)
 create mode 100644 proxmox-sys/src/boot_mode.rs


proxmox-backup:

Gabriel Goller (4):
  node: status: added bootmode
  ui: dashboard: show the bootmode
  node: status: declutter kernel-version
  ui: dashboard: nicely display kernel version

 pbs-api-types/src/node.rs | 70 ++++++++++++++++++++++++++++++++++++---
 src/api2/node/status.rs   | 41 ++++++++++++++++++-----
 www/panel/NodeInfo.js     | 28 ++++++++++++++--
 3 files changed, 125 insertions(+), 14 deletions(-)


Summary over all repositories:
  5 files changed, 198 insertions(+), 14 deletions(-)

-- 
murpp v0.4.0





More information about the pbs-devel mailing list