Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 610588 - sys-kernel/dracut-044-r2 - kbd_mode: can't open '/dev/tty': No such device or address
Summary: sys-kernel/dracut-044-r2 - kbd_mode: can't open '/dev/tty': No such device or...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-22 18:19 UTC by Martin Mokrejš
Modified: 2023-09-08 09:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2017-02-22 18:19:35 UTC
It seems dracut makes a broken initramdisk image now if crypt-gpg module is selected to be included in the image.

dracut -a "crypt crypt-gpg lvm dm" --kver 4.10.10-default-pciehp  --force

After booting I get in between the usual kernel-bootup messages:

kbd_mode: can't open '/dev/tty': No such device or address
setfont: LatArCyrHeb-16: No such file or directory


Thanks to 'rd.shell rd.debug rd.retry=4' on kernel commandline I can get into a shell.

Because of the above error my $(tty) is unset.

Therefore the trick with setting 'GPG_TTY=$(tty) gpg ...' to maybe work around missing gpg-agent binary does not work because "$tty" is empty. I do not see in 'printenv | grep -i tty' any variable holding a pointer to my tty device. However, GPG_TTY=`tty` sets the variable but I assume this is only possible because I made dracut to include busybox and bash for me in the image.

Running tty command returns /dev/tty1, btw.