FAI & Shellshock
Peter Keller
psilord at cs.wisc.edu
Fri Oct 17 19:55:23 CEST 2014
Hello,
I've run into an odd situation.
I'm using fai 4.2.5 to install a 64-bit debian wheezy machine. Within
that machine, I create a debian wheezy 32-bit chroot (using <today>'s
version for debian wheezy), which goes fine.
I create the chroot like this:
/usr/sbin/debootstrap --arch i386 wheezy /srv/wheezy-i386-chroot http://ftp.us.debian.org/debian/
But when I enter the chroot, I see:
+ chroot /srv/wheezy-i386-chroot /bin/bash -x
/bin/bash: BASH_FUNC_task_softupdate(): line 0: syntax error near
unexpected token `)'
/bin/bash: BASH_FUNC_task_softupdate(): line 0:
`BASH_FUNC_task_softupdate() () { echo Performing FAI system update.
All data may be overwritten!;'
/bin/bash: error importing function definition for
`BASH_FUNC_task_softupdate'
/bin/bash: BASH_FUNC_ifclass(): line 0: syntax error near unexpected
token `)'
/bin/bash: BASH_FUNC_ifclass(): line 0: `BASH_FUNC_ifclass() () { if [
$# -eq 1 ]; then'
/bin/bash: error importing function definition for `BASH_FUNC_ifclass'
/bin/bash: BASH_FUNC_mount_mirror(): line 0: syntax error near
unexpected token `)'
/bin/bash: BASH_FUNC_mount_mirror(): line 0: `BASH_FUNC_mount_mirror()
() { [ "$FAI_DEBMIRROR" ] || return;'
/bin/bash: error importing function definition for
`BASH_FUNC_mount_mirror'
/bin/bash: BASH_FUNC__ifclass_or(): line 0: syntax error near unexpected
token `)'
/bin/bash: BASH_FUNC__ifclass_or(): line 0: `BASH_FUNC__ifclass_or() ()
{ local cl;'
/bin/bash: error importing function definition for
`BASH_FUNC__ifclass_or'
/bin/bash: BASH_FUNC_wait_for_jobs(): line 0: syntax error near
unexpected token `)'
/bin/bash: BASH_FUNC_wait_for_jobs(): line 0: `BASH_FUNC_wait_for_jobs()
() { local i=0;'
/bin/bash: error importing function definition for
`BASH_FUNC_wait_for_jobs'
/bin/bash: BASH_FUNC_call_hook(): line 0: syntax error near unexpected
token `)'
/bin/bash: BASH_FUNC_call_hook(): line 0: `BASH_FUNC_call_hook() () {
local hook=$1;'
/bin/bash: error importing function definition for `BASH_FUNC_call_hook'
/bin/bash: BASH_FUNC_task_instsoft(): line 0: syntax error near
unexpected token `)'
/bin/bash: BASH_FUNC_task_instsoft(): line 0: `BASH_FUNC_task_instsoft()
() { echo "Installing software may take a while";'
/bin/bash: error importing function definition for
`BASH_FUNC_task_instsoft'
[ ... and so on ...]
And needless to say that doesn't complete properly and so the
configuration steps happening inside of the chroot fail.
Is this a known problem?
Thank you.
-pete
More information about the linux-fai
mailing list