summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/any.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 445f5c02c..62fb11c3b 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -73,8 +73,9 @@ sub enableShadow() {
}
sub hdInstallPath() {
- my $tail = first(readlink("/tmp/image") =~ m|^/tmp/hdimage/?(.*)|);
+ my $tail = first(readlink("/tmp/image") =~ m|^(?:/tmp/)?hdimage/*(.*)|);
my $head = first(readlink("/tmp/hdimage") =~ m|$::prefix(.*)|);
+ log::l("search HD install path, tail=$tail, head=$head, tail defined=" . to_bool(defined $tail));
defined $tail && ($head ? "$head/$tail" : "/mnt/hd/$tail");
}