Skip to content

Commit 5b3632a

Browse files
authored
Merge pull request #152 from MemberIT/bugfix/remove_swap_partition
fixed: executed command 'swapoff' before unmount swap partion.
2 parents b97bae3 + a1345c9 commit 5b3632a

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)