]> git.proxmox.com Git - proxmox-backup-restore-image.git/commit
add debug initramfs as seperate package
authorStefan Reiter <s.reiter@proxmox.com>
Thu, 6 May 2021 15:26:24 +0000 (17:26 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 25 May 2021 11:25:02 +0000 (13:25 +0200)
commit2a1ef81fcad7d2317990672e8d678a93cb0ac976
treebb434ef636a948ce77cab36c72581bf18ae6f9cd
parent37456b06e8026940035094c6a9ac0953473e0b9a
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>
Makefile
debian/control
debian/proxmox-backup-restore-image-debug.install [new file with mode: 0644]
debian/proxmox-backup-restore-image-debug.lintian-overrides [new file with mode: 0644]
debian/proxmox-backup-restore-image-debug.triggers [new file with mode: 0644]
src/Makefile
src/build_initramfs.sh
src/init-shim-rs/src/main.rs