Run_postbootscripts_after_each_diskful_reboot - xcat2/xcat-core GitHub Wiki
{{:Design Warning}}
This mini design is under construction at this time. I will attempt to complete this design very soon
This line item is intented to meet a new requirement to allow the admin to specify that all post boot scripts for a disk full node are to be run on every node reboot.
This is a rough outline of the changes that will be made. This design will be updated to contain more details about why each of the changes are needed and the impact of the change to meet the new requirement.
- in post.xcat → save xcatdsklspost script to /opt/xcat - used to run pstbootscripts
- in post.xcat → add a new flag REBOOT=TRUE to xcatinfo file - used to signal xcatpostinit1 to invoke to xcatdsklspost
- in post.xcat → remove "chkconfig xcatpostinit1 off" - this is no longer needed as xcatpostinit1 will always run and invoke xcatdsklspost to determine if we should run postbootscripts
- xcatpostinit1 file changes 1. if REBOOT=TRUE (from xcatinfo file) -> call xcatdsklspost script with new mode 6
- add a new mode 6 to xcatdsklspost script - this mode repesents the node booting - and checks to see if admin wants to run post boot scripts. that was last week... 1. remove post script files from mypostscript - the post scripts are not run on boot 2. if RUNBOOTSCRIPTS!='yes' - remove postbootscripts from mypostscript - only keep the postbootscript in mypostscript when RUNBOOTSCRIPTS is 'yes'
This is a list of all post.* files:
- post.debian
- post.esx
- post.rh
- post.rh.common
- post.rh.iscsi
- post.rhel5.s390x
- post.rhel6.s390x
- post.sles
- post.sles.common
- post.sles.iscsi
- post.sles10.s390x
- post.sles11
- post.sles11.iscsi
- post.sles11.raid1
- post.sles11.s390x
- post.ubuntu
- post.xcat
This is a list of post.* files which are currently using post.xcat:
- post.rh
- post.rh.iscsi
- post.sles
- post.sles.iscsi
- post.sles11
- post.sles11.iscsi
- post.sles11.raid1
this is a list of the files which are not using post.xcat and would need to include the changes above for post.xcat:
- post.debian
- post.esx
- post.rh.common
- post.rhel5.s390x
- post.rhel6.s390x
- post.sles.common
- post.sles10.s390x
- post.sles11.s390x
- post.ubuntu