Bugzilla – Bug 113813
/usr/lib/YaST2/startup/common/stage.sh: line 45: .[: syntax error:
Last modified: 2005-09-05 16:26:07 UTC
running an update from 9.3 to 10.0 beta-3 via NFS, after switching from CD1 to CD2 there was the following error message on VC1 /usr/lib/YaST2/startup/common/stage.sh: line 45: .[: syntax error: operand expected (error token is ".[") btw: the ".[" is no typo, I've captured this with "setterm -dump 1"
please send the log: /var/log/YaST2/y2start.log thanks
Created attachment 48488 [details] y2start.log sorry for the delay. first I replied via email and only today I realized that this doesn't work at all, the "From: bugzilla_noreply@novell.com" is just a black hole...
Hmm the log looks good to me. the scripts will create a stage list from the directory: /usr/lib/YaST2/startup/Second-Stage/ can you send me the contents of the directory ? ls -la or something similar (all files)
(In reply to comment #3) > Hmm the log looks good to me. the scripts will create a stage list > from the directory: > > /usr/lib/YaST2/startup/Second-Stage/ > > can you send me the contents of the directory ? > ls -la or something similar (all files) drwxr-xr-x 2 root root 149 Sep 3 00:23 . drwxr-xr-x 7 root root 4096 Sep 3 00:23 .. -rwxr-xr-x 1 root root 641 Jan 24 2005 S02-logging -rwxr-xr-x 1 root root 339 Jan 24 2005 S03-autoconf -rwxr-xr-x 1 root root 490 Mar 29 09:47 S04-language -rwxr-xr-x 1 root root 238 Mar 7 08:26 S05-config -rwxr-xr-x 1 root root 1337 Mar 7 08:26 S06-services -rwxr-xr-x 1 root root 1646 Jun 2 15:02 S07-medium -rwxr-xr-x 1 root root 1519 Jun 2 15:02 S08-start -rwxr-xr-x 1 root root 905 Mar 7 08:26 S09-cleanup
Thanks, looks like it should look like Harald I cannot reproduce this here on my system and the log you sent me looks as well good to me. All stages are called correctly and it seems the update process was successfull The error you reported is the code from the createStageList() function which creates an array of stages according to the contents of /usr/lib/YaST2/startup/Second-Stage/. If the array is invalid not all stages are called and the installation will fail but that doesn't happen in your case. The error message provided above appears if the index of a bash array is set to an invalid character: For example: INDEX=? if [ -z ${STAGE_LIST[$INDEX]} ];then echo foo fi But the directory contents doesn't provide illegal characters or malformed files. I'm sorry but it works for me as it should
(In reply to comment #5) > Thanks, looks like it should look like > Harald I cannot reproduce this here on my system and the log you sent > me looks as well good to me. All stages are called correctly and it > seems the update process was successfull maybe my update from beta-3 to -4 cleaned up some stuff and/or fixed the problem ? at least I didn't see the same error anymore, but maybe I have just overseen it ?! in beta-3 it only was visible on the console VC1, not in any log file... > But the directory contents doesn't provide illegal characters or malformed > files. I'm sorry but it works for me as it should it it keeps that way I'm perfectly happy ;-)