Skip to content

Commit 424d9d9

Browse files
committed
(MODULES-11666) validate LV present to prevent creating empty moountpaths
(MODULES-11666) Fix failing tests
1 parent 2b12921 commit 424d9d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manifests/logical_volume.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,10 @@
166166
if $createfs or $ensure != 'present' {
167167
if $fs_type != 'swap' {
168168
exec { "ensure mountpoint '${fixed_mountpath}' exists":
169-
path => ['/bin', '/usr/bin'],
169+
path => ['/bin', '/usr/bin', '/sbin'],
170170
command => "mkdir -p ${fixed_mountpath}",
171171
unless => "test -d ${fixed_mountpath}",
172+
onlyif => "test -b /dev/${volume_group}/${name} > /dev/null 2>&1",
172173
before => Mount[$mount_title],
173174
}
174175
}

0 commit comments

Comments
 (0)