Re: [CentOS] Custom ISO

2020-05-06 Thread Jerry Geis
Looks like the issue was with the set -l 'CentOS 7 x86-64' in the grub.cfg
file. It needed to match my changed name.
Looking good now.

Jerry
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Custom ISO

2020-05-06 Thread Mauricio Tavares
On Wed, May 6, 2020 at 9:41 AM Jerry Geis  wrote:
>
> Sorry I get it \x20 is a space and then "7" then \x20 is another space.
>
  I like underscores

> Jerry
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Custom ISO

2020-05-06 Thread Jerry Geis
Sorry I get it \x20 is a space and then "7" then \x20 is another space.

Jerry
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Custom ISO

2020-05-06 Thread Jerry Geis
What is the \x207  ??
and the \x20  ??
on this line ?
inst.stage2=hd:LABEL=CentOS\x207\x20x86_64

Jerry
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Custom ISO

2020-05-06 Thread Jerry Geis
Thanks for hint. I have changed to this:

genisoimage \
-v \
-J -R \
-V "$NAME" \
-b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 \
-boot-info-table -eltorito-alt-boot -b images/efiboot.img
-no-emul-boot -boot-load-size 18755 \
-o $DESTINATION_FILE .
it now creates the ISO and is EFI bootable.

However - I have a different issue arise.   In normal install or EFI
install (both) it hangs at "Starting dracut initqueue hook..."

Only thing I am changing is the add the boot options for my kickstart
file.  So then I tried select the "standard" "Install CentOS 7" and it does
the same thing, hangs at "Starting dracut".

Any thoughts on that ?
I am testing with virt-manager.

Thanks,

Jerry
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Custom ISO

2020-05-05 Thread Jerry Geis
Hi All,

I am trying to make a customer ISO. When I run this command:
mkisofs -o $DESTINATION_FILE -b isolinux/isolinux.bin -c boot.cat \
-no-emul-boot -boot-info-table \
-V "$NAME" -boot-load-size 4 -boot-info-table -R -J -v -T \
-eltorito-alt-boot -e images/efiboot.img \
$DESTINATION_DIR

it tells me:
Size of boot image is 4 sectors -> No emulation
Size of boot image is 17408 sectors -> genisoimage: Error - boot image
'images/efiboot.img' has not an allowable size.

This is the exact same file that is on the Everything ISO image.

What am I missing ?  I also want to make the ISO boot with UEFI. I think I
have the right parameters but getting this error. Thoughts?

Thanks,

Jerry
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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  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
>
>
A little investigation shows that the problem was with the script that is
supposed to execute, I used a simple script and it worked, actually the
problem was #!/bin/bash was on the second line and not the first, bit
embarrassing but glad that it is working.

Thanks, guys.

-- 
Kind Regards
Earl Ramirez
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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 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.cl...@netwolves.com
http://www.netwolves.com
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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 rebooted; therefore the script was not called by
systemd-rc-local-generator.

Will continue to investigate and report back

-- 
Kind Regards
Earl Ramirez
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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
> 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 installation
> has been completed and rebooted; therefore, I have been putting the
> scripts in /etc/profile.d/ and after logging in the scripts will
> execute and upon completion of the script will be deleted from
> /etc/profile.d/.
>
> DuckDuckGo suggested that I copy the script to /etc/rc.d/rc.local and
> make it executable; however, I have tried that a few times and the
> script simply does not execute.
>
> Below is an excerpt from the ks.cfg.
>
>
> export SRCDIR="/run/install/repo"
> export DSTDIR="/mnt/sysimage"
>
> # copy scripts to the destintion of the server
> cp -v $SRCDIR/postinstall/script1.sh
> $DSTDIR/etc/rc.d/rc.local/script1.sh
>
> # Make scripts executable
> chmod +x $DSTDIR/etc/rc.d/rc.local.sh
>
> Since this is a ISO for a community project, don't think that tools
> such as Ansible, Chef, Puppet, etc. will work here.
>
> Also, it is a one time execution; therefore, I did not consider using
> systemd because the goal would be to have visibility while the script
> is running just as I see after I login; however, just need the script
> to be executed after the OS was installed and restarted and before the
> login prompt.
>
> All suggestions are welcome.
>
> Thanks in advance.
> --
> Earl Ramirez 
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
>
>
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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
> directory.
> 
> best regards
> Ulf

Thanks Ulf

That was a typo on the email

cp -v $SRCDIR/postinstall/snipeit.sh $DSTDIR/etc/rc.d/rc.local

# Make scripts executable
chmod +x $DSTDIR/etc/rc.d/rc.local


-- 
Earl Ramirez 

signature.asc
Description: This is a digitally signed message part
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


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 mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[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 installation
has been completed and rebooted; therefore, I have been putting the
scripts in /etc/profile.d/ and after logging in the scripts will
execute and upon completion of the script will be deleted from
/etc/profile.d/.

DuckDuckGo suggested that I copy the script to /etc/rc.d/rc.local and
make it executable; however, I have tried that a few times and the
script simply does not execute.

Below is an excerpt from the ks.cfg.


export SRCDIR="/run/install/repo"
export DSTDIR="/mnt/sysimage"

# copy scripts to the destintion of the server
cp -v $SRCDIR/postinstall/script1.sh
$DSTDIR/etc/rc.d/rc.local/script1.sh

# Make scripts executable
chmod +x $DSTDIR/etc/rc.d/rc.local.sh

Since this is a ISO for a community project, don't think that tools
such as Ansible, Chef, Puppet, etc. will work here. 

Also, it is a one time execution; therefore, I did not consider using
systemd because the goal would be to have visibility while the script
is running just as I see after I login; however, just need the script
to be executed after the OS was installed and restarted and before the
login prompt.

All suggestions are welcome.

Thanks in advance.
-- 
Earl Ramirez 

signature.asc
Description: This is a digitally signed message part
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Custom ISO based on kickstart

2015-04-14 Thread Artifex Maximus
On Tue, Apr 14, 2015 at 8:14 AM, Kahlil Hodgson
 wrote:
> The fedora spins SIG
> https://fedoraproject.org/wiki/Spins_SIG?rd=SIGs/Spins
> created/assembled a whole bunch of tools for doing just that. I used
> such machinery to do pretty much the same as what you are a number of
> years ago. I think there was even graphical tool called 'revisor'.

Thank you very much. I will give it a try.

Already tried revisor and unfortunately failed.

Bye,
a
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Custom ISO based on kickstart

2015-04-13 Thread Kahlil Hodgson
The fedora spins SIG
https://fedoraproject.org/wiki/Spins_SIG?rd=SIGs/Spins
created/assembled a whole bunch of tools for doing just that. I used
such machinery to do pretty much the same as what you are a number of
years ago. I think there was even graphical tool called 'revisor'.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Custom ISO based on kickstart

2015-04-13 Thread Artifex Maximus
Hello!

I would like to shrink my installation media restricted only to
necessary packages based on my kickstart file. So I am looking for an
application/script which select rpms and those dependencies based on a
kickstart file. If just display them that is ok does not need to
copy/download anything else. Is there any such utility?

I've found a site which helps to select rpms based on my comps.xml
(mandatory, default) but I do not want to change my comps.xml but want
to create a kickstart file and create a media based on that.

Thanks,
a
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos