install-grub.pl: fix a double slash prefix bug
This commit is contained in:
parent
5e5b0d039c
commit
2a7293fd9d
@ -140,7 +140,10 @@ my $driveid = 1;
|
|||||||
sub GrubFs {
|
sub GrubFs {
|
||||||
my ($dir) = @_;
|
my ($dir) = @_;
|
||||||
my $fs = GetFs($dir);
|
my $fs = GetFs($dir);
|
||||||
my $path = "/" . substr($dir, length($fs->mount));
|
my $path = substr($dir, length($fs->mount));
|
||||||
|
if (substr($path, 0, 1) ne "/") {
|
||||||
|
$path = "/$path";
|
||||||
|
}
|
||||||
my $search = "";
|
my $search = "";
|
||||||
|
|
||||||
if ($grubVersion > 1) {
|
if ($grubVersion > 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user