mirror of
https://salsa.debian.org/kernel-team/initramfs-tools.git
synced 2026-01-26 15:39:08 +00:00
initramfs-tools: guard too kernel postrm script
Same story as postinst script. Signed-off-by: maximilian attems <max@stro.at>
This commit is contained in:
parent
c52544d9fd
commit
44b93e0016
@ -3,6 +3,8 @@
|
||||
version="$1"
|
||||
bootopt=""
|
||||
|
||||
[ -x /usr/sbin/update-initramfs ] || exit 0
|
||||
|
||||
# passing the kernel version is required
|
||||
if [ -z "${version}" ]; then
|
||||
echo >&2 "W: initramfs-tools: ${DPKG_MAINTSCRIPT_PACKAGE:-kernel package} did not pass a version number"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user