Code Monkey home page Code Monkey logo

pdk-mediagen's People

Contributors

obbardc avatar

Watchers

 avatar  avatar  avatar

pdk-mediagen's Issues

standardize meta keys

picax meta:

    <mediagen.media>cd</mediagen.media>
    <mediagen.media-label>MyLinux 0.1</mediagen.media-label>
    <mediagen.installer>debian-installer</mediagen.installer>
    <mediagen.arch>i386</mediagen.arch>
    <mediagen.inst-preseed-file>file:mypreseed</mediagen.inst-preseed-file>
    <mediagen.inst-base-url>file:64studio.com/boot/cdrom/</mediagen.inst-base-url>
    <mediagen.inst-cdrom-path>i386</mediagen.inst-cdrom-path>
    <mediagen.inst-udeb-include-list>pcmcia-cs-udeb</mediagen.inst-udeb-include-list>
    <mediagen.repository>hardy:main hardy:main/debian-installer</mediagen.repository>
    <mediagen.source>none</mediagen.source>
    <mediagen.no-order>True</mediagen.no-order>
    <mediagen.no-split>True</mediagen.no-split>

mediagen meta:

    <mediagen.media>img</mediagen.media>
    <mediagen.recipe>raspi</mediagen.recipe>
    <mediagen.debarch>armhf</mediagen.debarch>
    <mediagen.rootsize>1500</mediagen.rootsize>
    <mediagen.bootsize>64</mediagen.bootsize>
    <mediagen.outfile>out.img</mediagen.outfile>

    <mediagen.hostname>pideck</mediagen.hostname>
    <mediagen.root-password>toor</mediagen.root-password>
    <mediagen.preseed-conf>preseed.conf</mediagen.preseed-conf>
    <mediagen.postinst-script>postinst.sh</mediagen.postinst-script>

We should standardize the meta. Originally I didn't standardize it because there was issues with some of names, but this is no longer the case.

/dev, /proc and /sys are not mounted inside the chroot

This command is quite cryptic to the average user and although is nothing to worry about, users don't like seeing errors. This bug should not cause errors in the output.

E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such device)

mounting dev inside the chroot may work... but that could cause its own issues...

$ sudo mount --bind /dev /mnt/dev
$ sudo mount --bind /proc /mnt/proc
$ sudo mount --bind /sys /mnt/sys

Catch errors correctly and clean up system reliably

Sometimes the unmounting does not work when an error occurs half way through the installation.

We need a reliable way of catching an error (e.g debootstrap having the wrong gpg key defined) then cleaning up.

add support for running scripts based on recipe

Most dev boards have certain commands that need to be run at separate times.

e.g sunxi boards need their bootloader writing to the image before the image is mounted.

we should have a recipes directory which stores hook scripts which would be run at various points during the execution.

documentation

We should probably write some documentation on what this repository does and how it works.

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.