Skip to content

Commit a1345c9

Browse files
committed
fixed: executed command 'swapoff' before unmount swap partion.
1 parent dcf5290 commit a1345c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

manifests/logical_volume.pp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@
103103
}
104104
} else {
105105
exec { "swapoff for '${mount_title}'":
106-
path => [ '/bin', '/usr/bin', '/sbin' ],
107-
command => "swapoff ${lvm_device_path}",
108-
onlyif => "grep `readlink -f ${lvm_device_path}` /proc/swaps",
109-
subscribe => Mount[$mount_title],
106+
path => [ '/bin', '/usr/bin', '/sbin' ],
107+
command => "swapoff ${lvm_device_path}",
108+
onlyif => "grep `readlink -f ${lvm_device_path}` /proc/swaps",
109+
notify => Mount[$mount_title],
110110
}
111111
}
112112
} else {

0 commit comments

Comments
 (0)