-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import build uki command from enki #92
Conversation
This is driving me crazy. I create an ISO with:
(notice the and in the ISO I find:
I can't explain how |
I printed the files as they are being copied with
The file name looks correct until the last minute. I wonder if it's the ISO filesystem somehow lying to me (not having filename case information on the the files or something). |
Never mind, we decided to go lowercase with all files. Fat can't be trusted to maintain the case. |
4b36937
to
820cbcd
Compare
As part of kairos-io/kairos#1633 Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
instead of trying to re-use it. It was never meant to be re-used. Deep functions where accessing top-level cli args using viper. We will: - port the code - make it work - refactor it to be clean and re-usable - deprecate the enki counterpart Signed-off-by: Dimitris Karakasilis <[email protected]>
by having a default, the condition was never false Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
because that's how urfave/cli works (positional args come last) Signed-off-by: Dimitris Karakasilis <[email protected]>
because FAT can't be trusted with mixed case (some files are copied as lowercase although they were upper case) Also handle errors in place (instead of at the end) Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
to remove the additional dependency to mkfs Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
to run the bootable test Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
…and) Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
because it's not set for some reason Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
Signed-off-by: Dimitris Karakasilis <[email protected]>
b966199
to
3901d83
Compare
Signed-off-by: Dimitris Karakasilis <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. I guess the refactor of things wil come later? Seeing some things in the build-uki iso that may be better in a separate utils package or something similar as having a command being 1000 lines its a bit terrible xD
Yup, it's as terrible as it gets :D I didn't want to do the refactoring together with the porting because it would make the review of the refactoring part impossible. Let's first migrate the commands. |
This is just a copy-over from the enki code. Some minor changes were made so that no function expects a global viper object. They now take everything they need as function parameters.
Steps to deprecate the enki command:
When the rest of the enki commands have been migrated (
genkey
andsysext
remaining), we can archive the enki repo to make sure no fixes are made there instead of Auroraboot.