Help updating /etc/hosts and installing drivers #1393
-
Hi, I have updated my seedimage to add entries in /etc/hosts, but this doesn't carry across to the OS post install. I've tried updating it in the after-install-chroot stage which is also where I am trying to install RPM's https://elemental.docs.rancher.com/customizing#adding-extra-driver-binaries-into-the-iso-example But the commands I am running don't appear to do anything - after reboot there are no host entries and the rpm packages I have attempted to install are not there? Not sure what I'm doing wrong? Can anyone help out with how they've done it? Also is there a way to get back into chroot manually - I have disabled the auto reboot/shutdown after the OS install, so wanted to manually go back into the chroot environment and see what has or hasn't been applied and troubleshoot it further that way. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
Please share more details on this. How do you "update your seedimage" ?
You shouldn't do this post-install but rather during image build. |
Beta Was this translation helpful? Give feedback.
-
Ah ok - I get it the docker part didn't sink in when I first read through. So I should create a custom docker build and then use that as the base for the iso image I'm building. Yeah let me try that out. |
Beta Was this translation helpful? Give feedback.
-
ok I've progressed to creating the ISO image and it is failing with: Failed fetching EFI data: stat /tmp/elemental-iso680850754/rootfs/usr/share/grub2/x86_64-efi/grub.efi: no such file or directory This happens with the instructions in here and with my custom docker image https://elemental.docs.rancher.com/customizing |
Beta Was this translation helpful? Give feedback.
-
Docker file:
I am then user this Dockerfile building the ISO:
Building with: I then copy all my overlay files into the iso image output from the build and then build the VM with that ISO. |
Beta Was this translation helpful? Give feedback.
Nevermind - worked this one out as well - it is resource starvation HERE
Upped the memory on the VM from 2GB to 8GB next issue space - but yeah sorted it
Thanks for the help guys