Package: freedombox-setup
Version: 0.5
Severity: normal
Tags: patch

In the v0.5 dreamplug image, I found the following error in
/var/log/freedombox-setup.log:

running /usr/lib/freedombox/setup.d/10_hardware
...
/usr/sbin/chroot: cannot change root directory to apt-get: No such file
or directory

This prevents flash-kernel from being installed. Dreamplug can boot
without it, but it will be needed for kernel upgrades.

I'm attaching a patch to fix the error. I've done basic testing to
confirm that the Dreamplug image will still build and boot with the
patch applied.

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

Kernel: Linux 4.1.0-1-kirkwood
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages freedombox-setup depends on:
ii  apache2                      2.4.16-1
ii  augeas-tools                 1.2.0-0.2
ii  avahi-daemon                 0.6.31-5
ii  avahi-utils                  0.6.31-5
ii  bridge-utils                 1.5-9
ii  curl                         7.43.0-1
ii  devio                        1.2-1+b1
ii  dialog                       1.2-20150528-1
ii  dnsmasq-base                 2.75-1
ii  dnsutils                     1:9.9.5.dfsg-11
ii  dosfstools                   3.0.28-1
ii  etckeeper                    1.18.1
ii  firewalld                    0.3.13-1
ii  haveged                      1.9.1-1
ii  hostapd                      1:2.3-2
ii  how-can-i-help               11
ii  htop                         1.0.3-1
ii  iftop                        1.0~pre4-2
ii  iptables                     1.4.21-2+b1
ii  iputils-ping                 3:20121221-5+b2
ii  iw                           3.17-1
ii  libnss-gw-name               0.3-2
ii  libnss-mdns                  0.10-6
ii  libnss-myhostname            224-1
ii  libpam-abl                   0.6.0-3
ii  libpam-tmpdir                0.09
ii  locales                      2.19-19
ii  locales-all [locales]        2.19-19
ii  lsof                         4.86+dfsg-1
ii  macchanger                   1.7.0-5.3
ii  net-tools                    1.60-26+b1
ii  netcat                       1.10-41
ii  netcat-traditional [netcat]  1.10-41
ii  network-manager              1.0.4-1
ii  ntp                          1:4.2.8p3+dfsg-1
ii  openssh-server               1:6.7p1-6
ii  parted                       3.2-7
ii  plinth                       0.5-1
ii  psmisc                       22.21-2
ii  python3                      3.4.3-4
ii  resolvconf                   1.77
ii  ssl-cert                     1.0.36
ii  sudo                         1.8.12-1
ii  tcpdump                      4.7.4-1
ii  unattended-upgrades          0.86.2
ii  vim-tiny                     2:7.4.712-3
ii  wget                         1.16.3-3
ii  wireless-tools               30~pre9-8
ii  zile                         2.4.11-1

Versions of packages freedombox-setup recommends:
ii  batctl  2015.1-1
ii  rfkill  0.5-1

Versions of packages freedombox-setup suggests:
pn  monkeysphere  <none>

-- no debconf information
From bb78e8bea69ad8d8b1e218419f6be2f12e8873dd Mon Sep 17 00:00:00 2001
From: James Valleroy <jvalle...@mailbox.org>
Date: Thu, 6 Aug 2015 18:48:50 -0400
Subject: [PATCH] Fix flash-kernel install on Dreamplug. Remove comments that
 seem to have been copied over from freedom-maker but don't make sense here.

---
 setup.d/10_hardware | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/setup.d/10_hardware b/setup.d/10_hardware
index 462776e..ab52ff9 100755
--- a/setup.d/10_hardware
+++ b/setup.d/10_hardware
@@ -13,11 +13,7 @@ dreamplug_flash() {
     #    that fail in an emulated environment!  We'll have to do it by
     #    hand below anyway...
     export FK_MACHINE="Globalscale Technologies Dreamplug"
-
-    # Installing flash-kernel here, as installing it using debootstrap
-    # causes all kernel related postinst scripts to stop working when
-    # installed in a chroot.
-    chroot $rootdir apt-get install -y flash-kernel
+    apt-get install -y flash-kernel
 }
 
 dreamplug_repack_kernel() {
@@ -126,10 +122,6 @@ beaglebone_flash() {
     #    that fail in an emulated environment!  We'll have to do it by
     #    hand below anyway...
     export FK_MACHINE="TI AM335x BeagleBone"
-
-    # Installing flash-kernel here, as installing it using debootstrap
-    # causes all kernel related postinst scripts to stop working when
-    # installed in a chroot.
     apt-get install -y flash-kernel
 }
 
-- 
2.4.6

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to