[pve-devel] [PATCH pve-kernel-meta 5/5] proxmox-boot: add pin/unpin functionality for non-p-b-t systems

2022-01-31 Thread Stoiko Ivanov
While running `update-grub` directly in this case is a divergence from the semantics of the command when p-b-t handles booting it makes the cleanup in the `next-boot` case a bit tidier. Signed-off-by: Stoiko Ivanov --- bin/proxmox-boot-tool | 17 +++-- 1 file changed, 15 insertions(+

[pve-devel] [PATCH pve-kernel-meta 1/5] proxmox-boot: drop unused potential_esps function

2022-01-31 Thread Stoiko Ivanov
Signed-off-by: Stoiko Ivanov --- proxmox-boot/zz-proxmox-boot | 5 - 1 file changed, 5 deletions(-) diff --git a/proxmox-boot/zz-proxmox-boot b/proxmox-boot/zz-proxmox-boot index e516b61..90d4aa9 100755 --- a/proxmox-boot/zz-proxmox-boot +++ b/proxmox-boot/zz-proxmox-boot @@ -39,11 +39,6 @@

[pve-devel] [PATCH pve-kernel-meta 3/5] proxmox-boot: fix #3671 add pin/unpin for kernel-version

2022-01-31 Thread Stoiko Ivanov
The 2 commands follow the mechanics of p-b-t kernel add/remove in writing the desired abi-version to a config-file in /etc/kernel and actually modifying the boot-loader configuration upon p-b-t refresh. A dedicated new file is used instead of writing the version (with some kind of annotation) to t

[pve-devel] [PATCH pve-kernel-meta 2/5] proxmox-boot: add get_first_line_from_file helper and use it

2022-01-31 Thread Stoiko Ivanov
Signed-off-by: Stoiko Ivanov --- proxmox-boot/functions | 8 proxmox-boot/zz-proxmox-boot | 4 +--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/proxmox-boot/functions b/proxmox-boot/functions index 6e19c20..4515a2d 100755 --- a/proxmox-boot/functions +++ b/proxmo

[pve-devel] [PATCH pve-kernel-meta 4/5] proxmox-boot: add kernel next-boot command

2022-01-31 Thread Stoiko Ivanov
by pinning the desired version and touching a flag file, which is used by the systemd service as condition for unpinning and refreshing upon reboot Signed-off-by: Stoiko Ivanov --- bin/proxmox-boot-tool | 9 +++-- debian/pve-kernel-helper.install | 1 + debian/

[pve-devel] [PATCH pve-kernel-meta 0/5] proxmox-boot: add kernel pinning functionality (#3761)

2022-01-31 Thread Stoiko Ivanov
The following series adds: * proxmox-boot-tool kernel pin (to permanently set the default entry of the respective bootloader) * proxmox-boot-tool kernel unpin (to undo a previous pin) * proxmox-boot-tool kernel next-boot (to do a pin+touch a file, which causes an unpin on next boot) This is t

Re: [pve-devel] [PATCH qemu-server 2/4] api: clone: fork before locking

2022-01-31 Thread Fabian Grünbichler
On January 27, 2022 3:01 pm, Fabian Ebner wrote: > using the familiar early+repeated checks pattern from other API calls. > Only intended functional changes are with regard to locking/forking. two questions: - the FW config cloning happens inside the worker now, while it was previously before f

[pve-devel] applied: [PATCH pve-manager v3] api: add 'type' parameter to pool GET endpoint

2022-01-31 Thread Thomas Lamprecht
On 31.01.22 12:16, Hannes Laimer wrote: > Signed-off-by: Hannes Laimer > --- > v3: > - fix logic, eq -> ne > > v2(based on Thomas Lamprecht 's feedback): > - remove openzv > - optimize loops > > This was asked in a forum post, and it does not interfere with > anything else AFAIK. > > PVE

[pve-devel] [PATCH pve-manager v3] api: add 'type' parameter to pool GET endpoint

2022-01-31 Thread Hannes Laimer
Signed-off-by: Hannes Laimer --- v3: - fix logic, eq -> ne v2(based on Thomas Lamprecht 's feedback): - remove openzv - optimize loops This was asked in a forum post, and it does not interfere with anything else AFAIK. PVE/API2/Pool.pm | 33 - 1 file chang

Re: [pve-devel] [PATCH pve-manager v2] api: add 'type' parameter to pool GET endpoint

2022-01-31 Thread Fabian Ebner
Am 31.01.22 um 11:11 schrieb Fabian Ebner: > Am 31.01.22 um 09:41 schrieb Hannes Laimer: >> Signed-off-by: Hannes Laimer >> --- >> v2(based on Thomas Lamprecht 's feedback): >> - remove openzv >> - optimize loops >> >> This was asked in a forum post, and it does not interfere with >> anything

Re: [pve-devel] [PATCH pve-manager v2] api: add 'type' parameter to pool GET endpoint

2022-01-31 Thread Fabian Ebner
Am 31.01.22 um 09:41 schrieb Hannes Laimer: > Signed-off-by: Hannes Laimer > --- > v2(based on Thomas Lamprecht 's feedback): > - remove openzv > - optimize loops > > This was asked in a forum post, and it does not interfere with > anything else AFAIK. > > PVE/API2/Pool.pm | 33

[pve-devel] [PATCH pve-manager v2] api: add 'type' parameter to pool GET endpoint

2022-01-31 Thread Hannes Laimer
Signed-off-by: Hannes Laimer --- v2(based on Thomas Lamprecht 's feedback): - remove openzv - optimize loops This was asked in a forum post, and it does not interfere with anything else AFAIK. PVE/API2/Pool.pm | 33 - 1 file changed, 20 insertions(+), 13 dele