From a777fea1508c7504b9e5d5451f370bf9ed255284 Mon Sep 17 00:00:00 2001 From: Paolo Asperti Date: Sun, 28 Apr 2019 18:06:44 +0200 Subject: [PATCH] package group --- README.md | 13 ++++++++++++- root/ks/interactive | 16 +--------------- root/ks/manual | 16 +--------------- root/ks/unattended | 16 +--------------- root/ks/unattended-it | 16 +--------------- root/libreschool/comps.xml | 29 +++++++++++++++++++++++++++++ 6 files changed, 45 insertions(+), 61 deletions(-) create mode 100644 root/libreschool/comps.xml diff --git a/README.md b/README.md index 68ebdd2..6d915da 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,21 @@ docker run --rm \ registry.libreschool.org/libreschool-automation/libreschool-iso-builder:latest ``` +## 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: - [ ] FIX images -- [ ] package group +- [x] package group - [x] Rename network interface - [ ] Enforce the minimum required network interfaces (anaconda) - [ ] PXE + Preseed (external package) diff --git a/root/ks/interactive b/root/ks/interactive index 3e8ed10..25273b7 100755 --- a/root/ks/interactive +++ b/root/ks/interactive @@ -79,21 +79,7 @@ fi %packages @nethserver-iso @core -nethserver-backup-data -nethserver-backup-config -nethserver-restore-data -nethserver-firewall-base-ui -nethserver-samba -nethserver-samba-audit -nethserver-cockpit -nethserver-avahi -nethserver-cups -nethserver-squid -nethserver-lightsquid -nethserver-squidclamav -nethserver-squidguard -libreschool-release -nethserver-usercsvimport +@libreschool-iso %end repo --name=nethserver --baseurl=file:///run/install/repo/extras diff --git a/root/ks/manual b/root/ks/manual index 6290456..8d614f0 100755 --- a/root/ks/manual +++ b/root/ks/manual @@ -7,21 +7,7 @@ %packages @nethserver-iso @core -nethserver-backup-data -nethserver-backup-config -nethserver-restore-data -nethserver-firewall-base-ui -nethserver-samba -nethserver-samba-audit -nethserver-cockpit -nethserver-avahi -nethserver-cups -nethserver-squid -nethserver-lightsquid -nethserver-squidclamav -nethserver-squidguard -libreschool-release -nethserver-usercsvimport +@libreschool-iso %end repo --name=nethserver --baseurl=file:///run/install/repo/extras diff --git a/root/ks/unattended b/root/ks/unattended index 99747ec..68bcb02 100755 --- a/root/ks/unattended +++ b/root/ks/unattended @@ -92,21 +92,7 @@ fi %packages @nethserver-iso @core -nethserver-backup-data -nethserver-backup-config -nethserver-restore-data -nethserver-firewall-base-ui -nethserver-samba -nethserver-samba-audit -nethserver-cockpit -nethserver-avahi -nethserver-cups -nethserver-squid -nethserver-lightsquid -nethserver-squidclamav -nethserver-squidguard -libreschool-release -nethserver-usercsvimport +@libreschool-iso %end repo --name=nethserver --baseurl=file:///run/install/repo/extras diff --git a/root/ks/unattended-it b/root/ks/unattended-it index 7b6f81b..08450a3 100644 --- a/root/ks/unattended-it +++ b/root/ks/unattended-it @@ -92,22 +92,8 @@ fi %packages @nethserver-iso @core +@libreschool-iso nethserver-lang-it -nethserver-backup-data -nethserver-backup-config -nethserver-restore-data -nethserver-firewall-base-ui -nethserver-samba -nethserver-samba-audit -nethserver-cockpit -nethserver-avahi -nethserver-cups -nethserver-squid -nethserver-lightsquid -nethserver-squidclamav -nethserver-squidguard -libreschool-release -nethserver-usercsvimport %end repo --name=nethserver --baseurl=file:///run/install/repo/extras diff --git a/root/libreschool/comps.xml b/root/libreschool/comps.xml new file mode 100644 index 0000000..f778e7c --- /dev/null +++ b/root/libreschool/comps.xml @@ -0,0 +1,29 @@ + + + + + libreschool-iso + false + false + 1024 + LibreSchool ISO + LibreSchool ISO group + + nethserver-backup-data + nethserver-backup-config + nethserver-restore-data + nethserver-firewall-base-ui + nethserver-samba + nethserver-samba-audit + nethserver-cockpit + nethserver-avahi + nethserver-cups + nethserver-squid + nethserver-lightsquid + nethserver-squidclamav + nethserver-squidguard + libreschool-release + nethserver-usercsvimport + + + \ No newline at end of file