Your message dated Mon, 30 May 2016 10:20:37 +0000
with message-id <[email protected]>
and subject line Bug#754470: fixed in debirf 0.36
has caused the Debian Bug report #754470,
regarding debirf: daemon start while running modules
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
754470: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=754470
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: debirf
Version: 0.34
Severity: normal
Tags: patch

Dear Maintainer,

It seems that daemon start is attempted when packages are installed
during module run by debirf. Is this always desirable ? We usually don't
want to restart a daemon on the build host, or one may build a debirf 
instance for another machine (different hardware).

For instance :

$ debirf make minimal
$ debirf enter minimal
# apt-get update
# apt-get install acpi-fakekey
[ ... ]
Setting up acpi-fakekey (0.141-4) ...
[FAIL] Starting acpi_fakekey daemon...failed (No suitable uinput module for 
running kernel found).
failed to open /dev/uinput: No such file or directory
open fifo: Permission denied
failed (Could not start /usr/sbin/acpi_fakekeyd).

The error occurred at postinst when trying to start a daemon 
acpi_fakekeyd on the build machine.

Perhaps we could inhibit daemon start when the modules are run 
in debirf. With the following patch, the installation finished 
without error.

Thank you for your ongoing work on debirf !

Regards,
JH Chatenet

--- a/usr/bin/debirf
+++ b/usr/bin/debirf
@@ -327,6 +327,33 @@
     fi
 }
 
+# Inhibit daemon restart
+disable_daemon_start() {
+    fakeroot_if_needed debirf_exec dpkg-divert --divert 
/sbin/start-stop-daemon.REAL --rename /sbin/start-stop-daemon
+
+    fakeroot_if_needed touch "$DEBIRF_ROOT/sbin/start-stop-daemon"
+    cat > "$DEBIRF_ROOT/sbin/start-stop-daemon" <<EOF
+#!/bin/sh
+echo
+echo "Warning: Fake start-stop-daemon called, doing nothing"
+EOF
+    fakeroot_if_needed chmod 755 "$DEBIRF_ROOT/sbin/start-stop-daemon"
+
+    fakeroot_if_needed touch "$DEBIRF_ROOT/usr/sbin/policy-rc.d"
+    cat > "$DEBIRF_ROOT/usr/sbin/policy-rc.d" <<EOF
+#!/bin/sh
+exit 101
+EOF
+    fakeroot_if_needed chmod 755 "$DEBIRF_ROOT/usr/sbin/policy-rc.d"
+}
+
+# Enable daemon restart
+enable_daemon_start() {
+    fakeroot_if_needed rm -f "$DEBIRF_ROOT/usr/sbin/policy-rc.d"
+    fakeroot_if_needed rm -f "$DEBIRF_ROOT/sbin/start-stop-daemon"
+    fakeroot_if_needed debirf_exec dpkg-divert --rename --remove 
/sbin/start-stop-daemon
+}
+
 # make profile
 make() {
     # option parsing
@@ -485,7 +512,9 @@
     ### RUN MODULES
     if [ "$STAGE_MODULES" = 'true' ] ; then
        msg "executing modules..."
+       disable_daemon_start
        run_modules
+       enable_daemon_start
        msg "modules complete"
     else
        msg "not running modules"
@@ -522,11 +551,13 @@
     setup_environment "$1"
     shift
 
+    disable_daemon_start
     if [ "$1" ] ; then
         fakeroot_if_needed bash -c ". $DEBIRF_COMMON && debirf_exec $@"
     else
         fakeroot_if_needed bash -c ". $DEBIRF_COMMON && debirf_exec bash -i"
     fi
+    enable_daemon_start
 }
 
 # create an ISO from the given kernel and initramfs (requires GRUB,



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing')
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

Versions of packages debirf depends on:
ii  apt          1.0.5
ii  cpio         2.11+dfsg-2
ii  debootstrap  1.0.60
ii  fakechroot   2.17.2-1
ii  fakeroot     1.18.4-2
ii  klibc-utils  2.0.3-1

Versions of packages debirf recommends:
ii  grub-common  2.00-22
ii  lsb-release  4.1+Debian13
ii  xorriso      1.3.2-1

debirf suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: debirf
Source-Version: 0.36

We believe that the bug you reported is fixed in the latest version of
debirf, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jameson Graef Rollins <[email protected]> (supplier of updated debirf 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 08 May 2016 18:51:56 -0700
Source: debirf
Binary: debirf
Architecture: source all
Version: 0.36
Distribution: unstable
Urgency: medium
Maintainer: Jameson Graef Rollins <[email protected]>
Changed-By: Jameson Graef Rollins <[email protected]>
Description:
 debirf     - build a kernel and initrd to run Debian from RAM
Closes: 721094 754470 773774 778752 803792 815106
Changes:
 debirf (0.36) unstable; urgency=medium
 .
   * better systemd compatibility, prune obsolete modules
   * xkiosk profile no longer supported, purged
   * Better package include/exclude handling (Closes: #754470)
   * update install-kernel module for kmod (Closes: #815106)
   * fix cross-arch nests (Closes: #778752)
   * fix argument parsing for mutually exclusive write modes (Closes: #721094)
   * added diskscan to rescue (Closes: #803792)
   * ensure that isolinux CDs can actually boot (Closes: #773774)
   * bump standards-version to 3.9.8 (no changes needed)
   * move to dh 9
   * use standard debian/copyright syntax
Checksums-Sha1:
 58306f1e8b458406bf8cbbdac4d401e33a6e562c 1608 debirf_0.36.dsc
 e23e68034c6fc8214befebb5e1d938b80531bee2 35324 debirf_0.36.tar.xz
 eec19506b3336278091ad4645591f7fa917193b6 29844 debirf_0.36_all.deb
Checksums-Sha256:
 7567b31136a273c61a919725a118b431125b07374480286f1fe21ad8d9efa2b3 1608 
debirf_0.36.dsc
 ad3dcecb81b0a1747f219bab2015e6f6bbecdcc7e21ac9b44d0aa33a2b9ac1a9 35324 
debirf_0.36.tar.xz
 40e01f4401e3783e169222ea8ae729d2f1355acedc5e6737fd35308533279d21 29844 
debirf_0.36_all.deb
Files:
 43115ace5fddd7db43a709e74e49522e 1608 admin extra debirf_0.36.dsc
 c5d0202191c4445f861bca3aa84103ff 35324 admin extra debirf_0.36.tar.xz
 6805dad7cf937f359eb9f0109c576905 29844 admin extra debirf_0.36_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJXTBH9AAoJEO00zqvie6q8xiEP/0y4Z9FZPAjGmQZLrdVp5K7K
lUWjNmQWJLpoCBWJTZ9N3Gqz+d1AQREGvBfscexSqrC6o4sGF1qHwFdeNmgleGZW
u2o1/vXjczyd1OF8Star1dVuql5tXzHlJOcqnWc0NP+6hLkxBOZ97cYDiZBoi0mG
CIzZn8tIiUBrZpnL0BtvTHR+kNjmI+6LdZI0OfiCo8VsTX0sbWewy4PMUt2dSwhu
zRmrDa9jhfW2dWwetIihE658ZDfO+PH0QQqbVv6ld5a0R/e8iDeMAdHDO01fGYzf
kC19ykC56YTUwQ6PKFeIg1uChmBGyTX42hZSSr0HL4b6NbiiTR0lOrGXiyG0TulV
BdN5We09DO/E2oEdFm0tC1slUlEJLXBXSJoRqCvQXeZRcKfEZgKMS++J/VjvFy3Z
WR68CHqGUhT/0TU6kBpSUIIJgUtoWNu/xo+QmFTDNWRhlHepQ/fp7dKyezSSDjfp
2qPRk/07VJczVNKdMe/Qh0juy63tDUlAED1E6mmmHAZ9koqSS2h4f8+SqnKwqn0x
URbljTmJh9J3LNbBqcih/xxCpuYbfnvJqmFsaRT9MAHN79gZRwqgzRHIWGR9XSAw
CEBq0gigNm28W0OTF/YW1XcwUySZJ7wE+x1gOsnQCiZKGyosZphPvFDNii7ZQFEX
x3DJmmOI/ItF4u7iDC+n
=lfep
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to