diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-05-07 01:15:47 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-05-07 01:15:47 +0000 |
commit | da608499428b4374cf4cde4156281e38ad5583af (patch) | |
tree | 00f87933f6a8a026f4a96ad29e630dcfff1bd098 /packages.py | |
parent | 704b1af24db5514b66e8950baff50197f205340a (diff) | |
download | anaconda-da608499428b4374cf4cde4156281e38ad5583af.tar.gz anaconda-da608499428b4374cf4cde4156281e38ad5583af.tar.xz anaconda-da608499428b4374cf4cde4156281e38ad5583af.zip |
more munging for modprobe.conf nonsense. otherwise, we end up with
no /etc/modprobe.conf! (#121737)
Diffstat (limited to 'packages.py')
-rw-r--r-- | packages.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/packages.py b/packages.py index 4a4b3c0a9..58a07aa87 100644 --- a/packages.py +++ b/packages.py @@ -748,10 +748,14 @@ def doPreInstall(method, id, intf, instPath, dir): # write out the fstab if not upgrade: id.fsset.write(instPath) - # rootpath mode doesn't have this file around - if os.access("/tmp/modprobe.conf", os.R_OK): - iutil.copyFile("/tmp/modprobe.conf", - instPath + "/etc/modprobe.conf") + + # rootpath mode doesn't have this file around + # we need this on upgrades now that we move the old modprobe.conf + # out of the way and let kudzu regen stuff. otherwise, initrds + # won't end up being right + if os.access("/tmp/modprobe.conf", os.R_OK): + iutil.copyFile("/tmp/modprobe.conf", + instPath + "/etc/modprobe.conf") # make a /etc/mtab so mkinitrd can handle certain hw (usb) correctly f = open(instPath + "/etc/mtab", "w+") @@ -1068,6 +1072,9 @@ def doPostInstall(method, id, intf, instPath): w.set(3) + # we need to run kudzu on upgrades now so that modprobe.conf + # gets generated right + if 1: # blah. If we're on a serial mouse, and we have X, we need to # close the mouse device, then run kudzu, then open it again. |