def set_label_for_swap_partitions(guestfs, guestfs_helper)
      @log.trace "Searching for swap partition to set label..."

      guestfs_helper.mountable_partitions(guestfs.list_devices.first, :list_swap => true).each do |p|
        if guestfs.vfs_type(p).eql?('swap')
          @log.debug "Setting 'swap' label for partiiton '#{p}'."
          guestfs.mkswap_L('swap', p)
          @log.debug "Label set."
          # We assume here that nobody will want to have two swap partitions
          break
        end
      end
    end
def set_label_for_swap_partitions(guestfs, guestfs_helper)
      @log.trace "Searching for swap partition to set label..."

      guestfs_helper.mountable_partitions(guestfs.list_devices.first, :list_swap => true).each do |p|
        if guestfs.vfs_type(p).eql?('swap')
          @log.debug "Setting 'swap' label for partiiton '#{p}'."
          guestfs.mkswap_L('swap', p)
          @log.debug "Label set."
          # We assume here that nobody will want to have two swap partitions
          break
        end
      end
    end
https://issues.jboss.org/browse/BGBUILD-301