Change in advice for creating initrd
I have always created initrd according the instructions in /boot/README.initrd
Quote:
Quote:
Alan |
Change in advice for creating initrd
I do it the old way. No issues so far.
In addition to root filesystem support, I also add vfat, iso9660, loop and network card modules. Probably not needed, but will allow me to fix stuff if I break it. On VMware VMs I also add the vmware pvscsi module... otherwise they can't boot. What extra stuff does the generator add? |
This is the output for the new way
Quote:
Quote:
|
The /sbin/mkintrd script is liberally commented to help understand how it works. Here's the comments from the last half of the script:
Code:
root@desktop:/sbin# grep '^#' mkinitrd |
The /usr/share/mkinitrd/mkinitrd_command_generator.sh helps to get the module list you may need in your initrd to use your hardware. I will also detect if you're LUKS encrypted.
I prefer to use the /etc/mkinitrd.conf file (provided as sample). I just change or override a few things at each run : Code:
mkinitrd -F Code:
# mkinitrd.conf.sample |
I use mkinitrd_command_generator.sh all the time. I don't however run the recomended command right away. As the mkinitrd_command_generator.sh comments say, it sure adds all the modules it can.
|
Using 'mkinitrd' as above works fine, just loads the modules for getting the root volume set up. Everything will be OK, until one day there is a problem with the root volume; initrd gives you a shell, but your keyboard does not work, because the USB and HID modules are not in the initrd. Then you will reconsider the advice from slackware-security, as you search around for that bootable USB flash drive or DVD. Been there.
|
Quote:
|
That's what I use the huge kernel for... Boot with Lilo, default to generic with an appropriate initrd, but always have the choice of switching to huge during boot if something goes wonky.
|
Quote:
|
Quote:
You only mentioned a problem with the root volume. It's certainly possible, but it would mean either the bios or bootloader's misconfigured, or it's missing the driver for rootfs. So it's not very clear to me what exactly is the problem with huge kernel, and how it can be fixed. Personally, I've used a partition where another system can always be booted if something happens to the first one. So I can probably fix it either from another internal drive, or from another partition. It's just very inconsistent that it's apparently failing to find modules on rootfs for unknown reason, TBH. |
Here's my preferred change - Don't use an initrd unless you encrypt your root filesystem. Just build a kernel that has your early needs hard-wired and never have to deal with it again until you need to upgrade (not just patch) your kernel (not often on the same hardware).
|
Quote:
|
Quote:
I no longer install 'huge' kernel as a recovery tool. Instead, I now keep 2 versions of 'generic', along with their separate modules. Also 2 separate initrd's. When there is a kernel update, I remove the older one and install the newer one, still keeping 2 versions. I think this provides good recovery ability. |
Quote:
|
All times are GMT -5. The time now is 04:09 AM. |