diff options
author | Chris Lumens <clumens@redhat.com> | 2008-11-12 10:05:31 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2008-11-12 10:06:18 -0500 |
commit | c6cf36ae4696da014af63774e87450a49a22b72d (patch) | |
tree | 1c6fcb1e918354964c04bebb5b9c2365e271b9cd /packages.py | |
parent | b99ad7dc936929fb3d5c0a1b69b1e3860efd1eed (diff) | |
download | anaconda-c6cf36ae4696da014af63774e87450a49a22b72d.tar.gz anaconda-c6cf36ae4696da014af63774e87450a49a22b72d.tar.xz anaconda-c6cf36ae4696da014af63774e87450a49a22b72d.zip |
Save the /etc/fstab before overwriting it on upgrades (#452768, #470392).
It'd be even better if we could save noauto entries and other lines that we
don't understand, but that's not easy to do with the current way of doing
things.
Diffstat (limited to 'packages.py')
-rw-r--r-- | packages.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages.py b/packages.py index 371e10e37..c141c9248 100644 --- a/packages.py +++ b/packages.py @@ -101,6 +101,7 @@ def doMigrateFilesystems(anaconda): # if we're upgrading, we may need to do lvm device node hackery anaconda.id.fsset.makeLVMNodes(anaconda.rootPath, trylvm1 = 1) # and we should write out a new fstab with the migrated fstype + shutil.copyfile("%s/etc/fstab" % anaconda.rootPath, "%s/etc/fstab.anaconda" % anaconda.rootPath) anaconda.id.fsset.write(anaconda.rootPath) # and make sure /dev is mounted so we can read the bootloader bindMountDevDirectory(anaconda.rootPath) |