Code Monkey home page Code Monkey logo

Comments (5)

ilya-palachev avatar ilya-palachev commented on July 18, 2024

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.

a-lyupa avatar a-lyupa commented on July 18, 2024

Ok, thanks!
Currently swap partition was added to rootfs, system-data, user triplet.

from combirepo.

ilya-palachev avatar ilya-palachev commented on July 18, 2024

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.

a-lyupa avatar a-lyupa commented on July 18, 2024

Good idea. I'd like to implement it later. Just for now I prepared a small fix #8

from combirepo.

a-lyupa avatar a-lyupa commented on July 18, 2024

Prepared patch to get images and mount points from kickstart file
#10

from combirepo.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.