[PATCH installer v3 25/38] install: iso env: use JSON boolean literals for product config

Christoph Heiss
2026-04-03T16:56:59Z

For Perl, they act the same as the previous `0`/`1` literals, but
create proper `true`/`false` literals when serializing to JSON.

This makes the final JSON more consistent and easier to parse.

No functional changes.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
---
Changes v2 -> v3:
* new patch

Proxmox/Install/ISOEnv.pm | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/Proxmox/Install/ISOEnv.pm b/Proxmox/Install/ISOEnv.pm
index a76077b..d2853fe 100644
--- a/Proxmox/Install/ISOEnv.pm
+++ b/Proxmox/Install/ISOEnv.pm
@@ -16,26 +16,26 @@ my $product_cfg = {
pve => {
fullname => 'Proxmox VE',
port => '8006',
- enable_btrfs => 1,
- bridged_network => 1,
+ enable_btrfs => JSON::true,
+ bridged_network => JSON::true,
},
pmg => {
fullname => 'Proxmox Mail Gateway',
port => '8006',
- enable_btrfs => 0,
- bridged_network => 0,
+ enable_btrfs => JSON::false,
+ bridged_network => JSON::false,
},
pbs => {
fullname => 'Proxmox Backup Server',
port => '8007',
- enable_btrfs => 0,
- bridged_network => 0,
+ enable_btrfs => JSON::false,
+ bridged_network => JSON::false,
},
pdm => {
fullname => 'Proxmox Datacenter Manager',
port => '8443', # TODO: confirm
- enable_btrfs => 0,
- bridged_network => 0,
+ enable_btrfs => JSON::false,
+ bridged_network => JSON::false,
},
};

--
2.53.0