Bug#844713: ITP: partman-swapfile -- add support for creating swapfiles
On 18 November 2016 at 12:02, Philipp Kern <pkern@debian.org> wrote:
> On 18.11.2016 12:44, Dimitri John Ledkov wrote:
>> Another thing I am investigating is moving away from swap partitions to
>> swap files, on non-lvm installations. This will involve tweaking the
>> default partman-auto recipes & the no-swap warning.
>
> Note that you should then also check that the memory available to the
> installer is sufficient to proceed without swap. (Especially for locales
> generation and such.)
>
Right so the no-swap warning comes after partitioning scheme is
finalised, but before swapfile is created and activated.
I still want to default to having some swap. But have that provided
via swap partition, or a swapfile. So far my scripts are a bit hackish
as the swapfile does not form part of the parted aware things /
something one cas specify in partman-auto recipes. It really is tucked
on the side, in finish.d, at the moment.
I have no solution yet for e.g. partman-auto automic recipe which uses
swapfile, if the rootfs filesystem is ext4; but creates a swap
partition if the rootfs filesystem is btrfs. And i'm not quite sure
how to express that in the recipe, or decode it.
--
Regards,
Dimitri.
Reply to: