SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You might want to add -m <modules> but this in mounted on /. Itonly has to get your root filesystem loaded and mounted on /, at which point it's overwritten by the root filesystem, and vanishes. You don't need the kitchen sink in it.
I think it's you who ignored information.
Quote:
Originally Posted by wigums
fresh current install with lvm/luks
Your own trivial mkinitrd command will only work for trivial installs. It won't result in a useful commandline for a LUKS/LVM configuration.
if i knew why it didnt work id fix it. all i know is the non interactive command doesnt produce a working initrd while the interactive command does create a working initrd
i dont use my own command. i use the generator. i think you dont understand my problem
Nah, that was not meant as a comment to you. It was meant for business_kid who showed a trivial mkinitrd command that will not work for your LUKS/LVM setup.
if i knew why it didnt work id fix it. all i know is the non interactive command doesnt produce a working initrd while the interactive command does create a working initrd
Well, from a cursory glance, your "non-interactive" command is missing at least '-m ext4' which will be required when using the slackware 'generic' kernel.
BTW, '-u' is unnecessary. It's been the default for quite a while.
You do realize that you need to run the command inside chrooted Slackware installation, right? If you run the generator command in the Slackware installer environment, you will not get the correct results.
I tried my own machine for fun. This is what the non-interactive command returns:
Code:
root@hogan:/# /usr/share/mkinitrd/mkinitrd_command_generator.sh
#
# mkinitrd_command_generator.sh revision 1.45
#
# This script will now make a recommendation about the command to use
# in case you require an initrd image to boot a kernel that does not
# have support for your storage or root filesystem built in
# (such as the Slackware 'generic' kernels').
# A suitable 'mkinitrd' command will be:
mkinitrd -c -k 4.19.2 -f ext4 -r /dev/nvme0n1p7 -m usb-storage:xhci-hcd:xhci-pci:ohci-pci:ehci-pci:uhci-hcd:ehci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:jbd2:mbcache:crc32c-intel:ext4 -u -o /boot/initrd.gz
You notice that this non-interactive comandline lists a lot of kernel modules (the "-m" parameter). It is a Slackware 14.2 machine with a custom kernel, additional USB storage attached and the root partition is a ext4 filesystem on a NVMe drive.
I used this exact output to generate the initrd and my computer boots just fine.
I haven't tried what you wrote, but it looks correct to me. I've used LVM and LUKS on both of my laptops (down to one laptop after I dropped one and broke the screen). Encrypting the PV is the way to go, IMO.
point being is that i know how to do it and im getting crap commands from the generator.
im over it. i can get a valid command from the interactive generator. youd think id know better than to ask slackers for help with slackware by now
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.