Hello,
from what I saw (I'll answer here my own initial question ;-)):
1. the xcatinit1 ExecStart command does one of those 3 actions:
a) nothing (if it's a reboot - REBOOT=yes in xcatinfo - and default
install - no runbootscripts in site)
b) run xcatdskspost 6 (if it's a reboot- REBOOT=yes in xcatinfo AND
runbootscripts in site)
c) run xcatinstallpost if it's just the postinstall (no REBOOT=yes)
2. postscripts and/or postbootscripts are ultimately run by either
mypostscript
mypostscript.post
which, at install time are constructed (download and some patches, ...)
by the post.xcat.ng kickstart postinstall script
3. mypostscript.post is basically a mypostcript trimmed from the
postscripts section, thus running only postbootscripts
4. xcatinstall post is basically a mypostscript.post wrapper
5. xcatdsklpost is a general purpose mypostscript wrapper, which may be
used to run postbootscripts after a reboot (if runpostbootscripts ~ 1)
or in an updatenode -P case for instance
6. So basically, after a standard defautl statefull install
xcatinfo will have:
XCATSERVER=<ip-address>
written by post.xcat.ng
read by xcatpostinti1 for status updates
INSTALLDIR=/install
HTTPPORT=80
both written by post.xcat.ng
REBOOT=TRUE
basically meaning we're not in the install stage anymore
written by mypostscript.post
read by xcatpostinit1 in order to launch either xcatdsklpost 6
(runbootscript case) or xcatinstallpost (no runbootscript case): in any
case NOT xcatinstallpost
NODE=<node>
written by xcatinstallpost (which read it in mypostscript.post)
IMAGENAME=install-template-vm-centos8.2
written by xcatinstallpost (which read it in mypostscript.post
under the PROVMETHOD name)
7. in the case of no runbootscripts in site
postscript will have been run by mypostscript, itself run by
post.xcat.ng at install time
postbootscript will have been run by mypostscript.post at the first
reboot after install only, itself run by xcatinstallpost. After that,
REBOOT=yes will be in xcatinfo and (if no runbootscript in site) will
make the mypostscript.post script unused
Am I correct ? If so, hope that helps someone ;-)
Note : I still didn't search why mypostscript.post gets removed when an
updatenode -P is run.
Thanks for your help
--
Thomas HUMMEL
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user