This makes it possible to replace any udev *.rules file in an updates image. --- anaconda | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/anaconda b/anaconda index 68e5fbb..188abf6 100755 --- a/anaconda +++ b/anaconda @@ -132,10 +132,12 @@ def setupPythonUpdates(): os.symlink("%s/%s" % (dest, f), "/tmp/updates/%s/%s" % (pkg, f)) - if os.access("/tmp/updates/70-anaconda.rules", os.R_OK): - import shutil - shutil.copyfile("/tmp/updates/70-anaconda.rules", - "/etc/udev/rules.d/70-anaconda.rules") + + import glob + import shutil + for rule in glob.glob("/tmp/updates/*.rules"): + target = "/etc/udev/rules.d/" + rule.split('/')[-1] + shutil.copyfile(rule, target) def parseOptions(): def resolution_cb (option, opt_str, value, parser): -- 1.7.0.1 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list