[SM-Commit] PERFORCE change 77880 by Juuso Alasuutari for review

Perforce Review Daemon p4review at smee.org
Tue Apr 18 06:05:01 EDT 2006


Change 77880 by juuso_alasuutari at juuso_alasuutari-kamayuq on 2006/04/18 11:00:39

	New network interface binding hack to test.

Affected files ...

... //sgl/grimoires/test/disk/udev/CONFIGURE#11 integrate
... //sgl/grimoires/test/disk/udev/HISTORY#62 integrate
... //sgl/grimoires/test/disk/udev/INSTALL#22 integrate
... //sgl/grimoires/test/disk/udev/bindings#2 delete
... //sgl/grimoires/test/disk/udev/helpers/mac2name#1 branch
... //sgl/grimoires/test/disk/udev/rules/07-bindings.rules#1 branch

Differences ...

==== //sgl/grimoires/test/disk/udev/CONFIGURE#11 (xtext) ====

@@ -1,5 +1,4 @@
 config_query UDEV_PERSIST 'Install persistent storage rules?' n &&
-config_query UDEV_NETWORK 'Install persistent network interface names?' n &&
 config_query UDEV_STATIC 'Create static binaries in addition to dynamically linked ones?' n &&
 config_query_option UDEV_DEBUG 'Compile extra debugging messages?' n 'DEBUG=true' 'DEBUG=false' &&
 if [[ "$UDEV_STATIC" == 'y' ]]; then

==== //sgl/grimoires/test/disk/udev/HISTORY#62 (text) ====

@@ -1,3 +1,13 @@
+2006-04-18 Juuso Alasuutari <iuso at sourcemage.org>
+	* CONFIGURE, INSTALL: Undid previous hack in favor of a better 
+	  one. Now interface names are bound if MAC addresses are set 
+	  for them with netconf. Thanks to Mads Laursen for the idea and 
+	  Arwed von Merkatz for pointing out how to do it.
+	* bindings: Deleted
+	* helpers/mac2name: Added, helper script to retrieve interface 
+	  names in exchange for MAC addresses
+	* rules/07-bindings.rules: Added, calls mentioned script
+
 2006-04-15 Juuso Alasuutari <iuso at sourcemage.org>
 	* CONFIGURE: Added prompt to install persistent network 
 	  interface names, made prompts more uniform

==== //sgl/grimoires/test/disk/udev/INSTALL#22 (xtext) ====

@@ -26,6 +26,12 @@
 make EXTRAS="extras/run_directory extras/cdrom_id extras/firmware" \
   prefix=${INSTALL_ROOT}/ exec_prefix=${INSTALL_ROOT}/ \
   V=true ${OPTS} install &&
+
+# Install interface name retriever script
+mkdir -p /lib/udev                                  &&
+install -m 755 $SCRIPT_DIRECTORY/helpers/mac2name   \
+$INSTALL_ROOT/lib/udev                              &&
+
 if [[ "$UDEV_EXTRAS" == 'y' ]]; then
   make EXTRAS="extras/ata_id extras/dasd_id extras/edd_id extras/floppy extras/scsi_id extras/usb_id extras/volume_id" prefix=${INSTALL_ROOT}/ exec_prefix=${INSTALL_ROOT}/ ${OPTS} V=true install   &&
   install  extras/path_id/path_id  ${INSTALL_ROOT}/sbin  &&
@@ -36,11 +42,6 @@
 
 fi  &&
 
-# Install rules to set persistent name bindings for network interfaces
-if [[ $UDEV_NETWORK == y ]]; then
-  . $SCRIPT_DIRECTORY/bindings
-fi  &&
-
 if [[ "$UDEV_STATIC" == 'y' ]]; then
   pushd __static__ &&
   # we are not supposed to use `make install'



More information about the SM-Commit mailing list