Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the lorax package instead of tar + mkisofs #6

Open
flozanorht opened this issue Oct 21, 2024 · 2 comments
Open

Use the lorax package instead of tar + mkisofs #6

flozanorht opened this issue Oct 21, 2024 · 2 comments

Comments

@flozanorht
Copy link
Collaborator

flozanorht commented Oct 21, 2024

From Brian Lane bcl@redhat.com on tech-list

On Fri, Oct 18, 2024 at 03:23:54PM -0300, Fernando Lozano wrote:

Would anyone know why, when we loop mount an iso image, and want to
manipulate its contents to generate a new iso, we must use tar instead of
cp, such as:

sudo tar cf - -C temp-iso . | tar xf - -C new-iso

For example, to create a RHEL installer iso with a custom kickstart file

Why are you using tar? There's an easier way -- just use mkksiso:

https://weldr.io/lorax/mkksiso.html

@flozanorht
Copy link
Collaborator Author

Tested using --cdrom, it works and pass self-test (checksum)

$ virt-install --name edge-test-4 --os-variant rhel9.2 --memory 4096 --vcpus 2 --disk size=20 --cdrom /home/student/rhel9-httpd-v1-mkksiso.iso -v

Automatically changes the grub menu to use the name of the new kickstart
It was necessary to change ownership of the output ISO to use with virt-installer

@flozanorht
Copy link
Collaborator Author

Also work using --location for text-mode boot

$ virt-install --name edge-test-4b --os-variant rhel9.2 --memory 4096 --vcpus 2 --disk size=20 --location /home/student/rhel9-httpd-v1-mkksiso.iso --graphics=none --extra-arg console=ttyS0 --extra-arg inst.ks=hd:LABEL=$LABEL:/rhel9-httpd-installer.ks -v

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant