mirror of
https://salsa.debian.org/kernel-team/initramfs-tools.git
synced 2026-01-26 15:39:08 +00:00
Drop Breaks/Conflicts that predate Debian 10 "buster" and Ubuntu 20.04 "focal"
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
This commit is contained in:
parent
5908b3cc84
commit
0c2367395f
5
debian/control
vendored
5
debian/control
vendored
@ -15,8 +15,7 @@ Multi-Arch: foreign
|
||||
Depends: initramfs-tools-core (= ${binary:Version}), linux-base, ${misc:Depends}
|
||||
Suggests: bash-completion
|
||||
Provides: linux-initramfs-tool
|
||||
Conflicts: linux-initramfs-tool, usplash (<< 0.5.50)
|
||||
Breaks: initscripts (<< 2.88dsf-59.3~), upstart, e2fsprogs (<< 1.42.13)
|
||||
Conflicts: linux-initramfs-tool
|
||||
Description: generic modular initramfs generator (automation)
|
||||
This package builds a bootable initramfs for Linux kernel packages. The
|
||||
initramfs is loaded along with the kernel and is responsible for
|
||||
@ -28,8 +27,6 @@ Multi-Arch: foreign
|
||||
Recommends: ${busybox:Recommends}, zstd
|
||||
Depends: klibc-utils (>= 2.0.4-8~), cpio (>= 2.12), kmod, udev, coreutils (>= 8.24), logsave | e2fsprogs (<< 1.45.3-1~), ${misc:Depends}
|
||||
Suggests: bash-completion
|
||||
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
|
||||
create a bootable initramfs for a Linux kernel. The initramfs should
|
||||
|
||||
2
debian/initramfs-tools.lintian-overrides
vendored
2
debian/initramfs-tools.lintian-overrides
vendored
@ -1,2 +0,0 @@
|
||||
# upstart will never be fixed, so it is correct to not specify a version
|
||||
initramfs-tools: breaks-without-version upstart
|
||||
5
debian/rules
vendored
5
debian/rules
vendored
@ -6,16 +6,13 @@
|
||||
# On Debian we can use either busybox or busybox-static, but on Ubuntu
|
||||
# and derivatives only busybox-initramfs will work.
|
||||
BUSYBOX_PACKAGES := $(shell if dpkg-vendor --derives-from ubuntu; then echo busybox-initramfs; else echo busybox busybox-static; fi)
|
||||
BUSYBOX_MIN_VERSION := 1:1.22.0-17~
|
||||
|
||||
override_dh_gencontrol:
|
||||
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))))"
|
||||
echo >> debian/initramfs-tools-core.substvars "busybox:Recommends=$(wordlist 2,100,$(BUSYBOX_PACKAGES:%=| %))"
|
||||
dh_gencontrol
|
||||
|
||||
override_dh_install:
|
||||
sed -e 's,@BUSYBOX_PACKAGES@,$(wordlist 2,100,$(BUSYBOX_PACKAGES:%=or %)),' \
|
||||
-e 's/@BUSYBOX_MIN_VERSION@/$(BUSYBOX_MIN_VERSION)/' \
|
||||
mkinitramfs > debian/initramfs-tools-core/usr/sbin/mkinitramfs
|
||||
chmod 755 debian/initramfs-tools-core/usr/sbin/mkinitramfs
|
||||
dh_install
|
||||
|
||||
@ -130,7 +130,7 @@ done
|
||||
|
||||
# Check busybox dependency
|
||||
if [ "${BUSYBOX}" = "y" ] && [ -z "${BUSYBOXDIR}" ]; then
|
||||
echo >&2 "E: @BUSYBOX_PACKAGES@, version @BUSYBOX_MIN_VERSION@ or later, is required but not installed"
|
||||
echo >&2 "E: @BUSYBOX_PACKAGES@ is required but not installed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user