From c6cf36ae4696da014af63774e87450a49a22b72d Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Wed, 12 Nov 2008 10:05:31 -0500 Subject: 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. --- packages.py | 1 + 1 file changed, 1 insertion(+) (limited to 'packages.py') 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) -- cgit