Re: [CentOS] Custom ISO With Post Installation Scripts

2018-06-14 Thread Earl A Ramirez
> Hmm... > > I am doing this with a KS for C7 and my /etc/rc.d/rc.local script get > executed just fine on > boot up without doing anything other than putting it in /etc/rc.d/ > > # ls -al /etc/rc.d/ > total 72 > drwxr-xr-x 10 root root 4096 May 18 07:37 . > drwxr-xr-x 121 root root 12288 Jun

Re: [CentOS] Custom ISO With Post Installation Scripts

2018-06-14 Thread Steve Clark
On 06/14/2018 01:24 PM, Earl A Ramirez wrote: > On 11 June 2018 at 01:57, Prasad K wrote: > >> If your distro is using systemd then rc.local will not get executed by >> default. >> Enable rc-local.service : "systemctl enable rc-local.service". >> >> > Thanks, Prasad > > I tried that and unfortuna

Re: [CentOS] Custom ISO With Post Installation Scripts

2018-06-14 Thread Earl A Ramirez
On 11 June 2018 at 01:57, Prasad K wrote: > If your distro is using systemd then rc.local will not get executed by > default. > Enable rc-local.service : "systemctl enable rc-local.service". > > Thanks, Prasad I tried that and unfortunately, that service did not start after the server was reboo

Re: [CentOS] Custom ISO With Post Installation Scripts

2018-06-10 Thread Prasad K
If your distro is using systemd then rc.local will not get executed by default. Enable rc-local.service : "systemctl enable rc-local.service". Regards, Prasad On 9 June 2018 at 18:18, Earl Ramirez wrote: > Dear All > > I have been working on a custom ISO with kickstart and a couple of post > i

Re: [CentOS] Custom ISO With Post Installation Scripts

2018-06-09 Thread Earl Ramirez
On Sat, 2018-06-09 at 15:10 +0200, Ulf Volmer wrote: > On 09.06.2018 14:48, Earl Ramirez wrote: > > > # copy scripts to the destintion of the server > > cp -v $SRCDIR/postinstall/script1.sh > > > $DSTDIR/etc/rc.d/rc.local/script1.sh > > are you sure about this line? rc.local must be a file, not a

Re: [CentOS] Custom ISO With Post Installation Scripts

2018-06-09 Thread Ulf Volmer
On 09.06.2018 14:48, Earl Ramirez wrote: > # copy scripts to the destintion of the server > cp -v $SRCDIR/postinstall/script1.sh > $DSTDIR/etc/rc.d/rc.local/script1.sh are you sure about this line? rc.local must be a file, not a directory. best regards Ulf ___

[CentOS] Custom ISO With Post Installation Scripts

2018-06-09 Thread Earl Ramirez
Dear All I have been working on a custom ISO with kickstart and a couple of post installation scripts and would like to have the script run before the login prompt. The custom ISO works; however, the scripts fails because some of the services, e.g. mariadb does not start before the server install