summaryrefslogtreecommitdiffstats
path: root/perl-install
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
parent89f818114f0ba6bb27cfc2fcd82c99a9514210d8 (diff)
downloaddrakx-b7ab0d8a0e3c16bccf37cf62e8f9560fafc4749d.tar
drakx-b7ab0d8a0e3c16bccf37cf62e8f9560fafc4749d.tar.gz
drakx-b7ab0d8a0e3c16bccf37cf62e8f9560fafc4749d.tar.bz2
drakx-b7ab0d8a0e3c16bccf37cf62e8f9560fafc4749d.tar.xz
drakx-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')
-rw-r--r--perl-install/NEWS3
-rw-r--r--perl-install/diskdrake/interactive.pm6
2 files changed, 6 insertions, 3 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 48e4de971..316f15b2a 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,4 +1,7 @@
- centralize common textdomains in a single common place, thus ensuring they'll be binded (#31580)
+- diskdrake:
+ o fix resizing's faillures due to udev's race when writing the partition
+ table (deleting then recreating the nodes leaves a race window...)
- service_harddrake (blino):
o do not enable fglrx libraries when disabling fglrx...
o really log when switching from fglrx to another driver
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;
}