Skip to content

/etc/vconsole.conf disappeared?

I just noticed that I had no /etc/vconsole.conf in my filesystem. I noticed because the dm-crypt password didn't work until I tried typing it with an en qwerty layout.

Pacman rebuilt the initial ramdisk few hours ago (probalby because of updating `cryptsetup (2.2.1-1 -> 2.2.2-1)`).
The previous time mkinitcpio ran, it correctly built a system with my keyboard layout, so vconsole.conf must have been ther. It was two days ago right after I installed Arch. Installing plasma-meta triggered it. I'm fairly sure that I didn't rebuild an initramfs from a live system or from a different root after that point.

/etc/ is in my root filesystem, using ext4 and encrypted with dm-crypt, on an NVMe drive.

I checked my shell history and I couldn't find any command that might have removed /etc/vconsole.conf. The only command I ran that might be related is localectl set-x11-keymap.

Is it possible that some command or program deleted it?

Is it possible that ext4 randomly lost it? This is my main fear. I don't want to risk losing data without even noticing.

Anybody has any other theory? How can I verify what could have happened?

7 points5 comments
Open on Reddit
About this post
Posted
Archived
Score
7 · 100% up
Kind
Text
ID
drijik

Author

15
posts
23
comments
1
media
View profile

5 comments

did you have /etc/vconsole.conf before ?

3 points

I believe so: the previous time I rebuilt the initramfs (two days ago), dm-crypt was using my layout.

It reads the keyboard layout from /etc/vconsole.conf, since I'm using the sd-vconsole mkinitcpio hook.

1 points

sd-vconsole

Adds the specified keymap(s) from /etc/vconsole.conf to the initramfs. If you use system encryption, especially full-disk encryption, make sure you add it before the encrypt hook.

Form : https://wiki.archlinux.org/index.php/Mkinitcpio

i don't know if that help you.

1 points
unknown author

Deleted before we saved it.

-5 points

No idea. It's here in my system.

architector4@Architector4PC:~$ stat /etc/vconsole.conf 
  File: /etc/vconsole.conf
  Size: 73        	Blocks: 8          IO Block: 4096   regular file
Device: 803h/2051d	Inode: 11273407    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2019-11-04 15:11:06.547243240 +0300
Modify: 2019-10-04 08:57:35.956990707 +0300
Change: 2019-10-04 08:57:35.960324040 +0300
 Birth: 2019-10-04 08:57:35.956990707 +0300
1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.