[CentOS] Custom ISO With Post Installation Scripts

Steve Clark steve.clark at netwolves.com
Thu Jun 14 17:49:02 UTC 2018


On 06/14/2018 01:24 PM, Earl A Ramirez wrote:
> On 11 June 2018 at 01:57, Prasad K <email.kprasad at gmail.com> 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 rebooted; therefore the script was not called by
> systemd-rc-local-generator.
>
> Will continue to investigate and report back
>
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  8 08:19 ..
drwxr-xr-x   2 root root   4096 May 18 15:06 init.d
drwxr-xr-x   2 root root   4096 May 18 14:56 rc0.d
drwxr-xr-x   2 root root   4096 May 18 14:56 rc1.d
drwxr-xr-x   2 root root   4096 May 24 10:21 rc2.d
drwxr-xr-x   2 root root   4096 May 24 10:21 rc3.d
drwxr-xr-x   2 root root   4096 May 24 10:21 rc4.d
drwxr-xr-x   2 root root   4096 May 24 10:21 rc5.d
drwxr-xr-x   2 root root   4096 May 18 14:56 rc6.d
-rwxr-xr-x   1 root wheel 20080 May 18 09:14 rc.local


-- 
Stephen Clark
*NetWolves Managed Services, LLC.*
Sr. Applications Architect 
Phone: 813-579-3200
Fax: 813-882-0209
Email: steve.clark at netwolves.com
http://www.netwolves.com



More information about the CentOS mailing list