diff options
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r-- | perl-install/any.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm index 721fe7fcf..525ced9f5 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -72,9 +72,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(.*)|); - $tail && ($head ? "$head/$tail" : "/mnt/hd/$tail"); + defined $tail && ($head ? "$head/$tail" : "/mnt/hd/$tail"); } sub kernelVersion() { |