[PATCH 1/5] Install udev rules in /lib/udev/rules.d instead of in runtime dir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Install the udev rules in /lib/udev/rules.d instead of in runtime dir, so
that they are available for use directly on the livecd.
---
 Makefile             |    3 ++-
 anaconda.spec        |    1 +
 scripts/upd-instroot |    1 -
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 388af21..dd45b29 100644
--- a/Makefile
+++ b/Makefile
@@ -87,11 +87,12 @@ install:
 	mkdir -p $(DESTDIR)/usr/bin
 	mkdir -p $(DESTDIR)/usr/sbin
 	mkdir -p $(DESTDIR)/etc/rc.d/init.d
+	mkdir -p $(DESTDIR)/lib/udev/rules.d
 	mkdir -p $(DESTDIR)/$(PYTHONLIBDIR)
 	mkdir -p $(DESTDIR)/$(RUNTIMEDIR)
 	mkdir -p $(DESTDIR)/$(ANACONDADATADIR)
 
-	install -m 644 70-anaconda.rules $(DESTDIR)/$(RUNTIMEDIR)
+	install -m 644 70-anaconda.rules $(DESTDIR)/lib/udev/rules.d
 
 	install -m 755 anaconda $(DESTDIR)/usr/sbin/anaconda
 	install -m 755 mini-wm $(DESTDIR)/usr/bin/mini-wm
diff --git a/anaconda.spec b/anaconda.spec
index 603fcc2..30e20ee 100644
--- a/anaconda.spec
+++ b/anaconda.spec
@@ -190,6 +190,7 @@ update-desktop-database &> /dev/null || :
 %doc docs/kickstart-docs.txt
 %doc docs/mediacheck.txt
 %doc docs/anaconda-release-notes.txt
+/lib/udev/rules.d/70-anaconda.rules
 %{_bindir}/mini-wm
 %{_sbindir}/anaconda
 %ifarch i386 i486 i586 i686 x86_64
diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index 8491bc0..8e86eae 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -950,7 +950,6 @@ mv $DEST/usr/sbin/anaconda $DEST/usr/bin/anaconda
 mv $DEST/usr/lib/anaconda-runtime/lib* $DEST/usr/$LIBDIR 2>/dev/null
 
 mv $DEST/etc/yum.repos.d $DEST/etc/anaconda.repos.d
-cp $DEST/usr/lib/anaconda-runtime/70-anaconda.rules $DEST/lib/udev/rules.d/
 
 rm -f $DEST/usr/$LIBDIR/libunicode-lite*
 
-- 
1.6.1.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux