D
D
DollyPapper2021-01-08 11:30:27
linux
DollyPapper, 2021-01-08 11:30:27

Update-initramfs from chroot?

Colleagues, good afternoon! Recently I took up the task of compiling a Linux image with the necessary software and writing the whole thing to another image: the sequence is as follows
1) Install and configure all the necessary software
2) I archive the current system and write the archive to the System Rescue CD iso image
3) I boot from SRCD and with script I put a new system. The script creates fs, configures and does other necessary things
4) I'm loading into the new system. And this is where the problem begins. The kernel is loaded from a minute or longer. I searched for the reason for a long time and finally found out that I forgot to update the initramfs on the new system. After updating via update-initramfs directly in the target system, the kernel is loaded for 20 seconds, but if you write the whole thing into my script and do it during installation, where the host system is essentially an SRCD that is based on arch (Debian target system), from chroot , then update-initramfs does not produce the same result. That is, the initrd itself is generated, everything is fine, everything starts, but it starts again for 50 seconds or longer. What could it be? Is it possible to somehow update the initrd normally from the chroot?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question