mkinitrd problem with kernel 4.19.0
I have two machines running -current (64 bit) with Eric's KDE5. The old machine in my workshop, I use as a test hack before upgrading my main machine in case of any "gotchas". The old machine uses Lilo to boot, and the new machine, being UEFI, uses elilo.
I upgraded the old machine to the new 4.19.0 kernel without problems. However, on the EFI machine, when I run mkinitrd, I get the following: Code:
root@MyMachine:/boot/efi/EFI/Slackware# mkinitrd -c -k 4.19.0 -m ext4 What is that "root@MyMachine.1275" file? there is nothing like that in the rules.d folder on either machine! I normally roll my own kernels with ext4 built in, and therefore don't need an initrd, but I can't see why one machine works fine, but not the other! All suggestions gratefully received! -- Pete |
Hi, I normally run mkinitrd in /boot and then copy the initrd.gz to the efi partition. It looks like you ran it in the efi partition where there is no initrd-tree that is normally used to make the image. Maybe it's using your old initrd on the efi partition as a source and then finds something that's normally not there...
hth rob |
What kernel do you have in /boot/efi/EFI/Slackware, and in particular is it the same as the vmlinuz image in /boot (it should be)? If it isn't, you may have got an old kernel image installed in /boot/efi/EFI/Slackware - see https://www.linuxquestions.org/quest...nt-4175640970/. (Equally, it may be nothing to do with that.)
|
I've definitely got the same kernel in both /boot/ and /boot/efi/EFI/Slackware. When the system boots, when elilo runs, the second line appears to say that it can't find /boot/initrd.gz. The message is so subliminal that I've had to reboot a few times to make it out!
I thought maybe it needed the vfat module loading as well as ext4 (the efi partition needs to be vfat), so I made a new initrd with both modules, but that hasn't worked either. I've put the initrd.gz in both /boot (which is where mkinitrd places it) and /boot/efi/EFI/Slackware, to no avail. The file is definitely there - not a symlink - but for some reason, the system can't read it when booting! Luckily, I've got my old kernel, so I can still run that. I'm sure its something to do with that strange "cannot stat" message I get when running mkinitrd, but I have no idea what is causing it! -- Pete |
Hello,
can you post the output of : Code:
$ bash -x mkinitrd -c -k 4.19.0 -m ext4 SeB |
1 Attachment(s)
Hi SeB,
That command produces a LOT of output. It falls outside the scroll-back of the window! I tried redirecting it to a file, which only produces the following lines: Code:
OK: /lib/modules/4.19.0/kernel/fs/jbd2/jbd2.ko added. Using your command seems to stop it producing the error for some reason, but it still doesn't work! If you have any suggestions how to capture the entire output, I'll try again. I just appended > mkinitrd_long.txt to your command. Cheers, -- Pete |
Cracked it! I had set
Code:
initrd=/boot/initrd.gz Code:
initrd=initrd.gz It appears ELILO doesn't like the initrd.gz file being anywhere other than in the same folder as the kernel! A lesson learned, and thanks for the suggestions! Still don't know what that "cannot stat" statement was about, but it looks like it was a red herring! Cheers, -- Pete |
Hello,
Quote:
Code:
$ bash -x mkinitrd -c -k 4.19.0 -m ext4 &>/tmp/mkinitrd.log -- SeB |
1 Attachment(s)
Here you go (see attached file). The error show up around line 1108. But I seem to have solved the problem now, anyway.
Thanks for your help! -- Pete |
All times are GMT -5. The time now is 11:52 AM. |