Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install on laptop: Invalid "children" token ... Unknown block device type dm #775

Open
rscm opened this issue May 25, 2022 · 1 comment
Labels
bug_triage Newly report and needs review

Comments

@rscm
Copy link

rscm commented May 25, 2022

Describe the bug
Wanted to install on a laptop but the installer (GUI) didn't detected the drive. The drive is a SATA SSD disk, but I've also tested with the previous mechanical drive and the issue persisted.
Then tried using a YAML file (clr install config) to define the drive on /dev/sda and for a moment worked and it created the partitions but then stopped with an error. (you can read the logs for more details about the error)

I've tried with multiple CLR Linux isos (previous versions) and the same happened

The install media is fine, I use Ventoy and I have a bunch of isos in it I use regularly

Thanks

To Reproduce
Steps to reproduce the behavior:

  1. Connect the install media/USB Stick
  2. Boot into CLR
  3. Open the installer
  4. Enter the storage/partition options and see the error there saying it can not detect any drive

Expected behavior
I expect that the installer detects the drive on /dev/sda and then let me install the OS

Environment (please complete the following information):

  • Clear Linux ISO file: clear-36400-live-desktop.iso
  • Clear Linux OS Version: build 36400
  • Installer Version 2.7.3
  • Platform:
    • Dell Inspiron 5458
    • 8GB RAM
    • Intel Core i5 5200U
    • SSD Crucial MX500 - 500GB

sudo lshw -sanitize

computer
    description: Laptop
    product: Inspiron 5458 (06AE)
    vendor: Dell Inc.
    serial: [REMOVED]
    width: 4294967295 bits
    capabilities: smbios-2.8 dmi-2.8 smp vsyscall32
    configuration: boot=normal chassis=laptop sku=06AE uuid=[REMOVED]
  *-core
       description: Motherboard
       product: 00D1NF
       vendor: Dell Inc.
       physical id: 0
       version: A00
       serial: [REMOVED]
     *-firmware
          description: BIOS
          vendor: Dell Inc.
          physical id: 0
          version: A18
          date: 12/30/2019
          size: 64KiB
          capacity: 8128KiB
          capabilities: pci pnp upgrade shadowing cdboot bootselect edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb smartbattery biosbootspecification netboot uefi
     *-cpu
          description: CPU
          product: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
          vendor: Intel Corp.
          physical id: 46
          bus info: cpu@0
          version: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
          serial: [REMOVED]
          slot: SOCKET 0
          size: 498MHz
          capacity: 2700MHz
          width: 64 bits
          clock: 100MHz
          capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap intel_pt xsaveopt dtherm ida arat pln pts md_clear flush_l1d cpufreq
          configuration: cores=2 enabledcores=2 threads=4
        *-cache:0
             description: L1 cache
             physical id: 37
             slot: L1 Cache
             size: 32KiB
             capacity: 32KiB
             capabilities: synchronous internal write-back instruction
             configuration: level=1
        *-cache:1
             description: L2 cache
             physical id: 3c
             slot: L2 Cache
             size: 256KiB
             capacity: 256KiB
             capabilities: synchronous internal write-back unified
             configuration: level=2
        *-cache:2
             description: L3 cache
             physical id: 41
             slot: L3 Cache
             size: 3MiB
             capacity: 3MiB
             capabilities: synchronous internal write-back unified
             configuration: level=3
     *-cache
          description: L1 cache
          physical id: 32
          slot: L1 Cache
          size: 32KiB
          capacity: 32KiB
          capabilities: synchronous internal write-back data
          configuration: level=1
     *-memory
          description: System Memory
          physical id: 50
          slot: System board or motherboard
          size: 8GiB
        *-bank:0
             description: SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
             product: 99P5469-026.A00LF
             vendor: Kingston
             physical id: 0
             serial: [REMOVED]
             slot: DIMM A
             size: 4GiB
             width: 64 bits
             clock: 1600MHz (0.6ns)
        *-bank:1
             description: SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)
             product: HMT451S6BFR8A-PB
             vendor: Hynix/Hyundai
             physical id: 1
             serial: [REMOVED]
             slot: DIMM B
             size: 4GiB
             width: 64 bits
             clock: 1600MHz (0.6ns)
     *-pci
          description: Host bridge
          product: Broadwell-U Host Bridge -OPI
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 09
          width: 32 bits
          clock: 33MHz
          configuration: driver=bdw_uncore
          resources: irq:0
        *-display
             description: VGA compatible controller
             product: HD Graphics 5500
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 09
             width: 64 bits
             clock: 33MHz
             capabilities: msi pm vga_controller bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: irq:47 memory:f6000000-f6ffffff memory:e0000000-efffffff ioport:f000(size=64) memory:c0000-dffff
        *-multimedia:0
             description: Audio device
             product: Broadwell-U Audio Controller
             vendor: Intel Corporation
             physical id: 3
             bus info: pci@0000:00:03.0
             version: 09
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi pciexpress bus_master cap_list
             configuration: driver=snd_hda_intel latency=0
             resources: irq:51 memory:f7214000-f7217fff
        *-usb:0
             description: USB controller
             product: Wildcat Point-LP USB xHCI Controller
             vendor: Intel Corporation
             physical id: 14
             bus info: pci@0000:00:14.0
             version: 03
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi xhci bus_master cap_list
             configuration: driver=xhci_hcd latency=0
             resources: irq:48 memory:f7200000-f720ffff
           *-usbhost:0
                product: xHCI Host Controller
                vendor: Linux 5.17.9-1145.native xhci-hcd
                physical id: 0
                bus info: usb@2
                logical name: usb2
                version: 5.17
                capabilities: usb-2.00
                configuration: driver=hub slots=11 speed=480Mbit/s
              *-usb:0
                   description: Mass storage device
                   product: DataTraveler 3.0
                   vendor: Kingston
                   physical id: 3
                   bus info: usb@2:3
                   logical name: scsi4
                   version: 0.01
                   serial: [REMOVED]
                   capabilities: usb-2.10 scsi emulated
                   configuration: driver=usb-storage maxpower=300mA speed=480Mbit/s
                 *-disk
                      description: SCSI Disk
                      product: DataTraveler 3.0
                      vendor: Kingston
                      physical id: 0.0.0
                      bus info: scsi@4:0.0.0
                      logical name: /dev/sdb
                      serial: [REMOVED]
                      size: 57GiB (61GB)
                      capabilities: removable
                      configuration: ansiversion=6 logicalsectorsize=512 sectorsize=512
                    *-medium
                         physical id: 0
                         logical name: /dev/sdb
                         size: 57GiB (61GB)
                         capabilities: partitioned partitioned:dos
                         configuration: signature=137ffa09
                       *-volume:0
                            description: HPFS/NTFS partition
                            physical id: 1
                            logical name: /dev/sdb1
                            capacity: 57GiB
                            capabilities: primary bootable
                       *-volume:1
                            description: Windows FAT volume
                            vendor: mkfs.fat
                            physical id: 2
                            logical name: /dev/sdb2
                            version: FAT16
                            serial: [REMOVED]
                            size: 31MiB
                            capacity: 32MiB
                            capabilities: primary boot fat initialized
                            configuration: FATs=2 filesystem=fat label=VTOYEFI
              *-usb:1
                   description: Video
                   product: Integrated_Webcam_HD
                   vendor: CNFEH43I22501789CB42
                   physical id: 5
                   bus info: usb@2:5
                   version: 42.67
                   capabilities: usb-2.00
                   configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s
              *-usb:2
                   description: Bluetooth wireless interface
                   product: Bluetooth wireless interface
                   vendor: Intel Corp.
                   physical id: 6
                   bus info: usb@2:6
                   version: 0.01
                   capabilities: bluetooth usb-2.00
                   configuration: driver=btusb maxpower=100mA speed=12Mbit/s
              *-usb:3
                   description: Generic USB device
                   product: USB2.0-CRW
                   vendor: Generic
                   physical id: 8
                   bus info: usb@2:8
                   version: 39.60
                   serial: [REMOVED]
                   capabilities: usb-2.00
                   configuration: driver=rtsx_usb maxpower=500mA speed=480Mbit/s
           *-usbhost:1
                product: xHCI Host Controller
                vendor: Linux 5.17.9-1145.native xhci-hcd
                physical id: 1
                bus info: usb@3
                logical name: usb3
                version: 5.17
                capabilities: usb-3.00
                configuration: driver=hub slots=4 speed=5000Mbit/s
        *-communication
             description: Communication controller
             product: Wildcat Point-LP MEI Controller #1
             vendor: Intel Corporation
             physical id: 16
             bus info: pci@0000:00:16.0
             version: 03
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=mei_me latency=0
             resources: irq:49 memory:f721c000-f721c01f
        *-multimedia:1
             description: Audio device
             product: Wildcat Point-LP High Definition Audio Controller
             vendor: Intel Corporation
             physical id: 1b
             bus info: pci@0000:00:1b.0
             version: 03
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=snd_hda_intel latency=32
             resources: irq:52 memory:f7210000-f7213fff
        *-pci:0
             description: PCI bridge
             product: Wildcat Point-LP PCI Express Root Port #1
             vendor: Intel Corporation
             physical id: 1c
             bus info: pci@0000:00:1c.0
             version: e3
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:42 ioport:2000(size=4096) memory:df800000-df9fffff ioport:dfa00000(size=2097152)
        *-pci:1
             description: PCI bridge
             product: Wildcat Point-LP PCI Express Root Port #3
             vendor: Intel Corporation
             physical id: 1c.2
             bus info: pci@0000:00:1c.2
             version: e3
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:43 memory:f7100000-f71fffff
           *-network
                description: Wireless interface
                product: Wireless 3160
                vendor: Intel Corporation
                physical id: 0
                bus info: pci@0000:06:00.0
                logical name: wlp6s0
                version: 83
                serial: [REMOVED]
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=iwlwifi driverversion=5.17.9-1145.native firmware=17.3216344376.0 3160-17.ucode ip=[REMOVED] latency=0 link=yes multicast=yes wireless=IEEE 802.11
                resources: irq:53 memory:f7100000-f7101fff
        *-pci:2
             description: PCI bridge
             product: Wildcat Point-LP PCI Express Root Port #4
             vendor: Intel Corporation
             physical id: 1c.3
             bus info: pci@0000:00:1c.3
             version: e3
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:44 ioport:e000(size=4096) memory:f7000000-f70fffff ioport:f0000000(size=1048576)
           *-network
                description: Ethernet interface
                product: RTL810xE PCI Express Fast Ethernet controller
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:07:00.0
                logical name: enp7s0
                version: 07
                serial: [REMOVED]
                capacity: 100Mbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.17.9-1145.native firmware=rtl8106e-1_0.0.1 06/29/12 latency=0 link=no multicast=yes port=twisted pair
                resources: irq:19 ioport:e000(size=256) memory:f7000000-f7000fff memory:f0000000-f0003fff
        *-pci:3
             description: PCI bridge
             product: Wildcat Point-LP PCI Express Root Port #5
             vendor: Intel Corporation
             physical id: 1c.4
             bus info: pci@0000:00:1c.4
             version: e3
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:45
        *-usb:1
             description: USB controller
             product: Wildcat Point-LP USB EHCI Controller
             vendor: Intel Corporation
             physical id: 1d
             bus info: pci@0000:00:1d.0
             version: 03
             width: 32 bits
             clock: 33MHz
             capabilities: pm debug ehci cap_list
             configuration: driver=ehci-pci latency=0
             resources: irq:21 memory:f721a000-f721a3ff
           *-usbhost
                product: EHCI Host Controller
                vendor: Linux 5.17.9-1145.native ehci_hcd
                physical id: 1
                bus info: usb@1
                logical name: usb1
                version: 5.17
                capabilities: usb-2.00
                configuration: driver=hub slots=2 speed=480Mbit/s
              *-usb
                   description: USB hub
                   product: Integrated Hub
                   vendor: Intel Corp.
                   physical id: 1
                   bus info: usb@1:1
                   version: 0.03
                   capabilities: usb-2.00
                   configuration: driver=hub slots=8 speed=480Mbit/s
        *-isa
             description: ISA bridge
             product: Wildcat Point-LP LPC Controller
             vendor: Intel Corporation
             physical id: 1f
             bus info: pci@0000:00:1f.0
             version: 03
             width: 32 bits
             clock: 33MHz
             capabilities: isa bus_master cap_list
             configuration: driver=lpc_ich latency=0
             resources: irq:0
        *-storage
             description: SATA controller
             product: Wildcat Point-LP SATA Controller [AHCI Mode]
             vendor: Intel Corporation
             physical id: 1f.2
             bus info: pci@0000:00:1f.2
             version: 03
             width: 32 bits
             clock: 66MHz
             capabilities: storage msi pm ahci_1.0 bus_master cap_list
             configuration: driver=ahci latency=0
             resources: irq:46 ioport:f0b0(size=8) ioport:f0a0(size=4) ioport:f090(size=8) ioport:f080(size=4) ioport:f060(size=32) memory:f7219000-f72197ff
        *-serial
             description: SMBus
             product: Wildcat Point-LP SMBus Controller
             vendor: Intel Corporation
             physical id: 1f.3
             bus info: pci@0000:00:1f.3
             version: 03
             width: 64 bits
             clock: 33MHz
             configuration: driver=i801_smbus latency=0
             resources: irq:18 memory:f7218000-f72180ff ioport:f040(size=32)
     *-scsi:0
          physical id: 1
          logical name: scsi0
          capabilities: emulated
        *-disk
             description: ATA Disk
             product: CT500MX500SSD1
             physical id: 0.0.0
             bus info: scsi@0:0.0.0
             logical name: /dev/sda
             version: 043
             serial: [REMOVED]
             size: 465GiB (500GB)
             capabilities: gpt-1.00 partitioned partitioned:gpt
             configuration: ansiversion=5 guid=f726bfb6-57b0-47b0-a417-7ef8e4c27f44 logicalsectorsize=512 sectorsize=4096
           *-volume:0
                description: Windows FAT volume
                vendor: mkfs.fat
                physical id: 1
                bus info: scsi@0:0.0.0,1
                logical name: /dev/sda1
                version: FAT32
                serial: [REMOVED]
                size: 510MiB
                capacity: 511MiB
                capabilities: boot fat initialized
                configuration: FATs=2 filesystem=fat name=EFI System Partition
           *-volume:1
                description: EXT4 volume
                vendor: Linux
                physical id: 2
                bus info: scsi@0:0.0.0,2
                logical name: /dev/sda2
                version: 1.0
                serial: [REMOVED]
                size: 465GiB
                capabilities: journaled extended_attributes large_files huge_files dir_nlink recover 64bit extents ext4 ext2 initialized
                configuration: created=2022-05-24 09:46:39 filesystem=ext4 lastmountpoint=/ modified=2022-05-24 11:00:22 mounted=2022-05-24 11:00:24 state=clean
     *-scsi:1
          physical id: 2
          logical name: scsi1
          capabilities: emulated
        *-cdrom
             description: DVD-RAM writer
             product: DVD+-RW SU-208GB
             vendor: TSSTcorp
             physical id: 0.0.0
             bus info: scsi@1:0.0.0
             logical name: /dev/cdrom
             logical name: /dev/sr0
             version: D100
             capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
             configuration: ansiversion=5 status=nodisc
  *-battery
       product: DELL VN3N047
       vendor: SMP
       physical id: 1
       version: 05/27/2015
       serial: [REMOVED]
       slot: Sys. Battery Bay
       capacity: 41440mWh
       configuration: voltage=14.8V


Logs

clr-installer.log
2022/05/24 06:41:30 [DBG] Log Level set to LogLevelDebug (4)
2022/05/24 06:41:30 [INF] clr-installer: 2.7.3, built on 2022-03-03_23:52:17_UTC
2022/05/24 06:41:30 [DBG] Loading config file: live-desktop.yaml
2022/05/24 06:41:30 [INF] Querying Clear Linux version
2022/05/24 06:41:30 [DBG] PrivateIP: Found IP: 52.89.132.254, Private IP?: false
2022/05/24 06:41:30 [DBG] PrivateIP: Found IP: 52.24.64.66, Private IP?: false
2022/05/24 06:41:30 [DBG] localectl list-keymaps --no-pager
2022/05/24 06:41:30 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:30 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:30 [DBG] cmd.Env: []
2022/05/24 06:41:30 [DBG] timedatectl list-timezones
2022/05/24 06:41:30 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:30 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:30 [DBG] cmd.Env: []
2022/05/24 06:41:31 [DBG] locale -a
2022/05/24 06:41:31 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:31 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:31 [DBG] cmd.Env: []
2022/05/24 06:41:31 [DBG] Unable to use language locale 'agr_PE.UTF-8'
2022/05/24 06:41:31 [DBG] Unable to use language locale 'ayc_PE.UTF-8'
2022/05/24 06:41:31 [DBG] Unable to use language locale 'ber_DZ.UTF-8'
2022/05/24 06:41:31 [DBG] Unable to use language locale 'ber_MA.UTF-8'
2022/05/24 06:41:31 [DBG] Unable to use language locale 'bhb_IN.UTF-8'
2022/05/24 06:41:31 [DBG] Unable to use language locale 'hne_IN.UTF-8'
2022/05/24 06:41:31 [DBG] Unable to use language locale 'miq_NI.UTF-8'
2022/05/24 06:41:31 [DBG] Unable to use language locale 'mjw_IN.UTF-8'
2022/05/24 06:41:31 [DBG] Unable to use language locale 'mnw_MM.UTF-8'
2022/05/24 06:41:31 [DBG] Unable to use language locale 'nhn_MX.UTF-8'
2022/05/24 06:41:31 [DBG] Unable to use language locale 'shs_CA.UTF-8'
2022/05/24 06:41:31 [DBG] Unable to use language locale 'the_NP.UTF-8'
2022/05/24 06:41:31 [DBG] Unable to use language locale 'unm_US.UTF-8'
2022/05/24 06:41:31 [DBG] Unable to use language locale 'yuw_PG.UTF-8'
2022/05/24 06:41:31 [DBG] Mass installer using defined media in YAML
2022/05/24 06:41:31 [WRN] validatePartitions: Skipping /boot size check due to skipSize
2022/05/24 06:41:31 [WRN] validatePartitions: Skipping swap size check due to skipSize
2022/05/24 06:41:31 [WRN] validatePartitions: Skipping / (root) size check due to zero size
2022/05/24 06:41:31 [DBG] Starting install
2022/05/24 06:41:31 [INF] Running pre-install hooks
2022/05/24 06:41:31 [DBG] Clear Linux OS version: latest
2022/05/24 06:41:31 [WRN] validatePartitions: Skipping /boot size check due to skipSize
2022/05/24 06:41:31 [WRN] validatePartitions: Skipping swap size check due to skipSize
2022/05/24 06:41:31 [WRN] validatePartitions: Skipping / (root) size check due to zero size
2022/05/24 06:41:31 [WRN] Flag --iso not valid for physical media; disabling
2022/05/24 06:41:31 [DBG] lsblk --exclude 1,2,11 -J -b -O /dev/sda
2022/05/24 06:41:31 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:31 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:31 [DBG] cmd.Env: []
2022/05/24 06:41:31 [INF] Cleaning disk(action): /dev/sda with ForceDestructive: false
2022/05/24 06:41:31 [DBG] lsblk --exclude 1,2,11 -J -b -O /dev/sda
2022/05/24 06:41:31 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:31 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:31 [DBG] cmd.Env: []
2022/05/24 06:41:31 [DBG] removePart: Found parent: /dev/sda for child: /dev/sda1
2022/05/24 06:41:31 [WRN] Deleting part: sda1 from disk: sda
2022/05/24 06:41:31 [DBG] parted /dev/sda --script -- rm 1
2022/05/24 06:41:31 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:31 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:31 [DBG] cmd.Env: []
2022/05/24 06:41:31 [INF] Writing partition table to: sda
2022/05/24 06:41:31 [DBG] parted -s /dev/sda mklabel gpt
2022/05/24 06:41:31 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:31 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:31 [DBG] cmd.Env: []
2022/05/24 06:41:31 [INF] Updating partition table for: sda
2022/05/24 06:41:31 [DBG] Partitions before sorting:
2022/05/24 06:41:31 [DBG] sda1: fsType=vfat, mount=/boot, size=157286400, type=part
2022/05/24 06:41:31 [DBG] sda2: fsType=swap, mount=, size=33554432, type=part
2022/05/24 06:41:31 [DBG] sda3: fsType=ext4, mount=/, size=0, type=part
2022/05/24 06:41:31 [DBG] Partitions after sorting:
2022/05/24 06:41:31 [DBG] sda1: fsType=vfat, mount=/boot, size=157286400, type=part
2022/05/24 06:41:31 [DBG] sda2: fsType=swap, mount=, size=33554432, type=part
2022/05/24 06:41:31 [DBG] sda3: fsType=ext4, mount=/, size=0, type=part
2022/05/24 06:41:31 [DBG] parted --machine --script -- /dev/sda unit B print
2022/05/24 06:41:31 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:31 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:31 [DBG] cmd.Env: []
2022/05/24 06:41:31 [DBG] WritePartitionTable: processing child: &{sda1      vfat   /boot   157286400 part  false false [] false true true false  false 1 []}
2022/05/24 06:41:31 [DBG] WritePartitionTable: WholeDisk mode
2022/05/24 06:41:31 [DBG] WritePartitionTable: start: 0, end: 157286400
2022/05/24 06:41:31 [DBG] WritePartitionTable: mkPartCmd: mkpart EFI fat32 0% 157M
2022/05/24 06:41:31 [DBG] parted -a optimal /dev/sda unit MB --script -- mkpart EFI fat32 0% 157M
2022/05/24 06:41:31 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:31 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:31 [DBG] cmd.Env: []
2022/05/24 06:41:31 [DBG] parted --machine --script -- /dev/sda unit B print
2022/05/24 06:41:31 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:31 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:31 [DBG] cmd.Env: []
2022/05/24 06:41:31 [DBG] WritePartitionTable: processing child: &{sda2      swap      33554432 part  false false [] false true true false  false 2 []}
2022/05/24 06:41:31 [DBG] WritePartitionTable: WholeDisk mode
2022/05/24 06:41:31 [DBG] WritePartitionTable: start: 157286400, end: 190840832
2022/05/24 06:41:31 [DBG] WritePartitionTable: mkPartCmd: mkpart linux-swap 157M 190M
2022/05/24 06:41:31 [DBG] parted -a optimal /dev/sda unit MB --script -- mkpart linux-swap 157M 190M
2022/05/24 06:41:31 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:31 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:31 [DBG] cmd.Env: []
2022/05/24 06:41:31 [DBG] parted --machine --script -- /dev/sda unit B print
2022/05/24 06:41:31 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:31 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:31 [DBG] cmd.Env: []
2022/05/24 06:41:31 [DBG] WritePartitionTable: processing child: &{sda3      ext4   /   0 part  false false [] false true true false  false 3 []}
2022/05/24 06:41:31 [DBG] WritePartitionTable: WholeDisk mode
2022/05/24 06:41:31 [DBG] WritePartitionTable: start: 190840832, end: 190840832
2022/05/24 06:41:31 [DBG] WritePartitionTable: mkPartCmd: mkpart / 190M -1
2022/05/24 06:41:31 [DBG] parted -a optimal /dev/sda unit MB --script -- mkpart / 190M -1
2022/05/24 06:41:31 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:31 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:31 [DBG] cmd.Env: []
2022/05/24 06:41:31 [DBG] parted --machine --script -- /dev/sda unit B print
2022/05/24 06:41:31 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:31 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:31 [DBG] cmd.Env: []
2022/05/24 06:41:32 [INF] Setting GUIDs for device: /dev/sda
2022/05/24 06:41:32 [DBG] sgdisk /dev/sda --typecode=3:4F68BCE3-E8CD-4DB1-96E7-FBCAF984B709
2022/05/24 06:41:32 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:32 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:32 [DBG] cmd.Env: []
2022/05/24 06:41:33 [DBG] The operation has completed successfully.
2022/05/24 06:41:33 [DBG] sgdisk /dev/sda --typecode=1:C12A7328-F81F-11D2-BA4B-00A0C93EC93B
2022/05/24 06:41:33 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:33 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:33 [DBG] cmd.Env: []
2022/05/24 06:41:34 [DBG] The operation has completed successfully.
2022/05/24 06:41:34 [DBG] sgdisk /dev/sda --typecode=2:0657FD6D-A4AB-43C4-84E5-0933C84B4F4F
2022/05/24 06:41:34 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:34 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:34 [DBG] cmd.Env: []
2022/05/24 06:41:35 [DBG] The operation has completed successfully.
2022/05/24 06:41:35 [INF] Setting boot partition: sda1 [boot]
2022/05/24 06:41:35 [DBG] parted /dev/sda set 1 boot on
2022/05/24 06:41:35 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:35 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:35 [DBG] cmd.Env: []
2022/05/24 06:41:35 [DBG] Information: You may need to update /etc/fstab.
2022/05/24 06:41:35 [DBG] 
                                                                          
2022/05/24 06:41:35 [DBG] partprobe /dev/sda
2022/05/24 06:41:35 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:35 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:35 [DBG] cmd.Env: []
2022/05/24 06:41:39 [INF] Writing vfat file system to sda1 '/boot'
2022/05/24 06:41:39 [DBG] mkfs.vfat -F32 /dev/sda1
2022/05/24 06:41:39 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:39 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:39 [DBG] cmd.Env: []
2022/05/24 06:41:39 [DBG] mkfs.fat 4.2 (2021-01-31)
2022/05/24 06:41:39 [DBG] blkid --probe /dev/sda1 --output export
2022/05/24 06:41:39 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:39 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:39 [DBG] cmd.Env: []
2022/05/24 06:41:39 [DBG] updatePartitionInfo: Updated /dev/sda1 UUID: E239-7901
2022/05/24 06:41:39 [DBG] updatePartitionInfo: Ignoring unknown line: 
2022/05/24 06:41:39 [INF] Writing swap file system to sda2
2022/05/24 06:41:39 [DBG] mkswap /dev/sda2
2022/05/24 06:41:39 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:39 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:39 [DBG] cmd.Env: []
2022/05/24 06:41:39 [DBG] Setting up swapspace version 1, size = 31 MiB (32501760 bytes)
2022/05/24 06:41:39 [DBG] no label, UUID=fb4b36f0-e07b-42e1-b9a7-03825e0a9d36
2022/05/24 06:41:39 [DBG] blkid --probe /dev/sda2 --output export
2022/05/24 06:41:39 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:39 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:39 [DBG] cmd.Env: []
2022/05/24 06:41:39 [DBG] updatePartitionInfo: Updated /dev/sda2 UUID: fb4b36f0-e07b-42e1-b9a7-03825e0a9d36
2022/05/24 06:41:39 [DBG] updatePartitionInfo: Ignoring unknown line: 
2022/05/24 06:41:39 [INF] Writing ext4 file system to sda3 '/'
2022/05/24 06:41:39 [DBG] mkfs.ext4 -v -F -b 4096 /dev/sda3
2022/05/24 06:41:39 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:39 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:39 [DBG] cmd.Env: []
2022/05/24 06:41:39 [DBG] mke2fs 1.46.5 (30-Dec-2021)
2022/05/24 06:41:39 [DBG] fs_types for mke2fs.conf resolution: 'ext4'
2022/05/24 06:41:39 [DBG] Discarding device blocks:         0/122050048�������������������
2022/05/24 06:41:40 [DBG]  16252928/122050048�������������������
2022/05/24 06:41:40 [DBG]                    �������������������done                            
2022/05/24 06:41:40 [DBG] Filesystem label=
2022/05/24 06:41:40 [DBG] OS type: Linux
2022/05/24 06:41:40 [DBG] Block size=4096 (log=2)
2022/05/24 06:41:40 [DBG] Fragment size=4096 (log=2)
2022/05/24 06:41:40 [DBG] Stride=0 blocks, Stripe width=256 blocks
2022/05/24 06:41:40 [DBG] 30515200 inodes, 122050048 blocks
2022/05/24 06:41:40 [DBG] 6102502 blocks (5.00%) reserved for the super user
2022/05/24 06:41:40 [DBG] First data block=0
2022/05/24 06:41:40 [DBG] Maximum filesystem blocks=2271215616
2022/05/24 06:41:40 [DBG] 3725 block groups
2022/05/24 06:41:40 [DBG] 32768 blocks per group, 32768 fragments per group
2022/05/24 06:41:40 [DBG] 8192 inodes per group
2022/05/24 06:41:40 [DBG] Filesystem UUID: c8dc7124-adf3-4ec7-ac76-5e7ad9d22228
2022/05/24 06:41:40 [DBG] Superblock backups stored on blocks: 
2022/05/24 06:41:40 [DBG] 	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
2022/05/24 06:41:40 [DBG] 	4096000, 7962624, 11239424, 20480000, 23887872
2022/05/24 06:41:40 [DBG] , 71663616, 78675968
2022/05/24 06:41:40 [DBG] , 
2022/05/24 06:41:40 [DBG] 	102400000
2022/05/24 06:41:40 [DBG] Allocating group tables:    0/3725���������
2022/05/24 06:41:40 [DBG]          ���������done                            
2022/05/24 06:41:40 [DBG] Writing inode tables:    0/3725���������
2022/05/24 06:41:40 [DBG]          ���������done                            
2022/05/24 06:41:40 [DBG] Creating journal (262144 blocks): 
2022/05/24 06:41:42 [DBG] done
2022/05/24 06:41:42 [DBG] Writing superblocks and filesystem accounting information: 
2022/05/24 06:41:42 [DBG]    0/3725���������
2022/05/24 06:41:42 [DBG]          ���������
2022/05/24 06:41:42 [DBG] done
2022/05/24 06:41:42 [DBG] blkid --probe /dev/sda3 --output export
2022/05/24 06:41:42 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:42 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:42 [DBG] cmd.Env: []
2022/05/24 06:41:42 [DBG] updatePartitionInfo: Updated /dev/sda3 UUID: c8dc7124-adf3-4ec7-ac76-5e7ad9d22228
2022/05/24 06:41:42 [DBG] updatePartitionInfo: Ignoring unknown line: 
2022/05/24 06:41:42 [DBG] partprobe -s
2022/05/24 06:41:42 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:42 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:42 [DBG] cmd.Env: []
2022/05/24 06:41:42 [DBG] /dev/sda: gpt partitions 1 2 3
2022/05/24 06:41:42 [DBG] /dev/sdb: msdos partitions 1 2
2022/05/24 06:41:42 [DBG] udevadm settle --timeout 10
2022/05/24 06:41:42 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:42 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:42 [DBG] cmd.Env: []
2022/05/24 06:41:43 [DBG] lsblk --exclude 1,2,11 -J -b -O
2022/05/24 06:41:43 [DBG] Using default shellProxy.DefaultGetProxyValue
2022/05/24 06:41:43 [DBG] [Previous line repeated 4 times]
2022/05/24 06:41:43 [DBG] cmd.Env: []
2022/05/24 06:41:43 [INF] Running post-image hooks
2022/05/24 06:41:43 [INF] Installation Steps Complete
2022/05/24 06:41:43 [WRN] Telemetry is not present in the installer, skip record generation
2022/05/24 06:41:43 [ERR] Invalid "children" token: Invalid "children" token: Unknown block device type: dm

Error Trace:
storage.parseBlockDeviceType()
     /builddir/build/BUILD/clr-installer-2.7.3/storage/block_devices.go:336
storage.(*BlockDevice).UnmarshalJSON()
     /builddir/build/BUILD/clr-installer-2.7.3/storage/parse.go:134


Error Trace:
storage.(*BlockDevice).UnmarshalJSON()
     /builddir/build/BUILD/clr-installer-2.7.3/storage/parse.go:185
encoding/json.(*decodeState).object()
     /usr/lib/golang/src/encoding/json/decode.go:609


Error Trace:
storage.(*BlockDevice).UnmarshalJSON()
     /builddir/build/BUILD/clr-installer-2.7.3/storage/parse.go:185
encoding/json.(*decodeState).object()
     /usr/lib/golang/src/encoding/json/decode.go:609


Error Trace:
errors.Wrap()
     /builddir/build/BUILD/clr-installer-2.7.3/errors/errors.go:85
storage.parseBlockDevicesDescriptor()
     /builddir/build/BUILD/clr-installer-2.7.3/storage/block_devices.go:694

clr-installer_terminal.log
clr-installer --config live-desktop.yaml 
Swupd auto-update set to off!
Running pre-install hooks [success]
Flag --iso not valid for physical media; disabling
Cleaning disk /dev/sda [success]
Writing partition table to: sda [success]
Updating partition table for: sda [success]
Setting boot partition: sda1 [boot] [success]
Rescanning media [success]
Writing vfat file system to sda1 '/boot' [success]
Writing swap file system to sda2 [success]
Writing ext4 file system to sda3 '/' [success]
Running post-image hooks [success]
Installation Steps Complete [success]
ERROR: Installation has failed!
Please report this crash using GitHub Issues:
https://github.com/clearlinux/clr-installer/issues

Include the following as attachments to enable diagnosis:
/root/pre-install-clr-installer.yaml
/root/clr-installer.log

You may need to remove any personal data of concern from the attachments.
The Installer will now exit.
Invalid "children" token: Invalid "children" token: Unknown block device type: dm

Error Trace:
storage.parseBlockDeviceType()
     /builddir/build/BUILD/clr-installer-2.7.3/storage/block_devices.go:336
storage.(*BlockDevice).UnmarshalJSON()
     /builddir/build/BUILD/clr-installer-2.7.3/storage/parse.go:134


Error Trace:
storage.(*BlockDevice).UnmarshalJSON()
     /builddir/build/BUILD/clr-installer-2.7.3/storage/parse.go:185
encoding/json.(*decodeState).object()
     /usr/lib/golang/src/encoding/json/decode.go:609


Error Trace:
storage.(*BlockDevice).UnmarshalJSON()
     /builddir/build/BUILD/clr-installer-2.7.3/storage/parse.go:185
encoding/json.(*decodeState).object()
     /usr/lib/golang/src/encoding/json/decode.go:609


Error Trace:
errors.Wrap()
     /builddir/build/BUILD/clr-installer-2.7.3/errors/errors.go:85
storage.parseBlockDevicesDescriptor()
     /builddir/build/BUILD/clr-installer-2.7.3/storage/block_devices.go:694
@rscm rscm added the bug_triage Newly report and needs review label May 25, 2022
@jtru
Copy link

jtru commented Jun 16, 2022

I also hit this bug when trying to install Clear Linux on the machine next to me. If I locally patch lsblk to not emit a "type": "dm" element, I can choose between all available physical block devices in the system and continue with the installation.

I don't think it's a sensible idea to have block_devices.go keep an internal list of expected values that lsblk might produce, especially when it is not exhaustive. Simply skipping over "unknown" elements would be a better solution, instead of having the parser report an error condition. If you disagree, this patch:

diff --git a/storage/block_devices.go b/storage/block_devices.go
index 4746183..44e97bc 100644
--- a/storage/block_devices.go
+++ b/storage/block_devices.go
@@ -197,6 +197,7 @@ var (
                BlockDeviceTypeRAID5:      "raid5",
                BlockDeviceTypeRAID6:      "raid6",
                BlockDeviceTypeRAID10:     "raid10",
+               BlockDeviceTypeUnknown:    "dm",
                BlockDeviceTypeUnknown:    "",
        }
        aliasPrefixTable = map[string]string{

... could probably fix the problem for this instance of an unexpected value.

Ftr, a workaround to fix the live environment could be this:

sudo mv /usr/sbin/lsblk /usr/sbin/lsblk.real
base64 -d <<EOF > /tmp/lsblk_patched
IyEvYmluL2Jhc2gKL3Vzci9zYmluL2xzYmxrLnJlYWwgIiR7QH0iIHwgc2VkICdzLyJ0eXBlIjog
ImRtIi8idHlwZSI6ICJwYXJ0Ii8nCg==
EOF
sudo cp /tmp/lsblk_patched /usr/sbin/lsblk
chmod 0755 /usr/sbin/lsblk

which will result in /usr/sbin/lsblk become this crude shellscript:

#!/bin/bash
/usr/sbin/lsblk.real "${@}" | sed 's/"type": "dm"/"type": "part"/'

I could complete the installation after performing this unholy procedure. Ymmv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug_triage Newly report and needs review
Projects
None yet
Development

No branches or pull requests

2 participants