summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-05-16 14:17:20 +0000
committerThierry Vignaud <tv@mandriva.org>2007-05-16 14:17:20 +0000
commit753a7f99254ef90a29717837114bc738e4d5c5eb (patch)
tree92c620dd8d4bececbad0aafbc783de44391c7751
parentb8b9e1de4185eb1f62f43f61a1eddda9b8bad657 (diff)
downloaddrakx-753a7f99254ef90a29717837114bc738e4d5c5eb.tar
drakx-753a7f99254ef90a29717837114bc738e4d5c5eb.tar.gz
drakx-753a7f99254ef90a29717837114bc738e4d5c5eb.tar.bz2
drakx-753a7f99254ef90a29717837114bc738e4d5c5eb.tar.xz
drakx-753a7f99254ef90a29717837114bc738e4d5c5eb.zip
fix resizing's faillures due to udev's race when writing the partition table
thus deleting then recreating the nodes (thus leaving a race window...)
-rw-r--r--perl-install/NEWS4
-rw-r--r--perl-install/diskdrake/interactive.pm3
2 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index ba7aea921..f760d8a10 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,7 @@
+- diskdrake:
+ o fix resizing's faillures due to udev race when writing the
+ partition table
+
Version 10.4.130 - 16 May 2007, by Thierry Vignaud
- bootloader-config: do create /boot/initrd-xxx.img when there is no
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index 3764f6a60..282492c36 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -799,6 +799,9 @@ 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;
};