build failed with block-device-lvm-efi

Bug #2043082 reported by Tony Kim
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
New
Undecided
Unassigned

Bug Description

when I run disk-image-create vm block-device-efi-lvm rocky-container.
also same "block-device-gpt with xfs".

- disk-image-create --version : 3.26.0, filesystem type is xfs

this was only occurred with xfs.

I faced it below error :
| Installing GRUB2...
| Installing for i386-pc platform.
| /usr/sbin/grub2-install: error: ../grub-core/kern/fs.c:120:unknown filesystem.
| Unmount /tmp/dib_build.F9krzxlq/mnt/tmp/in_target.d
| Unmount /tmp/dib_build.F9krzxlq/mnt/sys
| Unmount /tmp/dib_build.F9krzxlq/mnt/proc
| Unmount /tmp/dib_build.F9krzxlq/mnt/dev/pts
| Unmount /tmp/dib_build.F9krzxlq/mnt/dev
| Mountpoint /tmp/dib_build.F9krzxlq/mnt/boot/efi managed by block device; skipping
| INFO diskimage_builder.block_device.level3.mount [-] Called for [mount_mkfs_ESP]
| INFO diskimage_builder.block_device.utils [-] Calling [sudo sync]
| INFO diskimage_builder.block_device.utils [-] Calling [sudo umount /tmp/dib_build.F9krzxlq/mnt/boot/efi]
| INFO diskimage_builder.block_device.level3.mount [-] Called for [mount_fs_root]
| INFO diskimage_builder.block_device.utils [-] Calling [sudo sync]
| INFO diskimage_builder.block_device.utils [-] Calling [sudo fstrim --verbose /tmp/dib_build.F9krzxlq/mnt/]
| INFO diskimage_builder.block_device.utils [-] Calling [sudo umount /tmp/dib_build.F9krzxlq/mnt/]
| INFO diskimage_builder.block_device.utils [-] Calling [sudo lvchange -an /dev/vg/lv_root]
| INFO diskimage_builder.block_device.utils [-] Calling [sudo vgchange -an vg]
| INFO diskimage_builder.block_device.utils [-] Calling [sudo udevadm settle]
| INFO diskimage_builder.block_device.utils [-] Calling [sudo kpartx -d /dev/loop0]
| INFO diskimage_builder.block_device.level0.localloop [-] loopdev detach
| INFO diskimage_builder.block_device.utils [-] Calling [sudo losetup -d /dev/loop0]

Any idea about what can cause this issue ?

Tony Kim (hee4004)
description: updated
Revision history for this message
Tony Kim (hee4004) wrote (last edit ):

SELF SOLUTION:

I run disk-image-create with below option for creating rocky8.6 using xfs filesystem.

          type: xfs
          opts: "-m bigtime=0,inobtcount=0"

vim diskimage_builder/elements/block-device-gpt/block-device-default.yaml
# Default single partition loopback using a GPT based partition table

- local_loop:
    name: image0

- partitioning:
    base: image0
    label: gpt
    partitions:
      - name: BSP
        type: 'EF02'
        size: 8MiB
      - name: root
        flags: [ boot ]
        size: 100%
        mkfs:
          type: xfs #<--- here
          opts: "-m bigtime=0,inobtcount=0" #<--- here
          mount:
            mount_point: /
            fstab:
              options: "defaults"
              fsck-passno: 1

- hint from redhat document.

```
The XFS filesystem now supports bigtime and inobtcount features

The XFS filesystem now supports two new on-disk features, each of which is enabled by default by mkfs.xfs in RHEL 9.
These two new features are:
- Timestamp support beyond the year 2038 (bigtime).
- Inode btree counters (inobtcount), to reduce mount time on large filesystems.

As a result of this update, filesystems created with default mkfs.xfs parameters will not be mountable on RHEL 8 systems.
```

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.