From d88f662079e5eef78dcd25cf6a18771567af02e8 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 26 Jul 2002 18:22:35 +0000 Subject: use run_program::rooted_get_stdout instead of `chroot $prefix ...` --- perl-install/install_steps.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/install_steps.pm') diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index b4f1fb97d..176f65e37 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -559,7 +559,7 @@ sub updateModulesFromFloppy { log::l("examining updated modules for kernel $kernelVersion"); if (-d "/floppy/$kernelVersion") { my @src_files = glob_("/floppy/$kernelVersion/*"); - my @dest_files = split "\n", `chroot $o->{prefix} find /lib/modules`; + my @dest_files = map { chomp_($_) } run_program::rooted_get_stdout($o->{prefix}, 'find', '/lib/modules'); foreach my $s (@src_files) { log::l("found updatable module $s"); my ($sfile, $sext) = $s =~ /([^\/\.]*\.o)(?:\.gz|\.bz2)?$/; -- cgit v1.2.1