yeah... that one bit me for almost a day lol. It was buried in the RHEL 7 documentation somewhere. I think if you tried to use something other than hd:LABEL for the inst.stage2 option, you might not have to worry about it.
Andrew Simpson
On Wed, Jun 8, 2016 at 10:05 AM, C. Petro <petro@xxxxxxxxx> wrote:
Bravo sir. That did it.
On Wed, Jun 8, 2016 at 6:18 AM, Andrew Simpson <simpsonar77@xxxxxxxxx> wrote:
> the volume name in your mkisofs command (—V option) must match the LABEL
> value in the isolinux.cfg file exactly.... minus the x20 used for spaces.
>
> yours don't match :
>
> -V
> 'Red Hat Enterprise Linux 7.2'
>
> hd:LABEL=RHEL-7.2\x20Server.x86_64
>
> On Jun 8, 2016 2:28 AM, "C. Petro" <petro@xxxxxxxxx> wrote:
>>
>> I'm reasonably experienced in doing RHEL 5 and 6 kickstarts, but this
>> is my first pass at building a custom install CD for RHEL 7.
>>
>> I'm working from the RHEL 7.2 sources (meaning not Centos). I used this:
>>
>> http://www.smorgasbork.com/2012/01/04/building-a-custom-centos-7-kickstart-disc-part-1/
>> as my "checklist" for the most part, with some of this:
>> https://highon.coffee/blog/security-harden-centos-7/
>>
>> My kickstart config looks like:
>> #version=RHEL7
>>
>> install
>> text
>> # System authorization information
>> auth --enableshadow --passalgo=sha512
>>
>> # Use CDROM installation media
>> cdrom
>> # Accept EULA
>> eula --agreed
>>
>> services --enabled=NetworkManager,sshd
>> reboot
>>
>> # Run the Setup Agent on first boot
>> #firstboot --enable
>> ignoredisk --only-use=sda
>> # Keyboard layouts
>> keyboard --vckeymap=us --xlayouts='us'
>> # System language
>> lang en_US.UTF-8
>> # SELinux
>> selinux --permissive
>> # Network information
>> network --bootproto=dhcp --device=eno16777736 --_onboot_=on --ipv6=off
>> network --hostname=default-vm
>> # Root password
>> # Fix for deploy rootpw --iscrypted HASHGOESHERE
>> rootpw HASHGOESHERE
>> # System timezone
>> timezone --isUtc --ntpservers=prime.transformers
>> # System bootloader configuration
>> bootloader --location=mbr --boot-drive=sda
>> # Partition clearing information
>> clearpart --all --drives=sda
>> ignoredisk --only-use=sda
>>
>> skipx
>>
>> # Some local users:
>> user --name="ortep.sirhc" --is-crypted
>>
>> --password="$6$VHzvqK35oIsfbcgn$pyOvmSm8Y1BnYUKaaSeggHb4a3zwm3U5FTbP9g2cMQccruhF6.JswWYvYlsRjgOLAyE1DfPUjUD1iAh7yzY2e1"
>>
>> # LVM
>>
>> # Disk partitioning information
>> # part pv.18 --fstype="lvmpv" --_ondisk_=sda --size=8004
>> part pv.11 --fstype="lvmpv" --_ondisk_=sda --size=16008
>> part /boot --fstype="ext4" --_ondisk_=sda --size=1000
>> #volgroup lg_data --pesize=4096 pv.18
>> volgroup lg_os --pesize=4096 pv.11
>> logvol / --fstype="xfs" --size=4000 --name=lv_root --vgname=lg_os
>> logvol /home --fstype="xfs" --size=2000 --name=lv_home --vgname=lg_os
>> logvol /tmp --fstype="xfs" --size=1000 --name=lv_tmp --vgname=lg_os
>> logvol /var --fstype="xfs" --size=2000 --name=lv_var --vgname=lg_os
>> logvol /var/tmp --fstype="xfs" --size=1000 --name=lv_var_tmp
>> --vgname=lg_os
>> logvol /var/log --fstype="xfs" --size=1500 --name=lv_var_log
>> --vgname=lg_os
>> logvol /var/log/audit --fstype="xfs" --size=500
>> --name=lv_var_log_audit --vgname=lg_os
>> logvol swap --fstype="swap" --size=1000 --name=lv_swap --vgname=lg_data
>>
>> %addon org_fedora_oscap
>> content-type = scap-security-guide
>> profile = ""> >> %end
>>
>> %packages
>> @core
>> vim-minimal
>> vim-common
>> aide
>> ntp
>> ntpdate
>> openscap
>> openscap-scanner
>> scap-security-guides
>> authconfig
>> chrony
>> firewalld
>> grub2
>> %end
>>
>>
>>
>> %post
>> %end
>>
>>
>> In isolinux.cfg I have:
>>
>> ...
>> menu tabmsg Press Tab for full configuration options on menu items.
>>
>> menu separator # insert an empty line
>> menu separator # insert an empty line
>>
>> label Basic KS
>> menu label ^Kickstart
>> menu default
>> kernel vmlinuz
>> append initrd=initrd.img
>> inst.stage2=hd:LABEL=RHEL-7.2\x20Server.x86_64
>> inst.ks=cdrom:/dev/cdrom:/ks/base_ks.cfg
>> menu separator # insert an empty line
>> ...
>>
>>
>> grub.conf is:
>> #debug --graphics
>> default=1
>> splashimage=@SPLASHPATH@
>> timeout 60
>> hiddenmenu
>> title Install Red Hat Enterprise Linux 7.2
>> findiso
>> kernel @KERNELPATH@ @ROOT@
>> initrd @INITRDPATH@
>> title Test this media & install Red Hat Enterprise Linux 7.2
>> findiso
>> kernel @KERNELPATH@ @ROOT@ rd.live.check quiet
>> initrd @INITRDPATH@
>>
>>
>> Which gets displayed, and then will start Linux.
>>
>> I am testing on VMware Workstation 12 Player.
>>
>> However I get stuck at:
>>
>> [ 23.820146] work still pending
>>
>> (and yes, I know the 23..... is not all that relevant)
>>
>> the line to generate the ISO is:
>> mkisofs -o custom.iso -b isolinux.bin -c boot.cat -no-emul-boot -V
>> 'Red Hat Enterprise Linux 7.2' -boot-load-size 4 -boot-info-table -R
>> -J -v -T isolinux/
>>
>>
>> There used to be a way to view the virtual terminals (alt-F whatever)
>> but apparently that's gone away.
>>
>> Any ideas on what I'm missing here?
>>
>> _______________________________________________
>> Kickstart-list mailing list
>> Kickstart-list@xxxxxxxxxx
>> https://www.redhat.com/mailman/listinfo/kickstart-list
>
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/kickstart-list
_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list
_______________________________________________ Kickstart-list mailing list Kickstart-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/kickstart-list