Comments (3)
thinking about this some more, I think there should be a warning or "type yes to continue" type of thing if a parent changed.
from firemarshal.
After more discussion there seem to be a few options on how to address this:
- Add an interactive warning if marshal is going to overwrite your workload. e.g. "Parent workloads have changed. Overwrite your workload image with the new parent (all local changes will be lost)? Y/N"
- May lead to annoying behavior when you try to 'fire and forget', it makes 'marshal build' potentially interactive and could break scripts.
- Change the default behavior to just always overwrite (how common is it for people to have important manual changes in their workload?). I'm not sure exactly how Docker handles this.
- Could cause some annoying surprises from time to time (if you were in the middle of manually tweaking the workload). Honestly I don't think this is very common anymore, everything should be in your workload config and it's pretty fast to rebuild these days.
- Keep the current default behavior, but add a "--force" flag that will overwrite the child on parent changes. There would also be a new warning that parent changes were not applied and to use '--force' if you're willing to lose local changes. This seems similar to other tools like git.
- Is probably the safest, but I suspect most people actually want the 'force' behavior as the default and everyone will just do 'marshal build -f' all the time anyway.
Opinions?
from firemarshal.
This is to avoid wiping out ephemeral data on your rootfs accidentally.
Is this a concern about overwriting a parent's rootfs image that has been modified by the user after build time (e.g., customized through a running system)? Personally, I just assume that any file generated by marshal can potentially be clobbered anytime I run marshal build
. It's usually more confusing to me when something doesn't change as expected through the dependency tree.
from firemarshal.
Related Issues (20)
- Understanding icenet-driver Makefile HOT 4
- CPU Parallelism Question HOT 2
- Add GH-A CI
- crashs while building br-base.json HOT 2
- Bump buildroot submodule version to pull in upstream fixes HOT 2
- Build failure exits 0 HOT 1
- Bump buildroot to be able to build with make 4.3 HOT 1
- FireMarshal does not work with the latest doit version HOT 1
- XRT default setup.sh can cause buildroot failure for CWD in LD_LIBRARY_PATH HOT 1
- TypeError: string indices must be integers HOT 1
- can't add file in my-test-bin-nodisk-flat
- "sed: no such file" when attempting to install riscv-tools HOT 1
- Update Fedora to Fedora 37 (20221130)
- build failed with Permission denied
- Need a line break check before merging several Linux configs
- nodisk: Failed to login as 'root' with password 'fpga' HOT 1
- Compilation with conda failes at mknod Operation not permitted
- can not create nodisk image when overwriting the linux config
- [Firesim][VCU118][firesim runworkload] Can not see linux booting and be presented with a login prompt
- ERROR: Failed to build workload br-base.json HOT 2
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 firemarshal.