[Bug 2081256] Re: RISC-V Installation with encrypted LVM boots into emergency mode

Olivier Gayot 2081256 at bugs.launchpad.net
Fri Sep 20 09:27:17 UTC 2024


Sep 20 06:06:22 vm systemd[1]: Expecting device dev-disk-by\x2dpath-platform\x2d30000000.pci\x2dpci\x2d0000:00:03.0\x2dpart-by\x2duuid-D1D6\x2dF967.device - /dev/disk/by-path/platform-30000000.pci-pci-0000:00:03.0-part/by-uuid/D1D6-F967...
Sep 20 06:06:22 vm systemd[1]: Expecting device dev-disk-by\x2duuid-454e81c6\x2d8bc0\x2d4512\x2d9f51\x2d0a1f3f09a2e6.device - /dev/disk/by-uuid/454e81c6-8bc0-4512-9f51-0a1f3f09a2e6...
Sep 20 06:06:22 vm systemd[1]: Expecting device dev-disk-by\x2duuid-da319153\x2dca62\x2d4c59\x2d94ec\x2de5d0c1100dca.device - /dev/disk/by-uuid/da319153-ca62-4c59-94ec-e5d0c1100dca...
[...]
Sep 20 06:07:50 vm systemd[1]: Dependency failed for systemd-fsck at dev-disk-by\x2dpath-platform\x2d30000000.pci\x2dpci\x2d0000:00:03.0\x2dpart-by\x2duuid-D1D6\x2dF967.service - File System Check on /dev/disk/by-path/platform-30000000.pci-pci-0000:00:03.0-part/by-uuid/D1D6-F967.
░░ Subject: A start job for unit systemd-fsck at dev-disk-by\x2dpath-platform\x2d30000000.pci\x2dpci\x2d0000:00:03.0\x2dpart-by\x2duuid-D1D6\x2dF967.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support

I think the issue is related to the use of by-path ; which can change
when the installation media gets ejected. Chris ran into a similar issue
on Oracular recently and ended up patching kvm-test.py [1]. I think we
need to investigate what makes us suddenly rely on by-path (if we didn't
do it before).

[1] https://github.com/canonical/subiquity/pull/2082

** Changed in: subiquity (Ubuntu)
   Importance: Undecided => High

** Changed in: subiquity (Ubuntu)
       Status: New => Triaged

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

Title:
  RISC-V Installation with encrypted LVM boots into emergency mode

Status in subiquity package in Ubuntu:
  Triaged

Bug description:
  I used http://cdimage.ubuntu.com/ubuntu-server/daily-
  live/20240919.4/oracular-live-server-riscv64.img.gz using for testing
  https://iso.qa.ubuntu.com/qatracker/milestones/462/builds/313551.

  /snap/subiquity/6154 of version 24.10-devel+git327.24b14804 was used.

  I chose LVM with encryption.

  After rebooting I entered my decryption password I ended up in
  emergency mode:

  You are in emergency mode. After logging in, type "journalctl -xb" to view
  system logs, "systemctl reboot" to reboot, or "exit"

  
  root at vm:~# cat /etc/fstab
  # /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/ubuntu-vg/ubuntu-lv during curtin installation
  /dev/disk/by-id/dm-uuid-LVM-dJdTlb6J7p86GHEsY9A5bITYjPyNVjgfmn2DukuR6VWgNo9IkR4nhYkUW3cHLuhh / ext4 defaults 0 1
  # /boot was on /dev/vdb2 during curtin installation
  /dev/disk/by-uuid/454e81c6-8bc0-4512-9f51-0a1f3f09a2e6 /boot ext4 defaults 0 1
  # /boot/efi was on /dev/vdb1 during curtin installation
  /dev/disk/by-path/platform-30000000.pci-pci-0000:00:03.0-part/by-uuid/D1D6-F967 /boot/efi vfat defaults 0 1
  root at vm:~# lsblk -f
  NAME FSTYPE FSVER LABEL UUID                                   FSAVAIL FSUSE% MOUNTPOINTS
  vda                                                                           
  ├─vda1
  │    vfat   FAT32       D1D6-F967                                             
  ├─vda2
  │    ext4   1.0         454e81c6-8bc0-4512-9f51-0a1f3f09a2e6      1.5G     6% /boot
  └─vda3
    │  crypto 2           da319153-ca62-4c59-94ec-e5d0c1100dca                  
    └─dm_crypt-0
      │  LVM2_m LVM2        I0wgUi-0OLr-eVTa-miWp-UJ6V-Aik1-WGAG7z                
      └─ubuntu--vg-ubuntu--lv
         ext4   1.0         7cfb284d-1833-4e68-b4f3-1d2e7140c45d      6.9G    24% /

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




More information about the foundations-bugs mailing list