Install rules straight into /etc/udev/rules.d udev version 029 since mid 2004 uses this directory already. Signed-off-by: Olaf Hering <olaf@aepfle.de> --- tools/hotplug/Linux/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- xen-unstable.hg-4.1.21836.orig/tools/hotplug/Linux/Makefile +++ xen-unstable.hg-4.1.21836/tools/hotplug/Linux/Makefile @@ -101,8 +101,7 @@ install-udev: $(INSTALL_DIR) $(DESTDIR)$(UDEV_RULES_DIR)/rules.d set -e; for i in $(UDEV_RULES); \ do \ - $(INSTALL_DATA) $$i $(DESTDIR)$(UDEV_RULES_DIR); \ - ln -sf ../$$i $(DESTDIR)$(UDEV_RULES_DIR)/rules.d; \ + $(INSTALL_DATA) $$i $(DESTDIR)$(UDEV_RULES_DIR)/rules.d; \ done .PHONY: clean _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Olaf Hering writes ("[Xen-devel] [PATCH] install udev rules into
rules.d"):> - $(INSTALL_DATA) $$i $(DESTDIR)$(UDEV_RULES_DIR); \
> - ln -sf ../$$i $(DESTDIR)$(UDEV_RULES_DIR)/rules.d; \
> + $(INSTALL_DATA) $$i $(DESTDIR)$(UDEV_RULES_DIR)/rules.d; \
What will this do if run on a system which already has the symlink
arrangement from the previous versions of Xen ? Perhaps some kind of
fixing up is necessary.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
On Fri, Jul 23, Ian Jackson wrote:> Olaf Hering writes ("[Xen-devel] [PATCH] install udev rules into rules.d"): > > - $(INSTALL_DATA) $$i $(DESTDIR)$(UDEV_RULES_DIR); \ > > - ln -sf ../$$i $(DESTDIR)$(UDEV_RULES_DIR)/rules.d; \ > > + $(INSTALL_DATA) $$i $(DESTDIR)$(UDEV_RULES_DIR)/rules.d; \ > > What will this do if run on a system which already has the symlink > arrangement from the previous versions of Xen ? Perhaps some kind of > fixing up is necessary.I tried strace -f -o x -s 123 install a b, and b was unlinked first. So it appears that the patch above is save. Packing systems get this symlink-to-file thing right as well. Olaf _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel