Bugs item #1562730, was opened at 2006-09-21 08: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=1562730&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: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Koen Vereeken (plexie) Assigned to: Nobody/Anonymous (nobody) Summary: incorrect handling of priorities of postinstall scripts Initial Comment: The list of postinstall scripts that is build up in the /etc/init.d/functions script (function run_post_install_scripts) isn't initialized correctly. a postinstall script filename begins with two 'runlevel/priority' numbers. 00 has to start before 01, etc.. These postinstall scripts are grepped by hostname, basehostname, overrides, imagename and the word 'all'. Each grep will generate a list of filenames in the correct priority order, but while merging all those filenames, the priority order isn't correct anymore. I corrected this by grepping these 4 patterns at once, and do a sort -n after that: POST_INSTALL_SCRIPTS=`ls |grep "^[0-9][0-9]\(${IMAGENAME}\|${BASE_HOSTNAME}\|${HOSTNAME}\|all\)\..*" |sort -n` # POST_INSTALL_SCRIPTS="$POST_INSTALL_SCRIPTS `ls | grep "^[0-9][0-9]${IMAGENAME}\..*"`" # POST_INSTALL_SCRIPTS="$POST_INSTALL_SCRIPTS `ls | grep "^[0-9][0-9]${BASE_HOSTNAME}\..*"`" # POST_INSTALL_SCRIPTS="$POST_INSTALL_SCRIPTS `ls | grep "^[0-9][0-9]${HOSTNAME}\..*"`" # POST_INSTALL_SCRIPTS="$POST_INSTALL_SCRIPTS `ls | grep "^[0-9][0-9]all\..*"`" This concerns systemimager version 3.2.3-1. I didn't checked whether its already corrected in the latest stable release, but it's worth posting as a bug. grts Koen Vereeken ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100259&aid=1562730&group_id=259 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Sisuite-devel mailing list Sisuite-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sisuite-devel