From 709aef2cf8369097d6345bd930b5df6bf744f9f9 Mon Sep 17 00:00:00 2001 From: Guido Trotter Date: Fri, 11 Jan 2008 12:07:52 +0000 Subject: [PATCH] Remove generated network rules on instance import udev generates rules to maintain the order of the network interfaces stable. When importing an instance, though, its mac address may change, and networking be broken. This patch removes the generated network rules file, making udev create a new one after the first boot of an imported instance. This issue was first spotted by Gunnar Wagenknecht. Reviewed-by: iustinp --- import | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/import b/import index 83bfc39..2803756 100755 --- a/import +++ b/import @@ -50,7 +50,7 @@ TMPDIR=`mktemp -d` || exit 1 trap "umount $TMPDIR; rmdir $TMPDIR" EXIT mount $blockdev $TMPDIR ( cd $TMPDIR; restore -r -y -f - ) - +rm -f $TMPDIR/etc/udev/rules.d/z25_persistent-net.rules umount $TMPDIR rmdir $TMPDIR trap - EXIT -- 1.7.2.5