From 3740a076196960eaed05def4cf4a5edfdda82cdf Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Wed, 24 May 2023 09:24:41 +0000 Subject: [PATCH] feat: use initramfs-tools from backports --- distro/debian/debian.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/distro/debian/debian.go b/distro/debian/debian.go index ed5961b..d4e63af 100644 --- a/distro/debian/debian.go +++ b/distro/debian/debian.go @@ -263,9 +263,14 @@ func (d Debian) runs() (commands []string) { cmdf("apt-get update || apt-get update || apt-get update") + // by default Debian backports repositories have a lower + // priority than stable, so we should specify it manually + cmdf("apt-get -y install -t %s-backports initramfs-tools", + d.release.Name()) + pkglist := []string{ "wget", "build-essential", "libelf-dev", "git", - "kmod", "linux-base", "initramfs-tools", "libssl-dev", + "kmod", "linux-base", "libssl-dev", "'^(gcc-[0-9].[0-9]|gcc-[0-9]|gcc-[1-9][0-9])$'", }