You are not logged in.
Pages: 1
What is the proper way to add new udev rules to the initramfs?
A little background: I am running a luks encrypted root file system. The key to decrypt the luks filesystem is stored on a usbkey between the mbr and the first partition. I cannot rely on the drive being mounted as /dev/sdx every time I reboot so I have added a udev rule that creates a symlink to /dev/usbkey. Putting this rule in /"etc/udev/rules.d/" does not work. Putting the udev rule into the end of "/lib/udev/rules.d/60-persistent-storage.rules" and rebuilding initramfs does work. I know adding the rule here isn't the best idea as these files can be overwritten in updates.
I am not terribly familiar with the etiquette in early userspace and want to make sure I learn to do this the "Correct" way. (I know "Correct" is arbitrary) ![]()
Last edited by s0ma (2011-12-14 18:45:34)
Offline
Create a new rule file (in /etc/udev/rules.d probably) and add it to FILES= in /etc/mkinitcpio.conf. Regenerate your image.
Thanks Falconindy ![]()
Offline
Pages: 1