Page MenuHomeLubuntu Development

Bring those swaps back
Open, NormalPublic

Description

This just needs some configuration within Calamares, which supports this.

Related Objects

StatusAssignedTask
Opentsimonq2
OpenNone

Event Timeline

tsimonq2 created this task.Mar 30 2019, 2:49 PM
tsimonq2 triaged this task as Normal priority.
kc2bez added a subscriber: kc2bez.Mar 30 2019, 4:30 PM

This does look super easy to implement now, there are even options for the size of swap that a user wants to implement. In the partition.conf module we would need to change neverCreateSwap: true to neverCreateSwap: false and then add:

userSwapChoices:
    - none      # Create no swap, use no swap
    - reuse     # Re-use existing swap, but don't create any
    - small     # Up to 4GB
    - suspend # At least main memory size

I tested this in Vbox from a daily iso and it seems to work as advertised with the exception of reuse, I wasn't able to see that as an option but perhaps I was doing something wrong. Any insight on this @tsimonq2?

I thought there was also the option of a swapfile, but it was unsupported. If we do swap, that's how we do it.

Another thing to test would be to see how Ubiquity does it in certain contexts. For example, on an SSD (bare metal) does it still do an install with swap? What about encrypted with BIOS?

In T22#334, @tsimonq2 wrote:

I thought there was also the option of a swapfile, but it was unsupported. If we do swap, that's how we do it.

There is but I didn't test that, it said it was unsupported :P I will give it a try though.

Another thing to test would be to see how Ubiquity does it in certain contexts. For example, on an SSD (bare metal) does it still do an install with swap?

I can check on that.

What about encrypted with BIOS?

We have to get that working again :(

In T22#335, @kc2bez wrote:
In T22#334, @tsimonq2 wrote:

I thought there was also the option of a swapfile, but it was unsupported. If we do swap, that's how we do it.

There is but I didn't test that, it said it was unsupported :P I will give it a try though.

"Unsupported" means nothing if it's fine after running it through Many QA tests. 😉

Another thing to test would be to see how Ubiquity does it in certain contexts. For example, on an SSD (bare metal) does it still do an install with swap?

I can check on that.

Thanks.

What about encrypted with BIOS?

We have to get that working again :(

I thought we had this working, is it now also broken with BIOS? :/

In T22#336, @tsimonq2 wrote:

What about encrypted with BIOS?

We have to get that working again :(

I thought we had this working, is it now also broken with BIOS? :/

Yeah, I don't know what happened there. I know it was working, I don't know when it stopped. I will make a task.

In T22#335, @kc2bez wrote:
In T22#334, @tsimonq2 wrote:

I thought there was also the option of a swapfile, but it was unsupported. If we do swap, that's how we do it.

There is but I didn't test that, it said it was unsupported :P I will give it a try though.

This is going to take some more code spelunking. Adding - file # To swap file instead of partition (unsupported right now) didn't get presented in the dropdown.

In T22#334, @tsimonq2 wrote:

Another thing to test would be to see how Ubiquity does it in certain contexts. For example, on an SSD (bare metal) does it still do an install with swap?

Ubiquity (Disco Dingo Beta Ubuntu Budgie) on a bare metal created a small (2G) swap file for my laptop with a 120G SSD. Laptop has 4G of RAM.