From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 65C2E1FF0DE for ; Thu, 19 Nov 2026 15:16:28 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 860752178A; Thu, 19 Nov 2026 15:15:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=genua.de; s=202307; t=1795097668; bh=Lbi+K6ZzP8b/OteyGcWUFE1eGUfZuK1b7vGQ7dzSQ5U=; h=Date:From:To:Subject:References:In-Reply-To:From; b=l4W57AYnhPgt8l4Q+y0KDBnWQ1J2Uc7vjisz7HiEXwpeK/UaKwvacAY05h8Rdn6Ci qT3mgr+iAUnnnnT4tcLGqBdKO33KvKhPqIeWS/Q6zv29pXNXmQMNYpiKB/66kd7Kq4 IOT72X7SWCt6+Gee15drMzdMenP5huciq4PplhpXX0kk+30Jg8TCHNKzA1KNQ5obTp w2xEVnUMH8VgA+b6We8+yXBi0gz9w8+Zx2Qp0oB3KSifyTUWRbd09Af1Zwc5a/VHgV J0jc3DumghXq9370rH66xr0h01PA9EoWThNo0+BXxfbLNPTZ5hlhRbT8oSD9VIBHIY xVM6nbFavgI6g== Date: Thu, 19 Nov 2026 15:14:27 +0100 From: Christian Ludwig To: Subject: [PATCH pve-manager v4 15/20] ui: storage: add efi-firmware content type support Message-ID: <037b13c8d61ce9dec69530acf9d697b12ed402dc.1795092172.git.christian_ludwig@genua.de> References: MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [192.168.217.185] X-ClientProxiedBy: kch1-mta09.win.genua.de (10.208.16.109) To kch1-mta07.win.genua.de (10.208.16.107) Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline X-SPAM-LEVEL: Spam detection results: 0 AWL 0.052 Adjusted score from AWL reputation of From: address DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust SPF_HELO_PASS -0.001 SPF: HELO matches SPF record SPF_PASS -0.001 SPF: sender matches SPF record UNPARSEABLE_RELAY 0.001 Informational: message has unparseable relay lines Message-ID-Hash: 4PAOYKDRNAX6ZSAXNBT34VX4ZVQILZKB X-Message-ID-Hash: 4PAOYKDRNAX6ZSAXNBT34VX4ZVQILZKB X-MailFrom: christian_ludwig@genua.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Add the 'efi-firmware' storage content type to the Web UI: - Utils.js: add display name for the content type - ContentTypeSelector: include in the default content type list - CephFSEdit: include in its explicit content type list, the backend CephFS plugin allows the type as well - Browser: add a tab for browsing and uploading firmware images; the format is always 'raw' for this type, so drop that column - UploadToStorage: only accept files with the '.fd' extension, like the backend does Signed-off-by: Christian Ludwig --- www/manager6/Utils.js | 1 + www/manager6/form/ContentTypeSelector.js | 11 ++++++++++- www/manager6/storage/Browser.js | 14 ++++++++++++++ www/manager6/storage/CephFSEdit.js | 2 +- www/manager6/window/UploadToStorage.js | 1 + 5 files changed, 27 insertions(+), 2 deletions(-) diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js index c616ab9b..feca7e29 100644 --- a/www/manager6/Utils.js +++ b/www/manager6/Utils.js @@ -761,6 +761,7 @@ Ext.define('PVE.Utils', { rootdir: gettext('Container'), snippets: gettext('Snippets'), import: gettext('Import'), + 'efi-firmware': gettext('EFI Firmware'), 'vm-vol': gettext('VM Disk'), 'vm-state': gettext('VM State'), 'ct-vol': gettext('Container Volume'), diff --git a/www/manager6/form/ContentTypeSelector.js b/www/manager6/form/ContentTypeSelector.js index 874bb3b6..2fb2c220 100644 --- a/www/manager6/form/ContentTypeSelector.js +++ b/www/manager6/form/ContentTypeSelector.js @@ -80,7 +80,16 @@ Ext.define('PVE.form.ContentTypeSelector', { var me = this; if (me.cts === undefined) { - me.cts = ['images', 'iso', 'vztmpl', 'backup', 'rootdir', 'snippets', 'import']; + me.cts = [ + 'images', + 'iso', + 'vztmpl', + 'backup', + 'rootdir', + 'snippets', + 'import', + 'efi-firmware', + ]; } me.comboItems = me.comboItemsFor(me.showVolumeTypes || me.usesVolumeType(me.value)); diff --git a/www/manager6/storage/Browser.js b/www/manager6/storage/Browser.js index b4c20992..37e593d0 100644 --- a/www/manager6/storage/Browser.js +++ b/www/manager6/storage/Browser.js @@ -189,6 +189,20 @@ Ext.define('PVE.storage.Browser', { pluginType: plugin, }); } + if (contents.includes('efi-firmware')) { + me.items.push({ + xtype: 'pveStorageContentView', + title: gettext('EFI Firmware'), + iconCls: 'fa fa-microchip', + itemId: 'contentEfiFirmware', + content: 'efi-firmware', + showColumns: ['name', 'date', 'size'], + pluginType: plugin, + enableUploadButton: enableUpload, + enableDownloadUrlButton: enableDownloadUrl, + useUploadButton: true, + }); + } } if (caps.storage['Permissions.Modify']) { diff --git a/www/manager6/storage/CephFSEdit.js b/www/manager6/storage/CephFSEdit.js index db54df87..3b7a49f3 100644 --- a/www/manager6/storage/CephFSEdit.js +++ b/www/manager6/storage/CephFSEdit.js @@ -95,7 +95,7 @@ Ext.define('PVE.storage.CephFSInputPanel', { me.column2 = [ { xtype: 'pveContentTypeSelector', - cts: ['backup', 'iso', 'vztmpl', 'snippets', 'import'], + cts: ['backup', 'iso', 'vztmpl', 'snippets', 'import', 'efi-firmware'], fieldLabel: gettext('Content'), name: 'content', value: 'backup', diff --git a/www/manager6/window/UploadToStorage.js b/www/manager6/window/UploadToStorage.js index a5fa1773..5b75555d 100644 --- a/www/manager6/window/UploadToStorage.js +++ b/www/manager6/window/UploadToStorage.js @@ -12,6 +12,7 @@ Ext.define('PVE.window.UploadToStorage', { import: ['.ova', '.qcow2', '.raw', '.vmdk'], iso: ['.img', '.iso'], vztmpl: ['.tar.gz', '.tar.xz', '.tar.zst'], + 'efi-firmware': ['.fd'], }, // accepted for file selection, but the extension does not tell the image format, so the user -- 2.34.1