Public bug reported:

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: ubuntu
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug impish ubiquity-21.10.10

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1955317

Title:
  Default /etc/crypttab is using dev/sd*instead of uuid for swap
  partition

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1955317/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to