SourceForge.net
2007-02-07 09:44:17 UTC
Bugs item #1653947, was opened at 2007-02-07 10:44
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100259&aid=1653947&group_id=259
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Initial RAM Disk
Group: v3.7.3
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Damien (madz06)
Assigned to: Nobody/Anonymous (nobody)
Summary: Post-install scripts executed twice
Initial Comment:
Setup: server running debian etch, systemimager 3.7.6
Image name: sargetest
Hostname: tests1
Script: 90sargetest.script (in /var/lib/systemimager/scripts/post-install)
Post-install scripts with a class name are executed twice in my setup (scripts with "all" class are not concerned).
This bug is actually in the functions file (/etc/init.d/functions in initrd.img and in intrd template), in function run_post_install_scripts.
I just fixed this using sort -u instead of uniq, and it looks something like :
POST_INSTALL_SCRIPTS=`sort -u << EOL
$POST_INSTALL_SCRIPTS
EOL`
And it works just fine now. You may find a smarter way to fix this, just my 2 cents ;)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100259&aid=1653947&group_id=259
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100259&aid=1653947&group_id=259
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Initial RAM Disk
Group: v3.7.3
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Damien (madz06)
Assigned to: Nobody/Anonymous (nobody)
Summary: Post-install scripts executed twice
Initial Comment:
Setup: server running debian etch, systemimager 3.7.6
Image name: sargetest
Hostname: tests1
Script: 90sargetest.script (in /var/lib/systemimager/scripts/post-install)
Post-install scripts with a class name are executed twice in my setup (scripts with "all" class are not concerned).
This bug is actually in the functions file (/etc/init.d/functions in initrd.img and in intrd template), in function run_post_install_scripts.
I just fixed this using sort -u instead of uniq, and it looks something like :
POST_INSTALL_SCRIPTS=`sort -u << EOL
$POST_INSTALL_SCRIPTS
EOL`
And it works just fine now. You may find a smarter way to fix this, just my 2 cents ;)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100259&aid=1653947&group_id=259