Bug#752118: live-config: 9990-hooks fails to execute boot hooks
Package: live-config
Version: 4.0~alpha33-1
Severity: normal
Dear Maintainer,
When I boot a machine off a live squashfs made with live-build, it's unable to run the hooks that run at boot time via /etc/init.d/live-config. It copies the first hook script to /tmp/live-config.XXXXXXXX and tries to execute it:
+ cp /lib/live/config-hooks/my-testing-script.sh /tmp/live-config.NnG2vh1D
+ chmod 0755 /tmp/live-config.NnG2vh1D
+ .//tmp/live-config.NnG2vh1D
/lib/live/config/9990-hooks: 77: /lib/live/config/9990-hooks: .//tmp/live-config.NnG2vh1D: not found
:ERROR
If I edit /lib/live/config/9990-hooks and make a small change, the init script runs successfully:
--- /lib/live/config/9990-hooks.broken 2014-06-19 19:09:06.754839285 +0000
+++ /lib/live/config/9990-hooks 2014-06-19 19:09:32.579343824 +0000
@@ -74,7 +74,7 @@
fi
chmod 0755 "${_TMPFILE}"
- ./"${_TMPFILE}"
+ /"${_TMPFILE}"
rm -f "${_TMPFILE}"
done
}
Am I missing something critical or is this a bug? Thanks in advance!
Major
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.14-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages live-config depends on:
ii live-config-sysvinit [live-config-backend] 4.0~alpha33-1
Versions of packages live-config recommends:
pn console-tools <none>
ii iproute 1:3.14.0-2
ii keyboard-configuration 1.102
ii live-config-doc 4.0~alpha33-1
ii live-tools 4.0~alpha18-1
ii locales 2.19-1
ii sudo 1.8.9p5-1
ii user-setup 1.56
Versions of packages live-config suggests:
ii pciutils 1:3.2.1-2
ii wget 1.15-1+b1
-- no debconf information
Reply to: