#296 mentions that LKL can take some time to initialize which makes it impractical to call cptofs in a loop to put different things into it. #298 alleviates some of that pain, but doesn't handle cases like the following:
- Create folder
/path/a/b/c in the image
- Copy the host's
/another/path/foo, /another/path/bar, /another/path/baz into /path/a/b/c
- Copy the host's
/yet/another/path/meow, /yet/another/path/woof into /path/a
If this sounds like it might get too gnarly, it might instead make sense to adapt the lkl-hijack.sh script to support filesystem operation redirection and then run scripts involving cp under it.