swapfile not created if user selects 'something else' during install
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubiquity (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
A swapfile is not created when the user selects 'something else' and creates a custom partition layout during installation. A swapfile is created using the 'erase disk and install ubuntu' option.
Steps to reproduce:
Boot to Ubuntu 22.04.1 installer
Select 'Something else" during installation
Create EFI system partition
Create root ext4 partition
Finish installation and reboot
ubuntu2@
ls: cannot access '/swapfile': No such file or directory
ubuntu2@
Mem: 31Gi 1.2Gi 27Gi 493Mi 2.0Gi 29Gi
Swap: 0B 0B 0B
ubuntu2@
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=54c4ff2f-
# /boot/efi was on /dev/sda1 during installation
UUID=2E7B-F985 /boot/efi vfat umask=0077 0 1
ubuntu2@
Description: Ubuntu 22.04.1 LTS
Release: 22.04
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubiquity (not installed)
ProcVersionSign
Uname: Linux 5.15.0-56-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Tue Dec 27 11:28:48 2022
InstallCmdLine: BOOT_IMAGE=
InstallationDate: Installed on 2022-12-27 (0 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)
Thank you for taking the time to report this bug and helping to make Ubuntu better.
Mostly an FYI, but there are cases where swapfile isn't wanted, for example an install where swap partition is created or just (re-)used (swap partitions can be more easily shared between OSes if dual booting).
I know with a flavor install I also QA-tested an install where an existing swapfile was re-used (ie. no format of partition; alas with Lubuntu which uses calamares not ubiquity; but I'd expect the same for both; that repair/re-install is not a testcase for Ubuntu Desktop so I can't recall when last tested with Ubuntu Desktop)