diff --git a/cookbooks/fb_swap/libraries/default.rb b/cookbooks/fb_swap/libraries/default.rb index 7ee6b94a..9006a51f 100644 --- a/cookbooks/fb_swap/libraries/default.rb +++ b/cookbooks/fb_swap/libraries/default.rb @@ -306,7 +306,7 @@ def self._label(node) def self._swap_unit(node, type) if type == 'device' label = self._label(node) - if label && node.in_shard?(4) + if label && node.in_shard?(14) # the kernel escapes slash characters in the label name, so we have to # construct the by-label path with escapes, then resolve what path # systemd will create via the generators diff --git a/cookbooks/fb_swap/recipes/before_fb_fstab.rb b/cookbooks/fb_swap/recipes/before_fb_fstab.rb index 45f067d5..ceaef8ab 100644 --- a/cookbooks/fb_swap/recipes/before_fb_fstab.rb +++ b/cookbooks/fb_swap/recipes/before_fb_fstab.rb @@ -60,7 +60,7 @@ block do # ask fb_fstab to create the unit device = FB::FbSwap._path(node, type) - if type == 'device' && node.in_shard?(4) + if type == 'device' && node.in_shard?(14) label = FB::FbSwap._label(node) if label device = "LABEL=#{label}"