Autoinstall and storage configuration

Hello,

I try to enable hibernation on systems with SecureBoot.
Because of SecureBoot, the swap needs to be encrypted.
I tried to just use the swapfile, add resume and resume_offset to GRUB,
but this did not work.

Next I tried to setup storage manually, instead of using “layout: lvm” and well,
the installer did not format anything.

Is there a way to tell autoinstall, to create a SWAP-Partition instead of a SWAP-File?

Something like this:

autoinstall:
  version: 1
  storage:
    layout:
      name: lvm
      password: mypassword
      sizing-policy: all
      lvs:
        - name: lvswap
          fstype: swap
          size: 8GB