How to change Rootfs name in yocto setup?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to change Rootfs name in yocto setup?

Jump to solution
1,420 Views
bandarulavanya
Contributor V

Hi All,

I am trying to give our own defined names for sdcard boot partition and rootfs partitions which i created using yocto setup.

For Boot partition i can able to change in " /sources/meta-fsl-arm/classes$ vi image_types_fsl.bbclass" this file we need to change.

#BOOTDD_VOLUME_ID ?= "Boot ${MACHINE}"
BOOTDD_VOLUME_ID ?= "BOOT"

But for rootfs currently it is giving random digits like this " 52b25f42-b1b3-4091-a226-0952f04656c1" this one i need to change as "ROOTFS" how can i do it, can you please any one help me to sort it out.

Thanks & Regards,

Lavanya.

Tags (4)
1 Solution
1,034 Views
bandarulavanya
Contributor V

Hi all,

I found it

in /poky/meta/classes/image_types.bbclass we need to add like this

EXTRA_IMAGECMD_ext2 ?= "-i 4096 -L rootfs"
EXTRA_IMAGECMD_ext3 ?= "-i 4096 -L rootfs"
EXTRA_IMAGECMD_ext4 ?= "-i 4096 -L rootfs"

"-L rootfs" which will give name as rootfs instead of random digits.

Thanks & Regards,

Lavanya

View solution in original post

1 Reply
1,035 Views
bandarulavanya
Contributor V

Hi all,

I found it

in /poky/meta/classes/image_types.bbclass we need to add like this

EXTRA_IMAGECMD_ext2 ?= "-i 4096 -L rootfs"
EXTRA_IMAGECMD_ext3 ?= "-i 4096 -L rootfs"
EXTRA_IMAGECMD_ext4 ?= "-i 4096 -L rootfs"

"-L rootfs" which will give name as rootfs instead of random digits.

Thanks & Regards,

Lavanya