← Back to team overview

ubuntustudio-bugs team mailing list archive

[Bug 2061123] [NEW] Calamares fails to install on logical volume if no partition/LV is marked for being formatted

 

Public bug reported:

SUMMARY

On Kubuntu 24.04, Calamares fails to install if the following two
conditions apply:

* target / is on a Logical Volume (LVM)
* no device is marked for being formatted

STEPS TO REPRODUCE:
1. Create a test VM set to UEFI mode (both Gnome Boxes and Virt Manager worked for me)
2. Boot Kubuntu Noble daily image.

#Preparing the disk
3. sudo cfdisk /dev/vda
4. Partition table: GPT
5. New partition: 500M, Type: EFI System
5. New partition: Rest of disk space, Type: Linux LVM
6. Write partition table
7. sudo mkfs.vfat -F 32 /dev/vda1 #format EFI partition
8. sudo pvcreate /dev/vda2 #create physical volume
9. sudo vgcreate kubuntu /dev/vda2 #create a volume group named 'kubuntu'
10. sudo lvcreate -l 100%FREE -n kubuntutest kubuntu #create a logical volume named 'kubuntutest'
11. sudo mkfs.ext4 /dev/kubuntu/kubuntutest #format the LV
12. Reboot (might not be necessary).

#Installation
13. Start installer
14. Select 'Manual Partitioning'
15. Set /dev/vda1 as /boot/efi, keep data
16. Set kubuntu/kubuntutest as /, keep data
17. Start installation.

OBSERVED RESULT
After short time, Calamares fails with Error dialog:
* "Extraction of cdrom/casper/filesystem.squashfs failed"
* "rsync failed with error code 11"

EXPECTED RESULT
Installation process runs through successfully.

ADDITIONAL INFORMATION
If in step 15 "Formatting" is selected instead of keeping data (while all other steps aren't changed), the installation will be successful. If instead the root filesystem in step 16 is set to being formatted, installation will also work. So it seems this bug occurs only if there is no partition/LV being specified for formatting.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: calamares 3.3.5-0ubuntu3
ProcVersionSignature: Ubuntu 6.8.0-22.22-generic 6.8.1
Uname: Linux 6.8.0-22-generic x86_64
.etc.calamares.modules.after_bootloader_context.conf:
 ---
 dontChroot: false
 timeout: 120
 firmwareType:
     "*": "-rm ${ROOT}/home/${USER}/Desktop/kubuntu-calamares.desktop"
.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.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: pass
CasperVersion: 1.496
CurrentDesktop: KDE
Date: Fri Apr 12 12:40:02 2024
LiveMediaBuild: Kubuntu 24.04 LTS "Noble Numbat" - Beta amd64 (20240412)
RelatedPackageVersions:
 calamares-settings-ubuntu-common 1:24.04.26
 calamares-settings-lubuntu       N/A
 xfsprogs                         6.6.0-1ubuntu2
 btrfs-progs                      6.6.3-1.1build2
SourcePackage: calamares
UpgradeStatus: No upgrade log present (probably fresh install)

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


** Tags: amd64 apport-bug noble

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

Title:
  Calamares fails to install on logical volume if no partition/LV is
  marked for being formatted

Status in calamares package in Ubuntu:
  New

Bug description:
  SUMMARY

  On Kubuntu 24.04, Calamares fails to install if the following two
  conditions apply:

  * target / is on a Logical Volume (LVM)
  * no device is marked for being formatted

  STEPS TO REPRODUCE:
  1. Create a test VM set to UEFI mode (both Gnome Boxes and Virt Manager worked for me)
  2. Boot Kubuntu Noble daily image.

  #Preparing the disk
  3. sudo cfdisk /dev/vda
  4. Partition table: GPT
  5. New partition: 500M, Type: EFI System
  5. New partition: Rest of disk space, Type: Linux LVM
  6. Write partition table
  7. sudo mkfs.vfat -F 32 /dev/vda1 #format EFI partition
  8. sudo pvcreate /dev/vda2 #create physical volume
  9. sudo vgcreate kubuntu /dev/vda2 #create a volume group named 'kubuntu'
  10. sudo lvcreate -l 100%FREE -n kubuntutest kubuntu #create a logical volume named 'kubuntutest'
  11. sudo mkfs.ext4 /dev/kubuntu/kubuntutest #format the LV
  12. Reboot (might not be necessary).

  #Installation
  13. Start installer
  14. Select 'Manual Partitioning'
  15. Set /dev/vda1 as /boot/efi, keep data
  16. Set kubuntu/kubuntutest as /, keep data
  17. Start installation.

  OBSERVED RESULT
  After short time, Calamares fails with Error dialog:
  * "Extraction of cdrom/casper/filesystem.squashfs failed"
  * "rsync failed with error code 11"

  EXPECTED RESULT
  Installation process runs through successfully.

  ADDITIONAL INFORMATION
  If in step 15 "Formatting" is selected instead of keeping data (while all other steps aren't changed), the installation will be successful. If instead the root filesystem in step 16 is set to being formatted, installation will also work. So it seems this bug occurs only if there is no partition/LV being specified for formatting.

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: calamares 3.3.5-0ubuntu3
  ProcVersionSignature: Ubuntu 6.8.0-22.22-generic 6.8.1
  Uname: Linux 6.8.0-22-generic x86_64
  .etc.calamares.modules.after_bootloader_context.conf:
   ---
   dontChroot: false
   timeout: 120
   firmwareType:
       "*": "-rm ${ROOT}/home/${USER}/Desktop/kubuntu-calamares.desktop"
  .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.28.0-0ubuntu1
  Architecture: amd64
  CasperMD5CheckResult: pass
  CasperVersion: 1.496
  CurrentDesktop: KDE
  Date: Fri Apr 12 12:40:02 2024
  LiveMediaBuild: Kubuntu 24.04 LTS "Noble Numbat" - Beta amd64 (20240412)
  RelatedPackageVersions:
   calamares-settings-ubuntu-common 1:24.04.26
   calamares-settings-lubuntu       N/A
   xfsprogs                         6.6.0-1ubuntu2
   btrfs-progs                      6.6.3-1.1build2
  SourcePackage: calamares
  UpgradeStatus: No upgrade log present (probably fresh install)

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



Follow ups