summaryrefslogtreecommitdiffstats
path: root/perl-install/install/steps.pm
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2012-10-22 20:07:17 +0000
committerColin Guthrie <colin@mageia.org>2012-10-22 20:07:17 +0000
commit70979999a3f65fa95cd987f15fc31b1cfa0c58c1 (patch)
treee51f314faa316706b4f890aeaa530b7a4d4de0fe /perl-install/install/steps.pm
parent832b60a4c083dcb244f7cb17aa0aabffa3cfaa82 (diff)
downloaddrakx-70979999a3f65fa95cd987f15fc31b1cfa0c58c1.tar
drakx-70979999a3f65fa95cd987f15fc31b1cfa0c58c1.tar.gz
drakx-70979999a3f65fa95cd987f15fc31b1cfa0c58c1.tar.bz2
drakx-70979999a3f65fa95cd987f15fc31b1cfa0c58c1.tar.xz
drakx-70979999a3f65fa95cd987f15fc31b1cfa0c58c1.zip
Ensure the filesystem is converted for usrmove on upgrade
Diffstat (limited to 'perl-install/install/steps.pm')
-rw-r--r--perl-install/install/steps.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/perl-install/install/steps.pm b/perl-install/install/steps.pm
index c3cac095e..f006e5f6d 100644
--- a/perl-install/install/steps.pm
+++ b/perl-install/install/steps.pm
@@ -337,6 +337,14 @@ sub beforeInstallPackages {
foreach (@filesNewerToUseAfterUpgrade) {
unlink "$::prefix/$_.rpmnew";
}
+
+ log::l("converting filesystem for usrmove");
+ if (!run_program::run('/usr/lib/dracut/modules.d/30convertfs/convertfs.sh', $::prefix)) {
+ mkdir_p("$::prefix/root/drakx") if ! -d "$::prefix/root/drakx";
+ # logs are only copied to $::prefix/root/drakx at the end of each step, so do it manually now
+ eval { cp_af("/tmp/ddebug.log", "$::prefix/root/drakx") };
+ die "Unable to convert filesystem prior to upgrade. Check ddebug.log for details";
+ }
}
#- mainly for upgrading redhat packages, but it can help other