people/jschlag/ipfire-3.x-image.git
5 months agoSet the compression level by a cmd argument master
Jonatan Schlag [Sun, 18 Nov 2018 17:31:40 +0000 (17:31 +0000)]
Set the compression level by a cmd argument

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 months agoFix check for available space
Jonatan Schlag [Sun, 18 Nov 2018 17:31:14 +0000 (17:31 +0000)]
Fix check for available space

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 months agoThe cleanup must be after we published all images
Jonatan Schlag [Sun, 18 Nov 2018 17:29:58 +0000 (17:29 +0000)]
The cleanup must be after we published all images

If the cleanup is before we delete our base image ...

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 months agoFix building the network package
Jonatan Schlag [Sun, 18 Nov 2018 17:29:31 +0000 (17:29 +0000)]
Fix building the network package

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 months agoFix image size
Jonatan Schlag [Sun, 18 Nov 2018 17:28:21 +0000 (17:28 +0000)]
Fix image size

Other tool are based on 1024 bytes as base unit so we multiple by 1024
now.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 months agoInstall dev packages by default.
Jonatan Schlag [Sun, 18 Nov 2018 17:27:50 +0000 (17:27 +0000)]
Install dev packages by default.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 months agoRemove not used variable
Jonatan Schlag [Sun, 18 Nov 2018 17:26:52 +0000 (17:26 +0000)]
Remove not used variable

The image typ is not needed anymore. We create an img file and convert
this to what we need.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 months agoFix the function which converts the images
Jonatan Schlag [Sun, 18 Nov 2018 17:26:19 +0000 (17:26 +0000)]
Fix the function which converts the images

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 months agoFix copying the grub config
Jonatan Schlag [Sun, 18 Nov 2018 17:25:44 +0000 (17:25 +0000)]
Fix copying the grub config

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 months agoAdd cmd() function
Jonatan Schlag [Sun, 18 Nov 2018 17:23:41 +0000 (17:23 +0000)]
Add cmd() function

This makes it easier to log what commands are executed.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 months agoAdd constants for TRUE and FALSE
Jonatan Schlag [Sun, 18 Nov 2018 17:22:35 +0000 (17:22 +0000)]
Add constants for TRUE and FALSE

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 months agoDirs are created by mktmep
Jonatan Schlag [Thu, 15 Nov 2018 13:40:06 +0000 (13:40 +0000)]
Dirs are created by mktmep

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 months agoAdd comment
Jonatan Schlag [Thu, 15 Nov 2018 13:39:45 +0000 (13:39 +0000)]
Add comment

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 months agoReduce image size to something minor 8 GB
Jonatan Schlag [Thu, 15 Nov 2018 13:38:38 +0000 (13:38 +0000)]
Reduce image size to something minor 8 GB

The image should now fit into a 8GB flash disk.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 months agoCheck for free space before build
Jonatan Schlag [Thu, 15 Nov 2018 13:37:43 +0000 (13:37 +0000)]
Check for free space before build

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 months agoRefactor cleanup.
Jonatan Schlag [Thu, 15 Nov 2018 13:35:58 +0000 (13:35 +0000)]
Refactor cleanup.

All stuffs now is located inside the working dir so we just need to
delete this dir in the end. Images are copied to the path were they
should be published, so this dir contains nothing useful after build.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 months agoRefactor to script to work in /tmp
Jonatan Schlag [Thu, 15 Nov 2018 13:31:14 +0000 (13:31 +0000)]
Refactor to script to work in /tmp

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
5 months agoInitial checkin
Jonatan Schlag [Mon, 5 Nov 2018 12:38:10 +0000 (12:38 +0000)]
Initial checkin

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>