Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
initrd completely ignoring my dracut.cmdline parameters
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
mamu
n00b
n00b


Joined: 27 Aug 2016
Posts: 2

PostPosted: Sat Aug 27, 2016 12:04 pm    Post subject: initrd completely ignoring my dracut.cmdline parameters Reply with quote

Hello gentoo-people,

i try to setup a machine with btrfs inside a luks-container. The
encryption itself works fine but i'm not able to get it decryptet by the initrd before the kernel is starting through. I created an initrd using dracut. The crypt module is included according to the messages of dracut:

Code:
livecd / # dracut --force --kver 4.4.6-gentoo
dracut: Executing: /usr/bin/dracut --force --kver 4.4.6-gentoo
dracut: dracut module 'bootchart' will not be installed, because command '/sbin/bootchartd' could not be found!
dracut: dracut module 'dash' will not be installed, because command '/bin/dash' could not be found!
dracut: dracut module 'modsign' will not be installed, because command 'keyctl' could not be found!
dracut: dracut module 'network' will not be installed, because command 'arping' could not be found!
dracut: dracut module 'network' will not be installed, because command 'dhclient' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command 'dmraid' could not be found!
dracut: dracut module 'mdraid' will not be installed, because command 'mdadm' could not be found!
dracut: dracut module 'multipath' will not be installed, because command 'multipath' could not be found!
dracut: dracut module 'crypt-gpg' will not be installed, because command 'gpg' could not be found!
dracut: dracut module 'cifs' will not be installed, because command 'mount.cifs' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'dcbtool' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'fipvlan' could not be found!
dracut: dracut module 'fcoe-uefi' will not be installed, because command 'lldpad' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsistart' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'nbd' will not be installed, because command 'nbd-client' could not be found!
dracut: 95nfs: Could not find any command of 'rpcbind portmap'!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: *** Including module: bash ***
dracut: *** Including module: systemd ***
dracut: *** Including module: systemd-initrd ***
dracut: *** Including module: caps ***
dracut: caps: does not work with systemd in the initramfs
dracut: *** Including module: i18n ***
dracut: *** Including module: drm ***
dracut: *** Including module: plymouth ***
dracut: *** Including module: btrfs ***
dracut: *** Including module: crypt ***
dracut: *** Including module: dm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 60-persistent-storage-dm.rules
dracut: Skipping udev rule: 55-dm.rules
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: lvm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 56-lvm.rules
dracut: Skipping udev rule: 60-persistent-storage-lvm.rules
dracut: *** Including module: resume ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Skipping udev rule: 40-redhat.rules
dracut: Skipping udev rule: 50-firmware.rules
dracut: Skipping udev rule: 50-udev.rules
dracut: Skipping udev rule: 91-permissions.rules
dracut: Skipping udev rule: 80-drivers-modprobe.rules
dracut: *** Including module: dracut-systemd ***
dracut: *** Including module: usrmount ***
dracut: *** Including module: base ***
dracut: *** Including module: fs-lib ***
dracut: *** Including module: shutdown ***
dracut: *** Including modules done ***
dracut: *** Installing kernel module dependencies and firmware ***
dracut: *** Installing kernel module dependencies and firmware done ***
dracut: *** Resolving executable dependencies ***
dracut: *** Resolving executable dependencies done***
dracut: *** Stripping files ***
dracut: *** Stripping files done ***
dracut: *** Store current command line parameters ***
dracut: *** Creating image file '/boot/initramfs-4.4.6-gentoo.img' ***
dracut: *** Creating initramfs image file '/boot/initramfs-4.4.6-gentoo.img' done ***

So according to that message the crypt module was included. After that
i fired up grub-mkconfig -o /boot/grub/grub.cfg:

livecd linux # grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.6-gentoo
Found initrd image: /boot/initramfs-4.4.6-gentoo.img
Found linux image: /boot/vmlinuz-4.4.6-gentoo.old
Found initrd image: /boot/initramfs-4.4.6-gentoo.img
done



And yeah it found my initramfs ;-). The important lines of the grub.cfg
are the following:

Code:
echo    'Loading Linux 4.4.6-gentoo ...'
                linux   /vmlinuz-4.4.6-gentoo root=/dev/mapper/ssd ro init=/usr/lib/systemd/systemd quiet KEYMAP=de LANG=de_DE.UTF-8 rd.auto rd.luks=1 rd.shell
                echo    'Loading initial ramdisk ...'
                initrd  /initramfs-4.4.6-gentoo.img


Yes, i know it is not best practice to do an autodiscovery of the luks
volume. I will specify the exact volume uuids when i know that my
initrd is working. Right now i just have the feeling that the initrd is
doing nothing. If i boot up the system. There are some messages from
the kernel i think, after that just a black screen. 10 Seconds nothing
then half a second a turned off screen and then a black screen again.
At least i'd like to be dropped to the rescue shell or get some output
from the initrd. So i really have no idea whats wrong with the setup.
Ah yes i activated initrd support in the kernel config.
Code:
CONFIG_BLK_DEV_INITRD=y
i mean.

ok, thats it. I really hope that some of you guys have an idea what to
do next.

Thanks for your time and help in advance.

mamu
Back to top
View user's profile Send private message
mamu
n00b
n00b


Joined: 27 Aug 2016
Posts: 2

PostPosted: Sat Aug 27, 2016 10:54 pm    Post subject: Solved!! Reply with quote

hello again,

i visited the great summerfeast of the c3re and found a clever guy who was able to help me out. So i will try to line out what i had to do to get my gentoo running. The first Problem was the black screen. It was caused by some problems with my graphics card and kms. I turned it off using the kernel parameter nomodeset. After that i was able to read the error message. It told me that im missing the file called cryptsetup.target. I recompiled systemd with the local use flag cryptsetup so that issue was solved too ;-) . After that i realized that some Kernel modules/features where missing (AES and crypto related stuff) i added them to the kernel and tadaaa everything worked ;-) Sorry for the detailless explanation but its late in the night and im happy that the gentoo is running. I dont wanted to close the topic without informing you what did the trick for me.

good n8 :D :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum