summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-07-04 14:55:32 +0000
committerThierry Vignaud <tv@mandriva.org>2007-07-04 14:55:32 +0000
commitb7ab0d8a0e3c16bccf37cf62e8f9560fafc4749d (patch)
tree242dc856924da5c057bcd13edd9b3e04231c58c3 /perl-install/diskdrake
parent89f818114f0ba6bb27cfc2fcd82c99a9514210d8 (diff)
downloaddrakx-backup-do-not-use-b7ab0d8a0e3c16bccf37cf62e8f9560fafc4749d.tar
drakx-backup-do-not-use-b7ab0d8a0e3c16bccf37cf62e8f9560fafc4749d.tar.gz
drakx-backup-do-not-use-b7ab0d8a0e3c16bccf37cf62e8f9560fafc4749d.tar.bz2
drakx-backup-do-not-use-b7ab0d8a0e3c16bccf37cf62e8f9560fafc4749d.tar.xz
drakx-backup-do-not-use-b7ab0d8a0e3c16bccf37cf62e8f9560fafc4749d.zip
fix resizing's faillures due to udev's race when writing the partition table
(deleting then recreating the nodes leaves a race window...)
Diffstat (limited to 'perl-install/diskdrake')
-rw-r--r--perl-install/diskdrake/interactive.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index 282492c36..906fda5f8 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -799,9 +799,6 @@ sub Resize {
partition_table::adjust_local_extended($hd, $part);
partition_table::adjust_main_extended($hd);
write_partitions($in, $hd) or return if $write_partitions && %nice_resize;
- # fix resizing's faillures due to udev's race when writing the partition table
- # (deleting then recreating the nodes leaves a race window...)
- devices::make($part->{device});
}
1;
};
@@ -1143,6 +1140,9 @@ sub write_partitions {
$in->ask_okcancel(N("Read carefully!"), N("Partition table of drive %s is going to be written to disk!", $hd->{device}), 1) or return;
partition_table::write($hd) if !$::testing;
check_rebootNeeded($in, $hd) if !$b_skip_check_rebootNeeded;
+ # fix resizing's faillures due to udev's race when writing the partition table
+ # (deleting then recreating the nodes leaves a race window...)
+ run_program::run('udevsettle');
1;
}