diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2009-09-23 12:17:51 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2009-09-23 12:17:51 +0000 |
commit | 8b15942db0eff012fbe58e5ecc9d5bb927f18543 (patch) | |
tree | f77bb11268a58eebd61cef230426480173947844 /lib/MDV/Draklive | |
parent | 5b86f0e29fe34ef58825785b3ea295ab0f2dda4f (diff) | |
download | draklive-8b15942db0eff012fbe58e5ecc9d5bb927f18543.tar draklive-8b15942db0eff012fbe58e5ecc9d5bb927f18543.tar.gz draklive-8b15942db0eff012fbe58e5ecc9d5bb927f18543.tar.bz2 draklive-8b15942db0eff012fbe58e5ecc9d5bb927f18543.tar.xz draklive-8b15942db0eff012fbe58e5ecc9d5bb927f18543.zip |
make it possible to specify mount options for tmpfs mounts (should it be
done for other FS types ?)
Diffstat (limited to 'lib/MDV/Draklive')
-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; }, }, |