MNT Reform Debian userland creation
-----------------------------------

This script built an userland "filesystem" for MNT Reform 2 laptop computer.
**Work in Progress**: for now there is some dependencies missing for compiling
xservser.

## Usage

```
make_userland -r <recipe> -m <mirror> -o <output> -h
```

 * `recipe`: recipe to apply, see recipe section below, default:`default`
 * `mirroir`: Debian mirror to use, default: `http://ftp.debian.org`
 * `output`: output directory, default: `/tmp`, a directory named with recipe
     name will be createdin this directory.

## Recipe

A recipe is a collection of scripts and attached files  inside a subdirectory 
of `recipes/`. Theses script are executed into a chroot of the destination
directory by `mmdebstrap` and use its hook system.

The default recipe try to reproduce the image created with the reforn image
creator by Lukas (see [here][[l_mnt_image] (minimal image only).

## Docker

You can find a Dockerfile and an entrypoint script to help you create userland
filesystem. This container is created to work on a x86 machine then you need to
run the container with the `-privileged` parameter.

First you need to build the container :

```
git clone https://git.epha.se/ephase/reform_mkuserland
cd reform_mkuserland
docker build -t reform_make_userland
[...]
```

And run it :

```
docker run -v /home/docker/output:/output --rm --privileged reform_make_userland
```

## Licence

This work is derivated from MNT script found [here][l_mnt_image] and licenced
under the GPLv3 Licence

[l_mnt_image]:https://source.mnt.re/reform/reform-system-image/
