summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-02-23 19:00:51 +0100
committerThomas Backlund <tmb@mageia.org>2015-03-20 22:25:56 +0159
commit639429951345886de94d497a3076e0e0966e4636 (patch)
tree8169da9bc5608b747ce6191704f75471d12f5815
parent031168019ff8a7ee03c16f896620c3b0b6417257 (diff)
downloaddrakx-639429951345886de94d497a3076e0e0966e4636.tar
drakx-639429951345886de94d497a3076e0e0966e4636.tar.gz
drakx-639429951345886de94d497a3076e0e0966e4636.tar.bz2
drakx-639429951345886de94d497a3076e0e0966e4636.tar.xz
drakx-639429951345886de94d497a3076e0e0966e4636.zip
fix telling kernel to reread partition table
use libparted in order to do so (mga#14758)
-rw-r--r--perl-install/partition_table.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm
index 27582682b..be54d6c31 100644
--- a/perl-install/partition_table.pm
+++ b/perl-install/partition_table.pm
@@ -396,7 +396,7 @@ sub tell_kernel {
foreach (@magic_parts) {
syscall_('umount', $_->{real_mntpoint}) or log::l(N("error unmounting %s: %s", $_->{real_mntpoint}, $!));
}
- $hd->{rebootNeeded} = !ioctl($F, c::BLKRRPART(), 0);
+ $hd->{rebootNeeded} = !c::tell_kernel_to_reread_partition_table($hd->{file});
log::l("tell kernel force_reboot ($hd->{device}), rebootNeeded=$hd->{rebootNeeded}");
foreach (@magic_parts) {