You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to bind mount a directory on the host to make it visible on the target ?
Right now I have a wrapper around build_dist that copies a bunch of files from my git repo (containing the custom OS definitions) before building the image.
I can't find any trick to do that properly.
If you can share what your code is doing exactly it might help me understand what changes could be done.
The idea is to have all the data in the same context and folder so it easy to encapsulate. But perhaps there are changes possible.
I understand.
If there was a before_chroot_script inside which I could do the copy, I could do without a bind mount.
For now, I have an acceptable solution : I edited the build_dist script :
(clicking on the ellipsis besides a line of code, the pull down menu has an entry "Copy permalink" which will make the reference usable even when the line-numbers change)
Activity
guysoft commentedon Dec 1, 2020
Not really.
The mount code is here and its mostly hard-coded in aspect of what goes where:
https://github.com/guysoft/CustomPiOS/blob/devel/src/common.sh#L162
If you can share what your code is doing exactly it might help me understand what changes could be done.
The idea is to have all the data in the same context and folder so it easy to encapsulate. But perhaps there are changes possible.
Salamandar commentedon Dec 1, 2020
I understand.
If there was a before_chroot_script inside which I could do the copy, I could do without a bind mount.
For now, I have an acceptable solution : I edited the build_dist script :
guysoft commentedon Dec 1, 2020
That should not be too hard to add.
It could be added here:
https://github.com/guysoft/CustomPiOS/blob/devel/src/custompios#L147
It will have to be though one script for the whole distro and not one per-module. I think it would make more sense that way.
umlaeute commentedon Sep 14, 2023
i guess this should have read
CustomPiOS/src/custompios
Line 147 in 333dd9f
(clicking on the ellipsis besides a line of code, the pull down menu has an entry "Copy permalink" which will make the reference usable even when the line-numbers change)