package group
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Paolo Asperti 2019-04-28 18:06:44 +02:00
parent 26e94d7e94
commit a777fea150
Signed by: paspo
GPG Key ID: 06D46905D19D5182
6 changed files with 45 additions and 61 deletions

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE comps PUBLIC "-//Red Hat, Inc.//DTD Comps info//EN" "comps.dtd">
<comps>
<group>
<id>libreschool-iso</id>
<default>false</default>
<uservisible>false</uservisible>
<display_order>1024</display_order>
<name>LibreSchool ISO</name>
<description>LibreSchool ISO group</description>
<packagelist>
<packagereq type='mandatory'>nethserver-backup-data</packagereq>
<packagereq type='mandatory'>nethserver-backup-config</packagereq>
<packagereq type='mandatory'>nethserver-restore-data</packagereq>
<packagereq type='mandatory'>nethserver-firewall-base-ui</packagereq>
<packagereq type='mandatory'>nethserver-samba</packagereq>
<packagereq type='mandatory'>nethserver-samba-audit</packagereq>
<packagereq type='mandatory'>nethserver-cockpit</packagereq>
<packagereq type='mandatory'>nethserver-avahi</packagereq>
<packagereq type='mandatory'>nethserver-cups</packagereq>
<packagereq type='mandatory'>nethserver-squid</packagereq>
<packagereq type='mandatory'>nethserver-lightsquid</packagereq>
<packagereq type='mandatory'>nethserver-squidclamav</packagereq>
<packagereq type='mandatory'>nethserver-squidguard</packagereq>
<packagereq type='mandatory'>libreschool-release</packagereq>
<packagereq type='mandatory'>nethserver-usercsvimport</packagereq>
</packagelist>
</group>
</comps>