run postscripts when starting on a ubuntu stateless machine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14415 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
d42c19677a
commit
ff7e287856
@ -1529,13 +1529,17 @@ sub generic_post { #This function is meant to leave the image in a state approxi
|
||||
|
||||
close($cfgfile);
|
||||
|
||||
#ubuntu default run level is 2
|
||||
chmod(0755,"$rootimg_dir/etc/init.d/gettyset");
|
||||
system("cd $rootimg_dir/etc/rc3.d; ln -sf ../init.d/gettyset S60gettyset");
|
||||
system("cd $rootimg_dir/etc/rc2.d; ln -sf ../init.d/gettyset S60gettyset");
|
||||
}
|
||||
|
||||
copy("$installroot/postscripts/xcatpostinit", "$rootimg_dir/etc/init.d/xcatpostinit");
|
||||
chmod(0755, "$rootimg_dir/etc/init.d/xcatpostinit");
|
||||
system("cd $rootimg_dir/etc/rc3.d; ln -sf ../init.d/xcatpostinit S61xcatpostinit");
|
||||
system("cd $rootimg_dir/etc/rc2.d; ln -sf ../init.d/xcatpostinit S61xcatpostinit");
|
||||
|
||||
#change the /bin/sh link to /bin/bash
|
||||
system("cd $rootimg_dir/bin/; ln -sf bash sh");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user