Comments (5)
It looks like default options from the command line overwrite config options:
kmod_autodetect_lspci = true kmod_autodetect_lsmod = true
When we call:
$ ugrd ... Importing argument 'kmod_autodetect_lspci' with value: False Importing argument 'kmod_autodetect_lsmod' with value: False ...
Thanks for pointing this out, the command line options have been changed in a recent version and I think I missed this. I may just revert it to the old style, but this gets a bit tricky because the defaults for a lot of things from the "main" function are "False", and I can't just discard False values, because you should be able to toggle things off, and command line parameters should be the final determining factor. I think I may just make it check if the value isn't the default, and if it is, it will pass it to the generator.
from ugrd.
Is it possible to set command line variable to 'None' by default and set them to True or False only in case --lspci or --no-lspci is used? This way it will be possible to overwrite config values in case cli lspci != None.
from ugrd.
Is it possible to set command line variable to 'None' by default and set them to True or False only in case --lspci or --no-lspci is used? This way it will be possible to overwrite config values in case cli lspci != None.
Maybe, I'm currently using argparser, and a bit of wrapping done here: https://github.com/desultory/zenlib/blob/main/src/zenlib/util/main_funcs.py
The tricky bit is the "no-" options. the result is that both args write to the same variable. It was designed so that you could use the no- option to quickly disable things that were enabled in your config, or the opposite.
I'm thinking I may need to create some map of defaults and make it not return kwargs if there is no deviation.
from ugrd.
I've updated zenlib and ugrd to hopefully fix this, I tested and it seems to work.
from ugrd.
Thanks!
from ugrd.
Related Issues (16)
- No subvolume validation HOT 3
- YubiKey reset issues HOT 2
- Yubikey: "gpg error keyboxd not installed" HOT 11
- Is it possible to decrypt full disk? HOT 3
- Cannot use detached header on a device that has no UUID or PARTUUID HOT 5
- is it possible to use a different keyboard layout? HOT 3
- document/test module sideloading
- document/test keymap loading
- Add LLVM toolchain support for cryptsetup module HOT 8
- Does not find libncurses.so.6 even though it exists HOT 3
- Copying file into initramfs fails HOT 1
- No documentation on using key-files in the initramfs to decrypt volumes HOT 6
- cryptsetup_keyfile_validation is not working properly HOT 7
- Plymouth module gives error HOT 28
- autocomplete parity
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ugrd.