Calamares automatically creates swapfile with manual partitioning without any warning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Calamares |
New
|
Unknown
|
|||
calamares (Ubuntu) |
Triaged
|
High
|
Unassigned | ||
calamares-settings-ubuntu (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
In Calamares, when doing Manual Partitioning, there is no option to choose whether or not to create a swapfile as there is with the Erase Disk option. Instead, one would need to create it outside of the installer. However, a swapfile is created nonetheless. This is neither indicated in the Partitions panel, nor in the Summary panel, as one would expect.
This appears to be caused by the `initialSwapChoice` value in /etc/calamares/
So there are two things that need to be fixed here:
1. Calamares itself needs a change, including one or more of:
1. Provide an option in Manual Partitioning to choose swapfile options
2. Show the creation of swapfiles in the Summary panel
3. Don't consider the value of `initialSwapChoice` when doing Manual Partitioning
2. calamares-
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: calamares 3.3.5-0ubuntu3
ProcVersionSign
Uname: Linux 6.8.0-22-generic x86_64
.etc.calamares.
---
dontChroot: false
timeout: 120
firmwareType:
"*": "-rm ${ROOT}
.etc.calamares.
---
restartNowMode: user-checked
restartNowCommand: "systemctl -i reboot"
.etc.calamares.
crypttabOptions: luks,keyscript=
efiMountOptions: umask=0077
.etc.calamares.
---
dontChroot: true
timeout: 30
script:
- calamares-
.etc.calamares.
---
unpack:
- source: "/cdrom/
sourcefs: "squashfs"
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckR
CasperVersion: 1.496
CurrentDesktop: LXQt
Date: Wed Apr 17 12:48:11 2024
LiveMediaBuild: Lubuntu 24.04 LTS "Noble Numbat" - Beta amd64 (20240415)
RelatedPackageV
calamares-
calamares-
xfsprogs 6.6.0-1ubuntu2
btrfs-progs 6.6.3-1.1build2
SourcePackage: calamares
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in calamares-settings-ubuntu (Ubuntu): | |
status: | Triaged → Won't Fix |
milestone: | ubuntu-24.04 → none |
assignee: | Lubuntu Developers (lubuntu-dev) → nobody |
importance: | High → Undecided |
Changed in calamares: | |
status: | Unknown → New |
There's not really any good way around this. The default behavior in the old Ubiquity installer was (IIRC):
* Don't create a swapfile by default when doing manual partitioning.
* Create a swapfile by default for any other installation mode.
With Calamares, we only have two options that aren't the same as this behavior:
* Always create swap unless using Erase Disk mode and the user explicitly turns it off
OR
* Never create swap unless using Erase Disk mode and the user explicitly turns it on
Both of these are different from Ubiquity's behavior. Going with "never create swap" has slightly more danger than going with "always create swap", and it has a higher chance of confusing a user who's used to Ubiquity.
At some point (perhaps for the OO cycle), we should try and get in a feature that allows the user to customize which filesystem they want the swapfile to be on, like wxl mentioned. That would be my favorite solution, though it's too late to try it for this cycle.
In the short term, we may need to just release note this bug and try to fix it via an SRU to add some notice that a swapfile is being created on the Summary screen, or disable swapfile creation when using manual partitioning (both options that wxl covered above).