From Newsgroup: alt.os.linux.slackware
Marco Moock <
mm@dorfdsl.de> wrote:
Am 04.07.26 um 21:12 schrieb Rich:
Did you remember to recreate the initrd if you are booting a kernel
that uses an initrd (lack of modules implies you are using a kernel
that needs the correct initrd).
No, I didn't. I had a BIOS machine (dunno if that used the huge kernel)
that didn't need that.
How can I do that now?
Boot the install image, switch to the virtual console and chroot into
the installed OS?
That might work. Did you create an "emergency USB" during install? If
yes, boot that. If not, you may have no choice but to try booting the
install image and mounting the root drive in the same way as when the installer is installing.
From the kernel upgrade emails on the Slackware Security mailing list
these are the instructions to rebuild the initrd:
If you are using an initrd, you'll need to rebuild it.
For a 32-bit SMP machine, use this command (substitute the appropriate
kernel version if you are not running Slackware 15.0):
# /usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.15.209-smp | bash
For a 64-bit machine, or a 32-bit uniprocessor machine, use this command
(substitute the appropriate kernel version if you are not running
Slackware 15.0):
# /usr/share/mkinitrd/mkinitrd_command_generator.sh -k 5.15.209 | bash
Please note that "uniprocessor" has to do with the kernel you are running,
not with the CPU. Most systems should run the SMP kernel (if they can)
regardless of the number of cores the CPU has. If you aren't sure which
kernel you are running, run "uname -a". If you see SMP there, you are
running the SMP kernel and should use the 5.15.209-smp version when running
mkinitrd_command_generator. Note that this is only for 32-bit -- 64-bit
systems should always use 5.15.209 as the version.
Also, after rebuilding the initrd you'll need to rerun the lilo update
to make sure the boot code knows where to find the newly created
initrd.
This is also a good reason why, instead of replacing the existing
bootable kernel, the upgrade process should add a second (or third,
etc.) along side and an additional boot line in elilo. Then if the new
kernel fails, you can always reboot into the old, working one.
--- Synchronet 3.22a-Linux NewsLink 1.2