[Buildroot] [PATCH 5/8] package/mender: add BR2_PACKAGE_MENDER_DEVICE_TYPE option

Mirza Krak mirza.krak at northern.tech
Wed Aug 15 12:46:20 UTC 2018


On Wed, Aug 15, 2018 at 2:42 PM, Thomas Petazzoni
<thomas.petazzoni at bootlin.com> wrote:
> Hello,
>
> On Wed, 15 Aug 2018 14:26:46 +0200, Mirza Krak wrote:
>
>> > I am a bit confused with "Note that /data is a mount point for the
>> > persistent data partition". If /data is a different partition than the
>> > root filesystem one, then what is the point of
>> > having /data/mender/device_type in the root filesystem ? It will be
>> > hidden by whatever partition gets mounted in /data.
>>
>> Understand the confusion, my intention was to convert the /data
>> directory on target image to an ext4 image in a post build step
>
> Why do you want to do this ?

In the end I would like to create a "disk image" with _all_ the
content, and the data part must be populated at build time, as it
works at the moment.

Pseudo image:

image sdcard.img {
    hdimage {
    }

    partition u-boot {
        partition-type = 0xC
        bootable = "true"
                image = "boot.vfat"
    }

    partition rootfsA {
        partition-type = 0x83
        image = "rootfs.ext4"
        size = 512M
    }

    partition rootfsB {
        partition-type = 0x83
        image = "rootfs.ext4"
        size = 512M
    }

    partition data {
        partition-type = 0x83
        image = "data.ext4"
        size = 512M
    }
}

-- 
Mirza Krak | Embedded Solutions Architect | https://mender.io

 Northern.tech AS | @northerntechHQ



More information about the buildroot mailing list