Score:2

completely media-less kexec install of a rhel-based distro?

id flag

I'd like to be able to install a small redhat server from kexec without media being present on the system during the installation (no hdd, removable media, or network). This seems feasible because I can generate and kexec boot an initramfs of the relevant size without trouble and kexec loads the whole initramfs into memory at load-time, allowing the initramfs programs to overwrite the storage that originally hosted the initramfs. I've tried adding the Packages and repodata directory trees to an initrd, and tried getting kickstart to recognize them with inst.repo=file:///myrepo, but upon further investigation, it appears the repo is expected to be mounted by some python scripting into /run/install/repo after a root pivot from the original initrd to an install.img.

I'm trying to figure out how to embed this repo in the initrd (or some nested static filesystem image within it) in order to get it to fully install from kexec without any external resources (ie, hdd or cd/removable media because the installation will write over all storage in the system).

The only thing I can think of, is maybe embed the repo directories in the rootfs.img, then have kickstart's %pre run losetup on the image and loopback mount it into /run/install/repo.

I can't tell whether this has been done before, as I've searched quite a bit with no luck. I've also looked for anaconda/kickstart mailing lists for assistance without finding anything there either.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.