Removes hardware-specific udev rules
Signed-off-by: Ben Lipton <[email protected]>
---
instance-p2v-target/Makefile.am | 3 +-
.../fixes/20_remove_persistent_rules | 24 ++++++++++++++++++++
2 files changed, 26 insertions(+), 1 deletions(-)
create mode 100755 instance-p2v-target/fixes/20_remove_persistent_rules
diff --git a/instance-p2v-target/Makefile.am b/instance-p2v-target/Makefile.am
index b4a8688..96a3584 100644
--- a/instance-p2v-target/Makefile.am
+++ b/instance-p2v-target/Makefile.am
@@ -20,7 +20,8 @@ os_SCRIPTS = common.sh
dist_sbin_SCRIPTS = scripts/make_ramboot_initrd.py
dist_fixes_SCRIPTS = \
- fixes/10_fix_fstab
+ fixes/10_fix_fstab \
+ fixes/20_remove_persistent_rules
dist_fixlib_DATA = \
fixes/fixlib/fix_fstab.py \
diff --git a/instance-p2v-target/fixes/20_remove_persistent_rules
b/instance-p2v-target/fixes/20_remove_persistent_rules
new file mode 100755
index 0000000..690195c
--- /dev/null
+++ b/instance-p2v-target/fixes/20_remove_persistent_rules
@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# Copyright (C) 2011 Google Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+# Deletes the files containing udev net rules, which are specific to a
+# particular MAC address, and cd drive rules, which are specific to a bus
+# address.
+
+rm -f /target/etc/udev/rules.d/70-persistent-*.rules
--
1.7.3.1