]> git.ipfire.org Git - thirdparty/dracut.git/commit
move get_persistent_dev to dracut-functions.sh
authorDave Young <dyoung@redhat.com>
Mon, 10 Sep 2012 08:10:46 +0000 (16:10 +0800)
committerHarald Hoyer <harald@redhat.com>
Mon, 10 Sep 2012 13:50:36 +0000 (15:50 +0200)
commitff0636635a0d20562d86ab5f4450bb8066dbd7dc
treee3ee2dcbe8361c0d27d66b30a0f339f2b5f00197
parentba111df2b99f9f1dc5c51442ad92bcefbf16bd91
move get_persistent_dev to dracut-functions.sh

kdump module also need to convert dev name to udev symlinks.
So better to move function get_persistent_dev() to dracut-functions.sh

Also in this patch improvement and fix the original function:
a) use udevadm info --query=name to get the kernel name.
   This will fix the issue caused by passing symbolic link of a device.
b) fix a bug to compare $_tmp instead of $i with $_dev. Really sorry,
   should have tested more carefully.

Signed-off-by: Dave Young <dyoung@redhat.com>
dracut-functions.sh
modules.d/99base/module-setup.sh