summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2010-04-30 16:26:17 +0000
committerPascal Terjan <pterjan@mandriva.org>2010-04-30 16:26:17 +0000
commite156bbaa1b3865d9532eaef6156b4d1b26e96034 (patch)
tree0377d45c9c081dd97c2697bf0525edb7f016f66e /perl-install
parent69ce41a4ee0fa7a696d8ff3ec4fbf7e394738180 (diff)
downloaddrakx-backup-do-not-use-e156bbaa1b3865d9532eaef6156b4d1b26e96034.tar
drakx-backup-do-not-use-e156bbaa1b3865d9532eaef6156b4d1b26e96034.tar.gz
drakx-backup-do-not-use-e156bbaa1b3865d9532eaef6156b4d1b26e96034.tar.bz2
drakx-backup-do-not-use-e156bbaa1b3865d9532eaef6156b4d1b26e96034.tar.xz
drakx-backup-do-not-use-e156bbaa1b3865d9532eaef6156b4d1b26e96034.zip
fix race when creating encrypted partition out of install
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/NEWS1
-rw-r--r--perl-install/diskdrake/interactive.pm2
2 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 44093b17a..5a282cee0 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,6 +1,7 @@
- diskdrake:
o fix the crypto mountpoint checks for the create case
o fix resize of active encrypted volumes
+ o fix race when creating encrypted partition out of install
Version 13.22 - 29 April 2010
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index 535de67ec..5d25312d2 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -568,6 +568,8 @@ First remove a primary partition and create an extended partition."));
$p->{toFormatCheck} = $in->ask_yesorno(N("Confirmation"), N("Check bad blocks?"));
}
$p->{isFormatted} = 0; #- force format;
+ # Wait for the newly created device to appear before formatting it
+ run_program::run('udevadm', 'settle') unless $::isInstall;
my ($_w, $wait_message) = $in->wait_message_with_progress_bar;
fs::format::part($all_hds, $p, $wait_message) unless isRawLVM($p);
}