Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20749 - openmosix-user configuration file error; wrong variable assignment
Summary: openmosix-user configuration file error; wrong variable assignment
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Michael Imhof (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-10 10:52 UTC by Rutger Hendriks
Modified: 2003-05-12 17:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rutger Hendriks 2003-05-10 10:52:04 UTC
Today I updated openmosix-user from version 0.3-r2 to 0.3-r3
Running etc-update after the update showed this:
************************************************
Showing differences between /etc/init.d/openmosix and
/etc/init.d/._cfg0000_openmosix
--- /etc/init.d/openmosix       2003-05-05 19:59:12.000000000 +0200
+++ /etc/init.d/._cfg0000_openmosix     2003-05-10 17:39:56.000000000 +0200
@@ -73,13 +73,13 @@
         if [ $AUTODISC -eq 0  ]; then
             # Static configuration via $OMOSIX_MAP
             SETPE_OPTIONS=""
-           [ $MYOMID ] && SETPE_OPTIONS="$SETPE_OPTIONS -p $MYOMID"
-           [ $MOSGATES ] && SETPE_OPTIONS="$SETPE_OPTIONS -g $MOSGATES"
-           /sbin/setpe -W $SETPE_OPTIONS -f $OMOSIX_MAP
+           [ $MYOMID ] && $SETPE_OPTIONS="$SETPE_OPTIONS -p $MYOMID"
+           [ $MOSGATES ] && $SETPE_OPTIONS="$SETPE_OPTIONS -g $MOSGATES"
+           setpe -W $SETPE_OPTIONS -f $OMOSIX_MAP
        else
             # Configurate openMosix with the omdiscd
            OMDISCD_OPTIONS=""
-           [ $AUTODISCIF ] && OMDISCD_OPTIONS="$OMDISCD_OPTIONS -i $AUTODISCIF"
+           [ $AUTODISCIF ] && $OMDISCD_OPTIONS="$OMDISCD_OPTIONS -i $AUTODISCIF"
            omdiscd $OMDISCD_OPTIONS
        fi
************************************************

Notice that the 'new' configfile says: $OPTION="$OPTION <extra options>"
And the 'old' configfile says: OPTION="$OPTION <extra options>"
The 'old' configfile works, the 'new' configfile does not.
This happens 3 times.
This problem was also present when I installed 0.3-r2 but then I just changed
that config file and did not file a bugreport. However since the same problem is
still there now I'm thinking nobody noticed it and hence the bugreport ;-)

Solution is trivial.
About difference in the 'setpe' invocation, I can't remember if I added that
myself, but using the full path might be cleaner.

Reproducible: Always
Steps to Reproduce:
1. emerge openmosix-user
2. run etc-update
Comment 1 Michael Imhof (RETIRED) gentoo-dev 2003-05-12 17:37:30 UTC
Ok, i corrected the init-file and bumped version to -r4 to make sure everyone gets the new init-file.

Thanks for your help!