Public bug reported:

If the installation target is a Btrfs filesystem with existing
subvolumes for home and/or root (namely, @home or @), installation will
fail because Calamares always tries to create new subvolumes for home
and root, but the btrfs command fails because those subvolumes already
exist.

STEPS TO REPRODUCE
1. Boot Kubuntu 25.04 live image in a VM.
2. Before starting installation, manually create a Btrfs partition.
3. Mount that partition, create two empty subvolumes for root and home:
`btrfs subvolume create @ @home`
4. Start Calamares, choose "Manual partitioning", select Btrfs partition as 
target for /

OBSERVED RESULT
Calamares will fail immediately after starting the installation (for error 
message see attached file).

EXPECTED RESULT
Calamares installs just fine, it should at least be possible to use 
pre-existing @home subvolume. 

This is a regression compared to Kubuntu 24.10, where installation works
just fine when following the steps above.

WORKAROUND
The existing subvolumes can be renamed with `mv` before installation. After 
installation, the freshly created empty @home subvolume can be deleted and the 
original @home subvolume can be named back.

ProblemType: Bug
DistroRelease: Ubuntu 25.04
Package: calamares 3.3.14-0ubuntu4
ProcVersionSignature: Ubuntu 6.12.0-16.16-generic 6.12.11
Uname: Linux 6.12.0-16-generic x86_64
.etc.calamares.modules.finished.conf:
 ---
 restartNowMode: user-checked
 restartNowCommand: "systemctl -i reboot"
.etc.calamares.modules.fstab.conf:
 crypttabOptions: luks,keyscript=/bin/cat
 efiMountOptions: umask=0077
.etc.calamares.modules.shellprocess_logs.conf:
 ---
 dontChroot: true
 timeout: 30
 script:
     - calamares-logs-helper ${ROOT}
.etc.calamares.modules.unpackfs.conf:
 ---
 unpack:
     -   source: "/cdrom/casper/filesystem.squashfs"
         sourcefs: "squashfs"
         destination: ""
ApportVersion: 2.32.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CasperVersion: 25.04.1
CurrentDesktop: KDE
Date: Wed Mar  5 16:10:21 2025
LiveMediaBuild: Kubuntu 25.04 "Plucky Puffin" - Daily amd64 (20250304)
RelatedPackageVersions:
 calamares-settings-ubuntu-common 1:25.04.16
 calamares-settings-lubuntu       N/A
 xfsprogs                         6.12.0-1ubuntu1
 btrfs-progs                      6.12-1build1
SourcePackage: calamares
UpgradeStatus: No upgrade log present (probably fresh install)

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


** Tags: amd64 apport-bug plucky third-party-packages wayland-session

** Attachment added: "Calamares error message when installation fails"
   
https://bugs.launchpad.net/bugs/2100956/+attachment/5862552/+files/calamares-error.txt

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

Title:
  Calamares fails to install if target contains existing Btrfs
  subvolumes for home or root

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to