diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MDV/Draklive/Loopback.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MDV/Draklive/Loopback.pm b/lib/MDV/Draklive/Loopback.pm index 6280043..4429574 100644 --- a/lib/MDV/Draklive/Loopback.pm +++ b/lib/MDV/Draklive/Loopback.pm @@ -114,7 +114,8 @@ our %loop_types; mount => sub { my ($live, $dir) = @_; my $mnt = $live->{prefix}{live}{mnt} . $dir->{mountpoint}; - my $cmd = "mount -t tmpfs $mnt $mnt"; + my $mount_opts = $dir->{mount_opts}?"-o $dir->{mount_opts}":""; + my $cmd = "mount -t tmpfs $mount_opts $mnt $mnt"; $dir->{fallback} ? qq(sh -c 'if ! grep -q " $mnt " /proc/mounts; then $cmd; fi') : $cmd; }, }, |