Project

General

Profile

Actions

action #127118

open

Leap Micro 6.0 unpartitioned 1MB is expected

Added by lkocman over 1 year ago. Updated 8 days ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
-
Start date:
2023-04-04
Due date:
% Done:

100%

Estimated time:

Description

Originally reported as https://bugzilla.opensuse.org/show_bug.cgi?id=1210082

The unpartitioned 1MiB here are expected. We need to adjust the tests to allow this.

Further information

From @lkocman:

Hello team,

validation of our last build noticed that we do have unpartitioned 1MB of the disk. This is related to our change of start sector for rpi.
YaST team confirmed that that extra unused space might be really needed on some arches.

Can we tweak image check to respect it?

See line 257 at
https://build.opensuse.org/package/view_file/openSUSE:Leap:Micro:5.4:Images/SUSE-MicroOS/SUSE-MicroOS.kiwi?expand=1

<preferences profiles="rpi">
    <version>5.4.0</version>
    <packagemanager>zypper</packagemanager>
    <bootsplash-theme>openSUSE</bootsplash-theme>
    <bootloader-theme>openSUSE</bootloader-theme>
    <rpm-excludedocs>true</rpm-excludedocs>
    <locale>en_US</locale>
    <type
        image="oem"
        initrd_system="dracut"
        filesystem="btrfs"
        fsmountoptions="noatime"
        bootloader="grub2"
        bootloader_console="gfxterm"
    boottimeout="3"
        firmware="efi"
        kernelcmdline="console=ttyS0,115200n8 console=tty0 security=selinux selinux=1 quiet net.ifnames=0 \$ignition_firstboot ignition.platform.id=metal"
        bootpartition="false"
        devicepersistency="by-uuid"
        btrfs_root_is_snapshot="true"
        efipartsize="16"
        editbootinstall="editbootinstall_rpi.sh"
        btrfs_root_is_readonly_snapshot="true"
    btrfs_quota_groups="false"
    disk_start_sector="4096" <--- HERE

Script:
sfdisk --list-free /dev/vdb

Regular expression:
(?:Unpartitioned space .* 0 sectors)

Output:
Unpartitioned space /dev/vdb: 1 MiB, 1048576 bytes, 2048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Start End Sectors Size
2048 4095 2048 1M

Actions

Also available in: Atom PDF