mirror of
https://github.com/fspc/gbootroot.git
synced 2025-02-23 09:03:23 -05:00
This should totally solve any FHS complaints.
This commit is contained in:
parent
59c296ac23
commit
30e78d4540
19
expect_uml
19
expect_uml
@ -23,15 +23,6 @@
|
|||||||
##
|
##
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
use BootRoot::UML;
|
|
||||||
use File::Basename;
|
|
||||||
|
|
||||||
if ( !$ARGV[0] ) {
|
|
||||||
|
|
||||||
die "expect_uml ubd0 ubd1 other-options mount-point preserve_ownership filesystem_command\n";
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
|
|
||||||
@ -54,6 +45,16 @@ BEGIN {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
use BootRoot::UML;
|
||||||
|
use File::Basename;
|
||||||
|
|
||||||
|
if ( !$ARGV[0] ) {
|
||||||
|
|
||||||
|
die "expect_uml ubd0 ubd1 other-options mount-point preserve_ownership filesystem_command\n";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
my $arguments = "$ARGV[0] $ARGV[1] $ARGV[2]";
|
my $arguments = "$ARGV[0] $ARGV[1] $ARGV[2]";
|
||||||
my $mount_point = "$ARGV[3]";
|
my $mount_point = "$ARGV[3]";
|
||||||
my $preserve_ownership = "$ARGV[4]";
|
my $preserve_ownership = "$ARGV[4]";
|
||||||
|
@ -30,6 +30,28 @@
|
|||||||
##
|
##
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
|
BEGIN {
|
||||||
|
|
||||||
|
my $fhs = grep(/\/usr\/share\/perl5/,@INC);
|
||||||
|
|
||||||
|
if ($fhs == 0) {
|
||||||
|
unshift(@INC,"/usr/share/perl5");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
my $sbin = grep(/\/sbin/,$ENV{'PATH'});
|
||||||
|
if ($sbin == 0) {
|
||||||
|
$ENV{'PATH'} = "/sbin:" . $ENV{'PATH'};
|
||||||
|
}
|
||||||
|
|
||||||
|
$sbin = grep(/\/usr\/sbin/,$ENV{'PATH'});
|
||||||
|
if ($sbin == 0) {
|
||||||
|
$ENV{'PATH'} = "/usr/sbin:" . $ENV{'PATH'};
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use BootRoot::Yard;
|
use BootRoot::Yard;
|
||||||
use File::Path;
|
use File::Path;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user