do not write /etc/mtab when mounting snapshots

This commit is contained in:
Dietmar Maurer 2012-02-07 10:41:13 +01:00
parent fad02a160f
commit efb71b0f8c

View File

@ -306,7 +306,7 @@ sub snapshot {
$di->{snapshot_mount} = 1; $di->{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}");
$mounts->{$di->{mountpoint}} = 1; $mounts->{$di->{mountpoint}} = 1;