mirror of
https://git.proxmox.com/git/proxmox-backup-restore-image
synced 2025-04-29 09:15:33 +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>
27 lines
820 B
Diff
27 lines
820 B
Diff
From 2c972569ef5b641846773bee3b3a0191ba66165e Mon Sep 17 00:00:00 2001
|
|
From: Stefan Reiter <s.reiter@proxmox.com>
|
|
Date: Tue, 16 Feb 2021 17:14:41 +0100
|
|
Subject: [PATCH] FIXUP: syntax error in Ubuntu Sauce
|
|
|
|
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
|
|
---
|
|
include/linux/audit.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/include/linux/audit.h b/include/linux/audit.h
|
|
index 55cc03c1bed8..8f84c9503827 100644
|
|
--- a/include/linux/audit.h
|
|
+++ b/include/linux/audit.h
|
|
@@ -253,7 +253,7 @@ static inline void audit_log_path_denied(int type, const char *operation)
|
|
static inline void audit_log_lsm(struct lsmblob *blob, bool exiting)
|
|
{ }
|
|
static inline int audit_log_task_context(struct audit_buffer *ab,
|
|
- struct lsmblob *blob);
|
|
+ struct lsmblob *blob)
|
|
{
|
|
return 0;
|
|
}
|
|
--
|
|
2.20.1
|
|
|