Skip to content

Clean partition table from unwanted partitions? #1476

Answered by mickeyproc
mickeyproc asked this question in Q&A
Discussion options

You must be logged in to vote

@madisongh
The plan is to eventually use another init manager other than systemd, so I want to make sure this part is future proofed a bit.

I'm thinking of just calling a script from the init-flash.sh script that you mentioned. This init extra script is bbappended to the tegra-flash-init.bb recipe:

FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

SRC_URI:append = "\
    file://custom_flash_init_extra.sh \
    "

RDEPENDS:${PN}:append = " util-linux-findfs"

EXTRA_INIT = "custom_flash_init_extra.sh"

The script i added just uses mke2fs -t ext4 to format the custom added partitions as ext4 fs.
I've tried making it a bit generic so any custom stuff can be added to this init_extra script. One …

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@ricardosalveti
Comment options

@mickeyproc
Comment options

@madisongh
Comment options

@mickeyproc
Comment options

Answer selected by mickeyproc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants