From 726dcc53873cad469b9c2184f30ed1234631cf58 Mon Sep 17 00:00:00 2001 From: Paolo Asperti Date: Tue, 31 Mar 2020 22:50:25 +0200 Subject: [PATCH] wip --- README.md | 14 ++++++++++---- packages.list | 1 + root/libreschool/comps.xml | 1 + 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4237844..2c4454d 100644 --- a/README.md +++ b/README.md @@ -7,12 +7,14 @@ This tool automates the generation of LibreSchool iso ## how to locally create your ISO file First, download the build container: -``` + +```bash docker pull registry.libreschool.org/libreschool-automation/libreschool-iso-builder:latest ``` Then start it with these parameters: -``` + +```bash docker run --rm \ -v "$PWD:/drone/src" \ -w "/drone/src" \ @@ -20,7 +22,8 @@ docker run --rm \ ``` If you want to skip the download of the source ISO, you can provide an already downloaded one: -``` + +```bash docker run --rm \ -v "$PWD:/drone/src" \ -v "$HOME/Downloads/nethserver-7.6.1810-x86_64.iso:/source.iso:ro" \ @@ -29,17 +32,20 @@ docker run --rm \ ``` ## Components + This ISO creation script has 3 main components: + - the *anaconda* folder: this stores all the customizations for the installer, basically only images; - the *root* folder: this contains all the custom files that are applied over the NethServer source ISO; - the *packages.list* file: this contains all the URLs of the packages required for this customization; ## How to modify the ISO + The isolinux background image (the one that's displayed when booted from DVD or non-UEFI USB) is stored in root/isolinux/splash.jpg. The other images (used in the installer) are in anaconda/usr/share/anaconda/pixmaps. To add a package, you have to include the URL in the *package.list* file, then you have to tell the installer to use it: in the kickstart files (the ones in the /ks folder of the ISO), in the "%packages" section, we specify the packages and the package groups that are going to be installed; if you think that the package is needed in a specific installation type, then modify the kickstart file. Otherwise, if the package should be installed in all installation types, you have to modify the package-group: edit root/libreschool/comps.xml and add the package name here; the "libreschool-iso" package group is always installed. -## TODO: +## TODO - [ ] FIX images - [x] package group diff --git a/packages.list b/packages.list index 70a73a8..24ff1ab 100644 --- a/packages.list +++ b/packages.list @@ -15,6 +15,7 @@ libcom_err libreschool-adminusers libreschool-client-manager libreschool-pxeserver +libreschool-proxy libreschool-release libreschool-startpage libss diff --git a/root/libreschool/comps.xml b/root/libreschool/comps.xml index 3845295..a0dce17 100644 --- a/root/libreschool/comps.xml +++ b/root/libreschool/comps.xml @@ -27,6 +27,7 @@ libreschool-client-manager libreschool-adminusers libreschool-pxeserver + libreschool-proxy nethserver-usercsvimport