mirror of
https://git.proxmox.com/git/proxmox-backup-restore-image
synced 2025-08-04 15:54:10 +00:00

proxmox-restore-vm-data provides means to build a debian package containing a minimalistic Linux kernel and a corresponding initramfs image for use in a file-restore VM. Launched with QEMU/KVM, it boots in 1.6 seconds to userspace (on AMD 2700X) and has a minimal attack surface (no network stack other than virtio-vsock, no auxiliary device support (USB, etc...), userspace written in Rust) as opposed to mounting backup archives directly on the host. Since our Rust binaries are currently not fully statically linked, we need to include some libraries into the initramfs as well. This is done in 'build_initramfs.sh'. A minimal /init is included as a Rust binary (init-shim-rs), doing only the bare-minimum userspace setup before handing over control to the file-restore daemon (see 'proxmox-backup' repository). The debian package comes with a 'activate-noawait pbs-file-restore-initramfs' trigger activation to rebuild the cached initramfs when the base image shipped here updates. This is taken care of by proxmox-file-restore. Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
31 lines
720 B
Diff
31 lines
720 B
Diff
From 4cf77185b43a29ad2d70749648cac83330030cf9 Mon Sep 17 00:00:00 2001
|
|
From: Stefan Reiter <s.reiter@proxmox.com>
|
|
Date: Tue, 17 Nov 2020 14:42:52 +0100
|
|
Subject: [PATCH] OVERRIDE: do not build xr-usb-serial
|
|
|
|
We don't have USB support in the kernel, so this will fail - and for
|
|
some reason there's no Kconfig setting for this...
|
|
|
|
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
|
|
---
|
|
ubuntu/Makefile | 3 ---
|
|
1 file changed, 3 deletions(-)
|
|
|
|
diff --git a/ubuntu/Makefile b/ubuntu/Makefile
|
|
index 67c6d5b98b53..6e7264845b66 100644
|
|
--- a/ubuntu/Makefile
|
|
+++ b/ubuntu/Makefile
|
|
@@ -19,9 +19,6 @@ obj-$(CONFIG_HIO) += hio/
|
|
##
|
|
##
|
|
##
|
|
-ifeq ($(ARCH),x86)
|
|
-obj-y += xr-usb-serial/
|
|
-endif
|
|
##
|
|
##
|
|
##
|
|
--
|
|
2.20.1
|
|
|