<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Dear FAI-Users,<br>
today I installed an Ubuntu Trusty Client from my Debian/wheezy
nfsroot (which I use for all Debian and Ubuntu clients).<br>
during the installation, suddenly some "/bin/bash: error importing
function definition for `BASH_FUNC" errors where thrown.<br>
The installation seems to succed - the configurations are
successfull, I can boot into the system and everything works as
expected.<br>
<br>
=> hence its not a serious issue but only annoying because it
spoofs the fai.log<br>
=> it only occurs during Ubuntu trusty installations (no such
errors for wheezy/jessie clients)<br>
=> it never happened before (my last Ubuntu install was 25.April)<br>
=> googleing suggests, that it is related to bash being patched
for the "Shellshock" vulnerability (was it included in a recent
Ubuntu-bash-package update?)<br>
<br>
Did anyone have similar issues with Ubuntu clients?<br>
<br>
Regards<br>
René<br>
<br>
<br>
Here some fai.log snippets:<br>
It happens twice.<br>
<br>
during task_debconf before "locales" is reconfigured:<br>
-----------------------------------------------------------------------<br>
<small>...<br>
Calling task_debconf<br>
Adding debconf data from /var/lib/fai/config/debconf/UBUNTUSERVER<br>
Adding debconf data from
/var/lib/fai/config/debconf/KERBEROS_CLIENT<br>
Reconfiguring package adduser<br>
Reconfiguring package dash<br>
Reconfiguring package debconf<br>
Reconfiguring package libpam-runtime<br>
debconf: DbDriver "_ENV_stack": unable to save changes to:
libpam-runtime/profiles libpam-runtime/override<br>
Reconfiguring package locales<br>
/bin/bash: BASH_FUNC_task_action(): line 0: syntax error near
unexpected token `)'<br>
/bin/bash: BASH_FUNC_task_action(): line 0:
`BASH_FUNC_task_action() () { if [ -z "$FAI_ACTION" ]; then'<br>
/bin/bash: error importing function definition for
`BASH_FUNC_task_action'<br>
/bin/bash: BASH_FUNC_mount_mirror(): line 0: syntax error near
unexpected token `)'<br>
/bin/bash: BASH_FUNC_mount_mirror(): line 0:
`BASH_FUNC_mount_mirror() () { [ "$FAI_DEBMIRROR" ] || return;'<br>
/bin/bash: error importing function definition for
`BASH_FUNC_mount_mirror'<br>
...<br>
(more than 100 lines with similar messages for other functions)<br>
...<br>
/bin/bash: BASH_FUNC_task_mountdisks(): line 0: syntax error near
unexpected token `)'<br>
/bin/bash: BASH_FUNC_task_mountdisks(): line 0:
`BASH_FUNC_task_mountdisks() () { [ ! -f $LOGDIR/fstab ]
&& die "No $LOGDIR/fstab created.";'<br>
/bin/bash: error importing function definition for
`BASH_FUNC_task_mountdisks'<br>
Reconfiguring package sysv-rc<br>
Reconfiguring package tzdata<br>
...<br>
</small>-----------------------------------------------------------------------<br>
<br>
and during task_updatebase before bash is unpacked:<br>
-----------------------------------------------------------------------<br>
<small>...<br>
debconf: delaying package configuration, since apt-utils is not
installed<br>
(Reading database ... 11865 files and directories currently
installed.)<br>
Preparing to unpack .../base-files_7.2ubuntu5.2_amd64.deb ...<br>
Unpacking base-files (7.2ubuntu5.2) over (7.2ubuntu5) ...<br>
Setting up base-files (7.2ubuntu5.2) ...<br>
Installing new version of config file /etc/issue ...<br>
Installing new version of config file /etc/issue.net ...<br>
Installing new version of config file /etc/lsb-release ...<br>
Installing new version of config file /etc/os-release ...<br>
(Reading database ... 11865 files and directories currently
installed.)<br>
Preparing to unpack .../bash_4.3-7ubuntu1.5_amd64.deb ...<br>
/bin/bash: BASH_FUNC_task_softupdate(): line 0: syntax error near
unexpected token `)'<br>
/bin/bash: BASH_FUNC_task_softupdate(): line 0:
`BASH_FUNC_task_softupdate() () { echo Performing FAI system
update. All data may be<br>
/bin/bash: error importing function definition for
`BASH_FUNC_task_softupdate'<br>
...<br>
(more than 100 lines with similar messages</small><small><small>
<big>for other functions</big></small>)<br>
...<br>
/bin/bash: BASH_FUNC_save_dmesg(): line 0: syntax error near
unexpected token `)'<br>
/bin/bash: BASH_FUNC_save_dmesg(): line 0: `BASH_FUNC_save_dmesg()
() { if [ -x /usr/sbin/logtail ]; then'<br>
/bin/bash: error importing function definition for
`BASH_FUNC_save_dmesg'<br>
Unpacking bash (4.3-7ubuntu1.5) over (4.3-6ubuntu1) ...<br>
Setting up bash (4.3-7ubuntu1.5) ...<br>
...</small><br>
-----------------------------------------------------------------------<br>
</body>
</html>