64studio / pdk-mediagen Goto Github PK
View Code? Open in Web Editor NEWNext-generation media generation for PDK
Next-generation media generation for PDK
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.
Not yet implemented.
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
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.
As yet pdk-mediagen has not produced an image for raspi.
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.
Currently we read the suite name from the repo dir, kind of a bad idea.
It should be a configuration variable: mediagen.debian-suite
this would be great for debug
image should be moved after completion to the file specified in the component meta file.
tmp folder should be removed after completion
We should probably write some documentation on what this repository does and how it works.
We should check the meta file exists in the project before attempting to configure the packages.
Or better yet include snippets of scripts inside the openssh-server meta xml file. Somehow.
I have reported an upstream bug to Debian, hopefully a patch can be created!
Luckily in Debian Stable debootstrap is much older.
Not sure if I have set up the depends field in the package correctly
Currently we duplicate the list of packages which must be installed when building an image.
the package is used in the generated debootstrap for hashed password generation
it's already on the server, why not just use that one?
Haven't tested this yet
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.