Commit cd352e87 authored by Ben Hutchings's avatar Ben Hutchings

debian/control: Add Breaks against older versions of busybox

We only Recommend busybox rather than Depending on it, since we can
generally work without it.  But if it is installed then we will use it
(by default) and it's critical that it is new enough.  So add a Breaks
relation to ensure that it gets upgraded before initramfs-tools-core.

Closes: #855094
Signed-off-by: default avatarBen Hutchings <>
parent 17b0157d
......@@ -27,7 +27,7 @@ Multi-Arch: foreign
Recommends: ${busybox:Recommends}
Depends: klibc-utils (>= 2.0.4-8~), cpio, kmod | module-init-tools, udev, ${misc:Depends}
Suggests: bash-completion
Breaks: initramfs-tools (<< 0.121~)
Breaks: initramfs-tools (<< 0.121~), ${busybox:Breaks}
Replaces: initramfs-tools (<< 0.121~)
Description: generic modular initramfs generator (core tools)
This package contains the mkinitramfs program that can be used to
......@@ -9,6 +9,7 @@ BUSYBOX_PACKAGES := $(shell if dpkg-vendor --derives-from ubuntu; then echo busy
BUSYBOX_MIN_VERSION := 1:1.22.0-17~
echo >> debian/initramfs-tools-core.substvars "busybox:Breaks=$(wordlist 2,100,$(BUSYBOX_PACKAGES:%=, % (<< $(BUSYBOX_MIN_VERSION))))"
echo >> debian/initramfs-tools-core.substvars "busybox:Recommends=$(wordlist 2,100,$(BUSYBOX_PACKAGES:%=| % (>= $(BUSYBOX_MIN_VERSION))))"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment