Comments (5)
At the time when this feature was being implemented, three images required special handling (see here):
mount_image(directory, rootfs_image)
system_directory = os.path.join(os.path.join(directory, "opt"))
if not os.path.isdir(system_directory):
os.mkdir(system_directory)
mount_image(system_directory, system_image)
user_directory = os.path.join(system_directory, "usr")
if not os.path.isdir(user_directory):
os.mkdir(user_directory)
mount_image(user_directory, user_image)
because rootfs.img
should be mounted to /
, system-data.img
to /opt
and user.img
to /opt/usr
. So the combirepo
's abilities were explicitly restricted to one and three partition firmwares, because each new firmware structure should be handled in mount_firmware
in a special way.
So if now there is some uniform way to mount all images (for example, by using some external information about mount structure) it is OK to replace this behaviour with more modern behaviour. Otherwise it is recommended to implement each new structure's handling each time when it is met. Another way is to make this behaviour configurable, i.e. allow the user to specify mount points of different parts explicitly by some config or command line option(s).
from combirepo.
Ok, thanks!
Currently swap partition was added to rootfs, system-data, user triplet.
from combirepo.
Seems that in this case a better solution would be to remove hard-coded paths in the combirepo
, so that to make mount point locations configurable. The similar thing is done for repository triplets, and in the case of partitions it would be good to have pairs like (partition name
, mount point path
), e.g. (rootfs.img
, /
).
from combirepo.
Good idea. I'd like to implement it later. Just for now I prepared a small fix #8
from combirepo.
Prepared patch to get images and mount points from kickstart file
#10
from combirepo.
Related Issues (3)
- Skip rpmrebuild HOT 5
- Versions conflict HOT 6
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 combirepo.