From c8c2eacd54613888f2106e0512d6b18a3878755b Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Sat, 4 Mar 2006 17:01:52 +0000 Subject: check for ntfsresize in real root first --- perl-install/diskdrake/resize_ntfs.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/diskdrake/resize_ntfs.pm b/perl-install/diskdrake/resize_ntfs.pm index 5af20f273..ab99ce627 100644 --- a/perl-install/diskdrake/resize_ntfs.pm +++ b/perl-install/diskdrake/resize_ntfs.pm @@ -14,7 +14,8 @@ sub new { sub check_prog { my ($in) = @_; - $::isInstall || $in->do_pkgs->ensure_binary_is_installed('ntfsprogs', 'ntfsresize'); + #- ensure_binary_is_installed checks binary chrooted, whereas we run the binary non-chrooted (pb for Mandriva One) + $::isInstall || whereis_binary('ntfsresize') || $in->do_pkgs->ensure_binary_is_installed('ntfsprogs', 'ntfsresize'); } sub min_size { -- cgit v1.2.1