inst_rules() searches for rules in current dir
Hello.
Is this intentional, or a bug?
# touch 11-dm-lvm.rules # ls -ln 11-dm-lvm.rules -rw-r--r-- 1 1000 1000 0 Oct 3 18:32 11-dm-lvm.rules # dracut -f ... *** Including module: lvm *** dracut-install: ERROR: installing '11-dm-lvm.rules' to '/etc/udev/rules.d/11-dm-lvm.rules' /usr/libexec/dracut-install -D /var/tmp/initramfs.EZ7ISH 11-dm-lvm.rules /etc/udev/rules.d/11-dm-lvm.rules ... # lsinitrd /boot/initramfs-3.11.3-hardened.img | grep 11-dm-lvm.rules -rw-r--r-- 1 root root 0 Oct 3 18:32 etc/udev/rules.d/11-dm-lvm.rules -r--r--r-- 1 root root 1303 Sep 30 20:11 lib64/udev/rules.d/11-dm-lvm.rules
Related line from dracut-functions.sh:
899 for r in '' ./ $dracutbasedir/rules.d/; do
Are '' and ./ really needed here?
Signature · 1 line
Alexander Tsoy
A message that is not in the archive (sent off-list or not yet received): 20131003185109.4f88e313-d/[email protected]
Quoted 18 lines · Alexander Tsoy
Hello.
Is this intentional, or a bug?
# touch 11-dm-lvm.rules # ls -ln 11-dm-lvm.rules -rw-r--r-- 1 1000 1000 0 Oct 3 18:32 11-dm-lvm.rules # dracut -f ... *** Including module: lvm *** dracut-install: ERROR: installing '11-dm-lvm.rules' to '/etc/udev/rules.d/11-dm-lvm.rules' /usr/libexec/dracut-install -D /var/tmp/initramfs.EZ7ISH 11-dm-lvm.rules /etc/udev/rules.d/11-dm-lvm.rules ... # lsinitrd /boot/initramfs-3.11.3-hardened.img | grep 11-dm-lvm.rules(quoted diff) +0
-2-rw-r--r-- 1 root root 0 Oct 3 18:32 etc/udev/rules.d/11-dm-lvm.rules -r--r--r-- 1 root root 1303 Sep 30 20:11 lib64/udev/rules.d/11-dm-lvm.rules
Quoted 6 lines
Related line from
dracut-functions.sh:899 for r in '' ./ $dracutbasedir/rules.d/; do
Are '' and ./ really needed here?
No, will remove them! Thanks!