mirror of
https://github.com/fspc/gbootroot.git
synced 2025-02-23 17:13:22 -05:00
This adds /usr/share/perl5 to @INC in distributions which don't adhere to the
newest FHS.
This commit is contained in:
parent
7ebba544af
commit
4bb9980672
16
gbootroot
16
gbootroot
@ -79,7 +79,19 @@
|
|||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
use lib "/usr/share/perl5";
|
|
||||||
|
# For distributions that don't adhere to the FHS.
|
||||||
|
BEGIN {
|
||||||
|
|
||||||
|
my $fhs = grep(/\/usr\/share\/perl5/,@INC);
|
||||||
|
|
||||||
|
if ($fhs == 0) {
|
||||||
|
unshift(@INC,"/usr/share/perl5");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
use Gtk;
|
use Gtk;
|
||||||
use strict;
|
use strict;
|
||||||
use BootRoot::Yard;
|
use BootRoot::Yard;
|
||||||
@ -309,7 +321,7 @@ my $ars = {}; # anonymous hash
|
|||||||
# How the Boot/Root set is constructed for the 2 disk compression method:
|
# How the Boot/Root set is constructed for the 2 disk compression method:
|
||||||
#
|
#
|
||||||
# 1. submit() start the process.
|
# 1. submit() start the process.
|
||||||
# 2. kernel_moudles() sets the $kernel_version.
|
# 2. kernel_modules() sets the $kernel_version.
|
||||||
# 3. lilo() is called.
|
# 3. lilo() is called.
|
||||||
# 4. $ok determines what functions should be called for creating the
|
# 4. $ok determines what functions should be called for creating the
|
||||||
# Boot disk.
|
# Boot disk.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user