diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-07-04 14:55:32 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-07-04 14:55:32 +0000 |
commit | b7ab0d8a0e3c16bccf37cf62e8f9560fafc4749d (patch) | |
tree | 242dc856924da5c057bcd13edd9b3e04231c58c3 /perl-install/diskdrake | |
parent | 89f818114f0ba6bb27cfc2fcd82c99a9514210d8 (diff) | |
download | drakx-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.pm | 6 |
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; } |