mirror of
https://github.com/fspc/gbootroot.git
synced 2026-09-11 06:11:38 -04:00
This should fix the bug reported by Liav Asseraf. The main program was
rearragned and put in BootRoot, but the BEGIN block which sets up the FHS for perl's INC was now in this file, so ofcourse, gbootroot couldn't find the modules.
This commit is contained in:
@@ -231,29 +231,6 @@ my $ars = {}; # anonymous hash
|
|||||||
" X X "
|
" X X "
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
# For distributions that don't adhere to the most recent FHS.
|
|
||||||
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'};
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
sub start {
|
sub start {
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -205,6 +205,28 @@ use BootRoot::BootRoot;
|
|||||||
init Gtk;
|
init Gtk;
|
||||||
set_locale Gtk;
|
set_locale Gtk;
|
||||||
|
|
||||||
|
# For distributions that don't adhere to the most recent FHS.
|
||||||
|
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'};
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
$main::editor = "emacs --font 6x13";
|
$main::editor = "emacs --font 6x13";
|
||||||
$main::makefs = "mke2fs -F -m0 -i8192"; # Root Disk
|
$main::makefs = "mke2fs -F -m0 -i8192"; # Root Disk
|
||||||
$main::sudo = "sudo";
|
$main::sudo = "sudo";
|
||||||
|
|||||||
Reference in New Issue
Block a user