]> git.proxmox.com Git - pve-manager.git/commitdiff
do not write /etc/mtab when mounting snapshots
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 7 Feb 2012 09:39:15 +0000 (10:39 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 7 Feb 2012 09:39:15 +0000 (10:39 +0100)
PVE/VZDump/OpenVZ.pm

index 6d0c5d92e2f31b738be087c2741089f48406e2af..fc12ccf38dc7b69a314ba5e8e1e68178d3d29f7c 100644 (file)
@@ -197,7 +197,7 @@ sub snapshot {
 
     $task->{cleanup}->{snapshot_mount} = 1;
 
-    $self->cmd ("mount -t $di->{fstype} $mopts $di->{snapdev} $di->{mountpoint}");
+    $self->cmd ("mount -n -t $di->{fstype} $mopts $di->{snapdev} $di->{mountpoint}");
 }
 
 sub copy_data_phase2 {