summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/install_any.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 5d231498b..cf5b72379 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -1042,7 +1042,7 @@ sub remove_bigseldom_used {
}
sub cond_umount_hdimage() {
- if (cat_("/proc/mounts") =~ m|/\w+/(\S+)\s+/tmp/hdimage\s+(\S+)| && !$::o->{partitioning}{readonly}) {
+ if (cat_("/proc/mounts") =~ m|/\w+/(\S+)\s+/tmp/hdimage\s+(\S+)| && !$::o->{partitioning}{readonly} && common::usingRamdisk()) {
$::o->{stage1_hd} = { device => $1, type => $2 };
getFile("XXX"); #- close still opened filehandle
eval { fs::umount("/tmp/hdimage") };