Package: debirf
Version: 0.35
Severity: normal
Tags: patch

Dear Maintainer,

Running debirf in a sid chroot results in the following error :

$ debirf make minimal
...
extracting kernel package linux-image-4.3.0-1-amd64_4.3.5-1_amd64.deb...
Reading package lists... Done
Building dependency tree... Done
Package module-init-tools is not available, but is referred to by another 
package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'module-init-tools' has no installation candidate
run-parts: minimal/modules/install-kernel exited with return code 100



It seems that 'kmod' superseded 'module-init-tools'.
(https://packages.qa.debian.org/k/kmod/news/20151220T175002Z.html,
"* Remove the module-init-tools transitional package.")

There is no error message with the attached patch applied.

Regards,
JH Chatenet

diff -Naur a/usr/share/debirf/modules/install-kernel 
b/usr/share/debirf/modules/install-kernel
--- a/usr/share/debirf/modules/install-kernel
+++ b/usr/share/debirf/modules/install-kernel
@@ -54,7 +54,11 @@
 debirf_exec dpkg --extract /var/cache/apt/archives/"$KPKG" /
 
 # install the module init tools, since they are needed for depmod
-debirf_exec apt-get --assume-yes install module-init-tools
+if [ "$DEBIRF_SUITE" = "squeeze" ] ; then
+    debirf_exec apt-get --assume-yes install module-init-tools
+else
+    debirf_exec apt-get --assume-yes install kmod
+fi
 
 # depmod to create module list
 KVERS=$(ls -1 -t "$DEBIRF_ROOT/lib/modules" | head -n1)


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages debirf depends on:
ii  apt          1.2.3
ii  cpio         2.11+dfsg-5
ii  debootstrap  1.0.78+nmu1
ii  fakechroot   2.18-1
ii  fakeroot     1.20.2-1
ii  klibc-utils  2.0.4-8

Versions of packages debirf recommends:
pn  grub-common | syslinux-common  <none>
pn  lsb-release                    <none>
pn  xorriso                        <none>

debirf suggests no packages.

-- no debconf information

Reply via email to