From 753a7f99254ef90a29717837114bc738e4d5c5eb Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 16 May 2007 14:17:20 +0000 Subject: 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...) --- perl-install/NEWS | 4 ++++ perl-install/diskdrake/interactive.pm | 3 +++ 2 files changed, 7 insertions(+) (limited to 'perl-install') 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; }; -- cgit v1.2.1