You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
The idea is that this kind of tool can be run as a standalone binary needing as few dependencies as possible, then in a "shell-less" environment (end-goal), we do not need either busybox or toybox.
Then popen() or system() are not acceptable solutions. Almost all commands there are close to their libC alternatives, then we can replace these easily. What is left is sgdisk, but we need to figure out if can be done in pure libC without copying lots of code from sgdisk.
The text was updated successfully, but these errors were encountered:
I'd think it safer and easier to maintain to treat gptfdisk as a library and use the sources as they are.
This will allow to rebase easily and get immediately any bugfix.
what I mean is that I don't know what happens inside the sgdisk. Usually to flag a partition some value is super-simple, unlike formatting and doing more complex tasks. So we'd check what is required to get it done, if 5-simple-lines then reimplement, no need to pull in a whole project as dependency.
when I asked to not use shell, we ended with a "shell written in C", which is not good:
https://github.com/ostroproject/meta-ostro/blob/master/meta-ostro/recipes-swupd/swupd-client/files/efi_combo_updater.c
The idea is that this kind of tool can be run as a standalone binary needing as few dependencies as possible, then in a "shell-less" environment (end-goal), we do not need either busybox or toybox.
Then
popen()
orsystem()
are not acceptable solutions. Almost all commands there are close to their libC alternatives, then we can replace these easily. What is left issgdisk
, but we need to figure out if can be done in pure libC without copying lots of code from sgdisk.The text was updated successfully, but these errors were encountered: