From e156bbaa1b3865d9532eaef6156b4d1b26e96034 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Fri, 30 Apr 2010 16:26:17 +0000 Subject: fix race when creating encrypted partition out of install --- perl-install/diskdrake/interactive.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'perl-install/diskdrake/interactive.pm') 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); } -- cgit v1.2.1