Commit Graph

12 Commits

Author SHA1 Message Date
Thomas Lamprecht
92977ccdf5 buildsys: derive upload dist automatically
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-30 10:09:22 +02:00
Thomas Lamprecht
96aa35260a buildsys: clean-up cached packages in top-level clean target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-30 10:09:21 +02:00
Thomas Lamprecht
09e46f60f1 update kernel to 6.2.16 & ZFS to 2.1.11, drop outdated patches
switch to our new unified ubuntu-kernels git origin, allows for
simpler update (no buildsys change required anymore)

The two patches dropped are:

- removal of xr-usb-uart, which was patched in by ubuntu (thus no
  KConfig switch, and got now removed, see:
  https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1945938
- a fix for a syntax error in Ubuntu patches, which is fixed in newer
  repo already

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-30 10:09:05 +02:00
Thomas Lamprecht
809d9b2254 buildsys: pre-cache initramfs dependencies on build-dir assembly
makes for huge "source" tarballs with DSC, but much nicer than
downloading them on build.

Still missing: using apt-rdepends should be avoided either way..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 17:58:58 +02:00
Thomas Lamprecht
d7de479f9a buildsys: shorter build-dir rules
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 15:46:21 +02:00
Thomas Lamprecht
043c575c19 buildsys: improve DSC target & add sbuild convenience target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 15:45:14 +02:00
Thomas Lamprecht
2695c25369 makefile: convert to use simple parenthesis
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-27 13:16:01 +02:00
Thomas Lamprecht
00749b1253 update kernel to Ubuntu Jammy based on 5.15.12
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-11-08 09:50:54 +01:00
Thomas Lamprecht
9173993332 upload to PVE 7
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-06-28 12:41:00 +02:00
Stefan Reiter
2a1ef81fca add debug initramfs as seperate package
"proxmox-backup-restore-image-debug", containing only the debug
initramfs, so depends on the base "proxmox-backup-restore-image" for the
kernel.

Adapt the init-shim to start an agetty on ttyS1, which the host
can use to connect to a root shell for debugging, and use
create_dir_all, since some debug packages seem to create /sys and /proc
as empty dirs already.

The build_initramfs.sh script is modified to include dependency
resolution via apt-rdepends, so debug packages like agetty (util-linux),
busybox and gdb can easily be added. This now builds both the regular
and the debug binary at once, to avoid downloading shared packages
twice.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
2021-05-25 13:25:02 +02:00
Thomas Lamprecht
275f3083a8 update/rework packaging and buildsys
try to split packaging from build and lots of such stuff

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-03-15 19:24:27 +01:00
Stefan Reiter
3b259e7a26 initial commit
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>
2021-02-17 09:03:52 +01:00