[Bug 1955317] [NEW] Default /etc/crypttab is using dev/sd*instead of uuid for swap partition

Launchpad Bug Tracker 1955317 at bugs.launchpad.net
Sun Dec 19 00:06:15 UTC 2021


You have been subscribed to a public bug:

I'm not quite sure if this is the right category so excuse me, if I'm
wrong here.

I've installed Ubuntu 21.10 using the latest installer. During the
installation I've enabled zfs and encryption. The installer created a
/etc/crypttab file that looks like this:

cryptoswap      /dev/sda2       /dev/urandom    swap,initramfs

This is really bad because the disk behind /dev/sda may change and
unfortunately did change in my case. This can lead to data lost on other
disks.

I would suggest to use the UUID instead of "/dev/sda2".

ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: ubiquity (not installed)
ProcVersionSignature: Ubuntu 5.13.0-22.22-generic 5.13.19
Uname: Linux 5.13.0-22-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu70
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sat Dec 18 22:23:35 2021
InstallCmdLine: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash ---
InstallationDate: Installed on 2021-12-18 (0 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: ubiquity
Symptom: installation
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: ubiquity (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug impish ubiquity-21.10.10
-- 
Default /etc/crypttab is using dev/sd*instead of uuid for swap partition
https://bugs.launchpad.net/bugs/1955317
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to ubiquity in Ubuntu.



More information about the foundations-bugs mailing list