diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-06-09 21:37:06 +0200 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2015-06-13 19:38:07 +0300 |
commit | b5d4cd86a5503006ed8308c9c6825187e180757a (patch) | |
tree | f9b17dba968a916b8adb048746abd7f1244ad959 /perl-install/partition_table/gpt.pm | |
parent | 4ef59e3195c85256bec8e75bef27fc525b9fc367 (diff) | |
download | drakx-b5d4cd86a5503006ed8308c9c6825187e180757a.tar drakx-b5d4cd86a5503006ed8308c9c6825187e180757a.tar.gz drakx-b5d4cd86a5503006ed8308c9c6825187e180757a.tar.bz2 drakx-b5d4cd86a5503006ed8308c9c6825187e180757a.tar.xz drakx-b5d4cd86a5503006ed8308c9c6825187e180757a.zip |
prevent errors when telling kernel to reread parts
disk_{add,del}_partition call ped_disk_commit() which result in udev events
(and also already tell the kernel to reread the partition table (several
times))
Diffstat (limited to 'perl-install/partition_table/gpt.pm')
-rw-r--r-- | perl-install/partition_table/gpt.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/partition_table/gpt.pm b/perl-install/partition_table/gpt.pm index d07b634d0..4a277f7b6 100644 --- a/perl-install/partition_table/gpt.pm +++ b/perl-install/partition_table/gpt.pm @@ -182,6 +182,9 @@ sub write { c::disk_del_partition($hd->{file}, $part_number) or die "failed to del partition #$part_number on $hd->{file}"; } } + # prevent errors when telling kernel to reread partition table: + # (above add/del_partition result in udev events) + system(qw(udevadm settle)); common::sync(); 1; } |