Replies: 11 comments 1 reply
-
The CLIs of other initramfs generators out there such as One idea follows the following
Analogous options in u-root as a replacement of
|
Beta Was this translation helpful? Give feedback.
-
It seems that many initramfs generators are tied to their respective distributions and so don't offer much flexibility in including arbitrary files.
I must say, the Interestingly, these tools don't offer a way of building off of a base cpio. Is there a reason that u-root doesn't add the device files when building off of a base cpio? |
Beta Was this translation helpful? Give feedback.
-
I've created a working example here of replacing @rminnich and @orangecms, what do you think of this? I didn't make a PR yet because I got the impression that you may want more "remodeling" of u-root's CLI besides file inclusion, and to spark more discussion before any changes were made. |
Beta Was this translation helpful? Give feedback.
-
A thought on However, I'm not sure I understood all of the issues, and that would only solve one of them. What is probably less desirable is a thousand options, like openssl or ffmpeg, which is why I wanted to consider a CLI redesign. :) |
Beta Was this translation helpful? Give feedback.
-
@orangecms Thanks for your thoughts! Perhaps I don't know about other issues, but the issue I had was primarily with u-root's file inclusion mechanism. What did you have in mind for a CLI redesign? |
Beta Was this translation helpful? Give feedback.
-
above all: make sure that a simple continues to do all the right basic things, and that adding files and such continues to be convenient. |
Beta Was this translation helpful? Give feedback.
-
Note that -files now allows one to include directories, and does an ldd on tall binaries in the tree. This has proven to be very useful. Further, I'm not that big a fan of single-use -include; I've used the ability to add multiple files a lot. BUT: u-root whatver | u-root more stuff | u-root still more stuff and so on. This would be really nice. |
Beta Was this translation helpful? Give feedback.
-
I couldn't agree more.
That is what I am mainly focusing on: both convenience and following expected behavior. |
Beta Was this translation helpful? Give feedback.
-
Being able to build a pipeline is also essential I think, especially for any tool working with cpio archives. |
Beta Was this translation helpful? Give feedback.
-
The I just wasn't sure if I missed a bit somewhere after reading the whole problem statement, because it was a litfle late for me, that's all, sorry if that was confusing. 😅 |
Beta Was this translation helpful? Give feedback.
-
I am going to try converting this to a discussion -- brace yourselves. |
Beta Was this translation helpful? Give feedback.
-
From #1919 arose a discussion about the expected behavior of u-root's command line options. This issue aims at following that discussion, aiming to improve the design of u-root's command line interface to make it more intuitive and for it to follow expected behavior.
A notable example arises when adding files to an initramfs.
u-root provides the
-base
option which aims to build on top of an existing cpio. However, u-root does not include device files such as/dev/console
or create/etc
when-base
is specified. Currently, there is no way to tell u-root via its CLI to include these files or not when specifying a base cpio.u-root also provides the
-files
option which includes extra files/directories in the initramfs along with theirldd
dependencies. u-root does include the device files when specifying the-files
option; however, if the BusyBox binary was built outside of u-root (say, with gobusybox),-files
will try to include theldd
dependencies of the BusyBox binary and will include it twice in some cases (see #1919).Beta Was this translation helpful? Give feedback.
All reactions