How to install .bin file in customized RHEL 7
Hi,
I'm creating a customized RHEL 7 with my own rpm packages. I have also a .bin file to be installed which is not packaged by me. How do I include the .bin file as part of installation?
Responses
Hi,
You can also create a kickstart file in which the .bin file is executed after the other packages have been installed. See the Post-installation Script section in the Installation Guide.
You can keep the .bin file somewhere on the network and download and run it in the %post section. It's also convenient this way due to the fact that, by default, the post-installation script runs in a chrooted environment (in the newly installed system), so it doesn't have access to the installation media.
If you must include the .bin file in the ISO image, check out the --nochroot option described in the docs, but keep in mind that in this case the .bin file will run with the installation media as the root directory, so you may need to use chroot manually. I haven't tested it, but you should be able to use something like the following:
%post --nochroot
cp /run/install/repo/your-file.bin /mnt/sysimage/root
chroot /mnt/sysimage/ /root/your-file.bin
%end
(/run/install/repo/ should be the root dir of the ISO, while /mnt/sysimage is the newly installed system)
Hi All
I am trying to login linux server through putty my linux server is hanged after logging my linux server i run "top" command also not working
how to resolve issue please update me ASAP
Hi Prabhakar,
Please, start a separate discussion thread. When you do, please, include some more details about the problem you're experiencing. For example, what exactly is the problem?
- Are you having trouble logging in to your server using Putty? If so, can you share any error messages?
- Did your server freeze? If so, is it possible to identify the cause? What happened before the freeze?
- What do you mean by saying that the
topcommand isn't working? It's not possible to run it? Does it show strange information?
Thank you.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
