Move probe-bcache to UDEVLIBDIR

This commit is contained in:
Gabriel 2013-10-06 11:07:20 +02:00
parent 0c7a484a5b
commit 86ba62c6a1
3 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ ENV{ID_FS_TYPE}=="bcache", GOTO="bcache_backing_found"
ENV{ID_FS_TYPE}=="?*", GOTO="bcache_backing_end"
# Backing devices: scan, symlink, register
IMPORT{program}="/sbin/probe-bcache -o udev $tempnode"
IMPORT{program}="probe-bcache -o udev $tempnode"
ENV{ID_FS_TYPE}!="bcache", GOTO="bcache_backing_end"
ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"

View File

@ -1,14 +1,14 @@
PREFIX=/usr
UDEVLIBDIR=/lib/udev
CFLAGS+=-O2 -Wall -g
all: make-bcache probe-bcache bcache-super-show
install: make-bcache probe-bcache bcache-super-show
install -m0755 make-bcache bcache-super-show $(DESTDIR)${PREFIX}/sbin/
install -m0755 probe-bcache $(DESTDIR)/sbin/
install -m0644 69-bcache.rules $(DESTDIR)/lib/udev/rules.d/
install -m0755 bcache-register $(DESTDIR)/lib/udev/
install -m0755 probe-bcache bcache-register $(DESTDIR)$(UDEVLIBDIR)/
install -m0644 69-bcache.rules $(DESTDIR)$(UDEVLIBDIR)/rules.d/
-install -T -m0755 initramfs/hook $(DESTDIR)/usr/share/initramfs-tools/hooks/bcache
install -m0644 -- *.8 $(DESTDIR)${PREFIX}/share/man/man8/
# install -m0755 bcache-test $(DESTDIR)${PREFIX}/sbin/

View File

@ -18,5 +18,5 @@ esac
cp -pt "${DESTDIR}/lib/udev/rules.d" /lib/udev/rules.d/69-bcache.rules
copy_exec /lib/udev/bcache-register
copy_exec /sbin/probe-bcache
copy_exec /lib/udev/probe-bcache
manual_add_modules bcache