Installation with root btrfs failed at grub2-install

Hello, I’m new to OpenMandriva, coming from openSUSE, and just got some problems while trying install OpenMandriva Lx 4.3 .

The installer failed with an error message as below:


This error won’t appear if I try to install OMA on an ext4 root as default. However I really want a btrfs root. Here is my partitions:

Name                  File system       Mount Point
/dev/nvme0n1p1        Fat32             /boot/efi
/dev/nvme0n1p1        Btrfs             /

I have no idea why this could happen. Any help would be appreciated :wink:

Hello @Dahuang welcome to OpenMandriva.
Thanks for the report. Someone will reply asap.

Hi @Dahuang. Testing this in VirtualBox and root with btrfs does not work. ext4 and xfs do work.

With btrfs root I get this error,

Failed to unpack image "/run/initramfs/omdv/LiveOS/squashfs.img"
rsync failed with error code 11."/run/initramfs/

I have asked the project leader about this on IRC. You are welcome on IRC if you wish to ask questions or follow the conversation. Patience is required, we are a small all unpaid, part-time, volunteers. Someone will answer in time. People may not be in your time zone, ect.

Post edit: Full Calamares logs of attempt to install using / btrfs partition:

calamares-btrfs-log.txt (45.8 KB)

User note: To get the log of a failed installation you can run Calamares installed from Konsole like this:

$ pkexec calamares -d

and copy and paste all the output to a text file to post that in forum post or bug report. Do not post only the part you think is important, post all the output.

Name File system Mount Point
/dev/nvme0n1p1 Fat32 /boot/efi
/dev/nvme0n1p1 Btrfs /

==> same name /dev ? , 2nd should be nvme0n1p2

Good catch, I missed that. That explains @Dahuang error showing “cannot find a device for /boot/grub2”.

But based on my tests installing to / btrfs partition won’t work with the error I posted. A developer is looking at this.

Edit: It would also be true that installing to:

Name                  File system       Mount Point
/dev/nvme0n1p1        Fat32             /boot/efi
/dev/nvme0n1p1        Btrfs             /

Won’t work on any file system type. It would need to be as @stephane says root should be /dev/nvme0n1p2.

oops, my fault.

It’s a mistype. My root is on /dev/nvme0n1p2.

Okay, I think I solved this (partly)

In a short, I rebooted into a opensuse live image, chroot into the new installation, and manually ran grub2-install and grub2-mkconfig. Now the system can boot, but no more than that – almost every thing is broken. Not surprised though.

While doing this I found something abnormal:
When I booted the opensuse live image for the first time, I found there was nothing in /dev/nvme0n1p2 , which should be the root of the new installation. Then I booted into OMA’s live image and tried to install again. I found that calamares extracted files into /tmp/calamares-root-g_hgktlz, but /dev/nvme0n1p2 was not mounted at all. This means calamares is trying to install OMA into my RAM! This won’t happen if you install OMA on an ext4 root.

while installing OMA into a btrfs root:
[live@omv-598 ~]$ mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=4096k,nr_inodes=131072,mode=755,inode64)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,size=4927488k,nr_inodes=819200,mode=755,inode64)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,size=4096k,nr_inodes=1024,mode=755,inode64)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/misc type cgroup (rw,nosuid,nodev,noexec,relatime,misc)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
/dev/mapper/ventoy on /run/initramfs/omdv type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8)
/dev/loop0 on /run/initramfs/image type squashfs (ro,relatime,errors=continue)
/run/initramfs/tmpfs on /run/initramfs/tmpfs type tmpfs (rw,relatime,mode=755,inode64)
overlay on /run/initramfs/union type overlay (rw,relatime,lowerdir=/run/initramfs/image,upperdir=/run/initramfs/tmpfs/memory,workdir=/run/initramfs/tmpfs/work,index=off,nfs_export=off,xino=off)
overlay on / type overlay (rw,relatime,lowerdir=/run/initramfs/image,upperdir=/run/initramfs/tmpfs/memory,workdir=/run/initramfs/tmpfs/work,index=off,nfs_export=off,xino=off)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=15935)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,nr_inodes=1048576,inode64)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=2463744k,nr_inodes=615936,mode=700,uid=1000,gid=1002,inode64)
/dev/nvme0n1p1 on /tmp/calamares-root-g_hgktlz/boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro)
devtmpfs on /tmp/calamares-root-g_hgktlz/dev type devtmpfs (rw,nosuid,size=4096k,nr_inodes=131072,mode=755,inode64)
proc on /tmp/calamares-root-g_hgktlz/proc type proc (rw,relatime)
tmpfs on /tmp/calamares-root-g_hgktlz/run type tmpfs (rw,relatime,inode64)
tmpfs on /tmp/calamares-root-g_hgktlz/run/udev type tmpfs (rw,nosuid,nodev,size=4927488k,nr_inodes=819200,mode=755,inode64)
sys on /tmp/calamares-root-g_hgktlz/sys type sysfs (rw,relatime)
efivarfs on /tmp/calamares-root-g_hgktlz/sys/firmware/efi/efivars type efivarfs (rw,relatime)
/dev/loop0 on /tmp/tmpfs7yk112/squashfs type squashfs (ro,relatime,errors=continue)
and if you install it into an ext4 root:
[live@omv-598 etc]$ mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=4096k,nr_inodes=131072,mode=755,inode64)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,size=4927488k,nr_inodes=819200,mode=755,inode64)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,size=4096k,nr_inodes=1024,mode=755,inode64)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/misc type cgroup (rw,nosuid,nodev,noexec,relatime,misc)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
/dev/mapper/ventoy on /run/initramfs/omdv type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8)
/dev/loop0 on /run/initramfs/image type squashfs (ro,relatime,errors=continue)
/run/initramfs/tmpfs on /run/initramfs/tmpfs type tmpfs (rw,relatime,mode=755,inode64)
overlay on /run/initramfs/union type overlay (rw,relatime,lowerdir=/run/initramfs/image,upperdir=/run/initramfs/tmpfs/memory,workdir=/run/initramfs/tmpfs/work,index=off,nfs_export=off,xino=off)
overlay on / type overlay (rw,relatime,lowerdir=/run/initramfs/image,upperdir=/run/initramfs/tmpfs/memory,workdir=/run/initramfs/tmpfs/work,index=off,nfs_export=off,xino=off)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=15935)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,nr_inodes=1048576,inode64)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=2463744k,nr_inodes=615936,mode=700,uid=1000,gid=1002,inode64)
/dev/nvme0n1p2 on /tmp/calamares-root-8faotx9d type ext4 (rw,relatime,stripe=256)
/dev/nvme0n1p1 on /tmp/calamares-root-8faotx9d/boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro)
devtmpfs on /tmp/calamares-root-8faotx9d/dev type devtmpfs (rw,nosuid,size=4096k,nr_inodes=131072,mode=755,inode64)
proc on /tmp/calamares-root-8faotx9d/proc type proc (rw,relatime)
tmpfs on /tmp/calamares-root-8faotx9d/run type tmpfs (rw,relatime,inode64)
tmpfs on /tmp/calamares-root-8faotx9d/run/udev type tmpfs (rw,nosuid,nodev,size=4927488k,nr_inodes=819200,mode=755,inode64)
sys on /tmp/calamares-root-8faotx9d/sys type sysfs (rw,relatime)
efivarfs on /tmp/calamares-root-8faotx9d/sys/firmware/efi/efivars type efivarfs (rw,relatime)

Note that /dev/nvme0n1p2 is not mounted in the btrfs case. So I mount /dev/nvme0n1p2 /mnt, and copied everything under /tmp/calamares-root-g_hgktlz (except proc etc.) to /mnt. Then there is the begining : -)

As a wild guess, but based on what I see here (I am running btrfs on my /home partition), I think that btrfs needs code that isn’t available to Grub.

First for a problem like this you have to post the calamares installation logs as described here.

Include those logs in a bug report. We really need a bug report for this. It is not my problem and I do not have time to do such a bug report myself.

OK,I’ll report it.