my $modproberc;
if ($load) {
- do { ($modproberc=_system $_) and cluck "$_ failed - ignoring"; } for ("depmod -aq","modprobe lufs");
+ do { ($modproberc=_system $_) and cluck "$_ failed - ignoring"; }
+ for ("/sbin/depmod -aq","/sbin/modprobe lufs");
}
exit ($modproberc ? 1 : 0) if !$lufsmnt_bin;
do { exec $lufsmnt_bin,@ARGV; };
_pass if $filesystems=~/\blufs$/m;
my $modules=_readfile "/proc/modules"; # 'lufs' may be already loaded
_pass if $modules=~/^lufs\b/m;
-_pass if !_system "modprobe lufs 2>/dev/null";
+_pass if !_system "/sbin/modprobe lufs 2>/dev/null";
my $proc_version=_readfile "/proc/version";
my $uname_r=($proc_version=~/^Linux version (\S+)/)[0] || _readfile "uname -r|";
# depmod(1) will take the larget symlink name - we must create directory for it.
if (build($kernel,$uname_r,$_)) {
do { cluck "Failed to symlink $_"; next; }
- if _system "rm -rf $moduledir; mkdir -p $moduledir; ln -s $_ $moduledir/lufs.o";
+ if _system "/bin/rm -rf $moduledir; /bin/mkdir -p $moduledir; /bin/ln -s $_ $moduledir/lufs.o";
_pass 1;
}
}
local $_;
for (<$modbindir/*-$uname_r*/*.o>,<$modbindir/*-${uname_r_base}*/*.o>,<$modbindir/*/*.o>) {
- next if _system "rmmod lufs 2>/dev/null; insmod -o lufs -p $_ 2>/dev/null";
- do { cluck "Failed to symlink $_"; next; } if _system "rm -rf $moduledir; mkdir -p $moduledir; ln -s $_ $moduledir/lufs.o";
+ next if _system "/sbin/rmmod lufs 2>/dev/null; /sbin/insmod -o lufs -p $_ 2>/dev/null";
+ do { cluck "Failed to symlink $_"; next; }
+ if _system "/bin/rm -rf $moduledir; /bin/mkdir -p $moduledir; /bin/ln -s $_ $moduledir/lufs.o";
_pass 1;
}
confess "lufs module not loaded: Try running $basedir/prepmod to see more.";
my $kdebug="";
do { $kdebug=$_ if !/^@/; } for ('@KDEBUG_FLAGS@');
- my $cmdline="gcc"
+ my $cmdline="/usr/bin/gcc"
.($quiet ? " 2>/dev/null" : "")
." -Wall -Wstrict-prototypes -Wno-trigraphs"
." -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2"
|| (!$config && !$autoconf); # assume modversions if not known
my @objects=map({ my $o=$_; $o=~s/[.]c$/.o/; $o; } @sources);
- return !_system "set -e; mkdir -p `dirname $destmodule`; rm -f $destmodule;"
+ return !_system "set -e; /bin/mkdir -p `dirname $destmodule`; /bin/rm -f $destmodule;"
.(!$vardir ? "" : " cd $vardir;")
." $cmdline -c ".join(" ",map({ srcdir($uname_r)."/".$_; } @sources)).";"
- ." ld -r -o $destmodule ".join(" ",@objects).";"
- ." rm -f ".join(" ",@objects);
+ ." /usr/bin/ld -r -o $destmodule ".join(" ",@objects).";"
+ ." /bin/rm -f ".join(" ",@objects);
}
my $uname_r;
$uname_r||=($rpm=~m#/kernel-source-([^-]+-[^-]+)[.][^.]+[.]rpm$#)[0];
my $uname_r_base=($uname_r=~/^([^-]+)/)[0];
- _system "rm -rf $tmp_dir; mkdir $tmp_dir; set -e;"
+ _system "/bin/rm -rf $tmp_dir; /bin/mkdir $tmp_dir; set -e;"
# Here we will extract even some false 'include's but we filter dirs just for speed/space.
- ." rpm2cpio '$rpm' | (cd $tmp_dir; cpio -id --quiet ./usr/src/linux*/{.config,include/*})"
+ ." /usr/bin/rpm2cpio '$rpm' | (cd $tmp_dir; /bin/cpio -id --quiet ./usr/src/linux*/{.config,include/*})"
and confess "Extraction of: $rpm";
my $dir;
do { $dir||=$_ if -d $_; } for ($tmp_dir."/usr/src/linux-$uname_r");
prebuild_kernel $dir,$vendor,$uname_r.$smp.".".$arch;
}
}
- _system "rm -rf $tmp_dir" and confess "Deletion of: $tmp_dir";
+ _system "/bin/rm -rf $tmp_dir" and confess "Deletion of: $tmp_dir";
}
sub prebuild_dir