BLUF: I think this is an error/misunderstanding/bug in the no-swap check, not because of the use of expert_recipe. partman-basicfilesystems/no_swap should be *false* to confirm that you do not want to use swap.
After hitting this problem myself, when creating a VM template with not swap, i checked the code in https://salsa.debian.org/installer-team/partman-basicfilesystems/-/blob/master/check.d/check_swap#L29 - If i read this correctly, setting no_swap to *true* will exit 1, and make the installer go one step back in the flow. Thus the installer would just do the same actions again, and trigger the same check with the same question, and making an infinite loop. It also explains why the partman log file keeps growing. I myself feel that *false* being correct for the check named "no_swap" to be skipped is wrong. However, the question that the installer asks is NOT "Do you want to not use/skip using swap", it is "Do you want to go back to the partitioning menu?", technically a different/opposite question. In any case, I feel like setting the value to "false" when having no swap configured triggering an endless loop to be a bug. -- Vennlig hilsen / Best regards Anders Einar Hilden

