Compare commits

...

10 Commits
master ... wip

Author SHA1 Message Date
726dcc5387
wip
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-31 22:50:25 +02:00
c5126e014d
wip
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-25 22:19:56 +01:00
dbdac03c02
added libreschool-adminusers
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-08 21:07:45 +01:00
cdc3115340
wip
All checks were successful
continuous-integration/drone/push Build is passing
2020-03-04 20:46:28 +01:00
388b7569bd
added libreschool-startpage 2020-03-02 15:20:19 +01:00
1fc5804085
upgrade to nethserver 7.7 2020-03-02 11:58:12 +01:00
2c3e2178b0
fix for cockpit not allowing hostname changing 2020-03-02 11:56:31 +01:00
6eb208a4af
fixed package list 2020-03-02 00:53:26 +01:00
7e3d41945f
update gitignore 2020-03-02 00:52:26 +01:00
6e9fee60f7
some branding 2020-03-02 00:48:58 +01:00
16 changed files with 99 additions and 331 deletions

View File

@ -5,21 +5,17 @@ steps:
- name: build - name: build
image: registry.libreschool.org/libreschool-automation/libreschool-iso-builder:latest image: registry.libreschool.org/libreschool-automation/libreschool-iso-builder:latest
settings: settings:
source_iso_url: http://repo.libreschool.org/nethserver/iso/nethserver-7.6.1810-x86_64.iso source_iso_url: http://repo.libreschool.org/nethserver/iso/nethserver-7.7.1908-x86_64.iso
output_iso: libreschool-7.6-x86_64.iso output_iso: libreschool-7.7-x86_64.iso
when: when:
event: [ push, tag ] event: [ push, tag ]
# THAT'S A BAD IDEA
- name: gitea_release - name: gitea_release
image: plugins/gitea-release image: plugins/gitea-release
settings: settings:
files: libreschool-7.6-x86_64.iso note: -<
checksum: Please download the ISO from
- md5 http://repo.libreschool.org/iso/libreschool-7.7-x86_64.iso
- sha1
- sha256
- sha512
api_key: api_key:
from_secret: gitea_token from_secret: gitea_token
base_url: https://git.libreschool.org base_url: https://git.libreschool.org
@ -31,7 +27,7 @@ steps:
- name: repo_upload - name: repo_upload
image: appleboy/drone-scp image: appleboy/drone-scp
settings: settings:
source: libreschool-7.6-x86_64.iso source: libreschool-7.7-x86_64.iso
target: /vhosts/repo.libreschool.org/https/iso target: /vhosts/repo.libreschool.org/https/iso
host: repo.libreschool.org host: repo.libreschool.org
username: username:

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
output.iso *.iso
package_cache/ package_cache/

View File

@ -7,12 +7,14 @@ This tool automates the generation of LibreSchool iso
## how to locally create your ISO file ## how to locally create your ISO file
First, download the build container: First, download the build container:
```
```bash
docker pull registry.libreschool.org/libreschool-automation/libreschool-iso-builder:latest docker pull registry.libreschool.org/libreschool-automation/libreschool-iso-builder:latest
``` ```
Then start it with these parameters: Then start it with these parameters:
```
```bash
docker run --rm \ docker run --rm \
-v "$PWD:/drone/src" \ -v "$PWD:/drone/src" \
-w "/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: If you want to skip the download of the source ISO, you can provide an already downloaded one:
```
```bash
docker run --rm \ docker run --rm \
-v "$PWD:/drone/src" \ -v "$PWD:/drone/src" \
-v "$HOME/Downloads/nethserver-7.6.1810-x86_64.iso:/source.iso:ro" \ -v "$HOME/Downloads/nethserver-7.6.1810-x86_64.iso:/source.iso:ro" \
@ -29,23 +32,26 @@ docker run --rm \
``` ```
## Components ## Components
This ISO creation script has 3 main components: This ISO creation script has 3 main components:
- the *anaconda* folder: this stores all the customizations for the installer, basically only images; - 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 *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; - the *packages.list* file: this contains all the URLs of the packages required for this customization;
## How to modify the ISO ## 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 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. 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. 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 - [ ] FIX images
- [x] package group - [x] package group
- [x] Rename network interface - [x] Rename network interface
- [ ] Enforce the minimum required network interfaces (anaconda) - [ ] Enforce the minimum required network interfaces (anaconda)
- [ ] PXE + Preseed (external package) - [ ] PXE + Preseed (external package)
- [ ] assign wan0 to red on first boot? - [ ] assign wan0 to red on first boot? (/etc/e-smith/events/actions/interface-rename)
- [x] add nethserver packages - [x] add nethserver packages
- [ ] customize Organization contacts? - [ ] customize Organization contacts?

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB

View File

@ -1,216 +1,51 @@
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/a/ansible-2.7.10-1.el7.noarch.rpm audit
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/c/clamav-0.101.2-1.el7.x86_64.rpm audit-libs
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/c/clamav-filesystem-0.101.2-1.el7.noarch.rpm bind-license
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/c/clamav-lib-0.101.2-1.el7.x86_64.rpm device-mapper-multipath
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/c/clamav-server-systemd-0.101.2-1.el7.x86_64.rpm dracut
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/c/clamav-unofficial-sigs-5.6.2-7.el7.noarch.rpm dracut-config-rescue
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/c/clamav-update-0.101.2-1.el7.x86_64.rpm dracut-network
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/c/clamd-0.101.2-1.el7.x86_64.rpm e2fsprogs
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/d/davfs2-1.4.7-6.el7.x86_64.rpm GeoIP
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/d/duplicity-0.7.18.2-1.el7.x86_64.rpm geoipupdate
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/j/jq-1.5-1.el7.x86_64.rpm kpartx
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libmcrypt-2.5.8-13.el7.x86_64.rpm krb5-libs
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/l/librsync-1.0.0-1.el7.x86_64.rpm krb5-workstation
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libtomcrypt-1.17-25.el7.x86_64.rpm libcom_err
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/l/libtommath-0.42.0-5.el7.x86_64.rpm libreschool-adminusers
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/n/ncftp-3.2.5-7.el7.x86_64.rpm libreschool-client-manager
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/o/oniguruma-5.9.5-3.el7.x86_64.rpm libreschool-pxeserver
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/perl-Expect-1.21-14.el7.noarch.rpm libreschool-proxy
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/perl-GDGraph-1.44-15.el7.noarch.rpm libreschool-release
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/perl-GDGraph3d-0.63-23.el7.noarch.rpm libreschool-startpage
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/perl-GDTextUtil-0.86-23.el7.noarch.rpm libss
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/php-mcrypt-5.4.16-7.el7.x86_64.rpm nethserver-antivirus
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/python-fasteners-0.9.0-2.el7.noarch.rpm nethserver-avahi
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/python-GnuPGInterface-0.3.2-11.el7.noarch.rpm nethserver-backup-data
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/python-httplib2-0.9.2-0.1.el7.noarch.rpm nethserver-cockpit
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/python-keyczar-0.71c-2.el7.noarch.rpm nethserver-cups
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/python-lockfile-0.9.1-4.el7.noarch.rpm nethserver-firewall-base-ui
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/python-paramiko-2.1.1-0.10.el7.noarch.rpm nethserver-lang-it
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/python2-boto-2.45.0-3.el7.noarch.rpm nethserver-lightsquid
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/python2-crypto-2.6.1-16.el7.x86_64.rpm nethserver-mysql
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/python2-gflags-2.0-5.el7.noarch.rpm nethserver-openvpn
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/python2-google-api-client-1.6.3-1.el7.noarch.rpm nethserver-restore-data
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/python2-jmespath-0.9.0-1.el7.noarch.rpm nethserver-samba
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/python2-keyring-5.0-4.el7.noarch.rpm nethserver-samba-audit
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/python2-oauth2client-4.0.0-2.el7.noarch.rpm nethserver-squid
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/python2-PyDrive-1.3.1-3.el7.noarch.rpm nethserver-squidclamav
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/python2-rsa-3.4.1-1.el7.noarch.rpm nethserver-subscription
http://download.fedoraproject.org/pub/epel/7/x86_64/Packages/p/python2-uritemplate-3.0.0-1.el7.noarch.rpm nethserver-subscription-ui
http://mirror.centos.org/centos/7/extras/x86_64/Packages/sshpass-1.06-2.el7.x86_64.rpm nethserver-usercsvimport
http://mirror.centos.org/centos/7/os/x86_64/Packages/avahi-0.6.31-19.el7.x86_64.rpm NetworkManager-team
http://mirror.centos.org/centos/7/os/x86_64/Packages/avahi-glib-0.6.31-19.el7.x86_64.rpm NetworkManager-tui
http://mirror.centos.org/centos/7/os/x86_64/Packages/bc-1.06.95-13.el7.x86_64.rpm NetworkManager-wifi
http://mirror.centos.org/centos/7/os/x86_64/Packages/cifs-utils-6.2-10.el7.x86_64.rpm openldap
http://mirror.centos.org/centos/7/os/x86_64/Packages/color-filesystem-1-13.el7.noarch.rpm openldap-clients
http://mirror.centos.org/centos/7/os/x86_64/Packages/colord-1.3.4-1.el7.x86_64.rpm openssh-server
http://mirror.centos.org/centos/7/os/x86_64/Packages/colord-libs-1.3.4-1.el7.x86_64.rpm openssl
http://mirror.centos.org/centos/7/os/x86_64/Packages/compat-libpackagekit-glib2-16-0.8.9-1.el7.x86_64.rpm openssl-libs
http://mirror.centos.org/centos/7/os/x86_64/Packages/cups-1.6.3-35.el7.x86_64.rpm php
http://mirror.centos.org/centos/7/os/x86_64/Packages/cups-client-1.6.3-35.el7.x86_64.rpm php-intl
http://mirror.centos.org/centos/7/os/x86_64/Packages/cups-filesystem-1.6.3-35.el7.noarch.rpm php-xml
http://mirror.centos.org/centos/7/os/x86_64/Packages/cups-filters-1.0.35-22.el7.x86_64.rpm policycoreutils-python
http://mirror.centos.org/centos/7/os/x86_64/Packages/cups-filters-libs-1.0.35-22.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/device-mapper-multipath-0.4.9-123.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/device-mapper-multipath-libs-0.4.9-123.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/dosfstools-3.0.20-10.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/expect-5.45-14.el7_1.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/foomatic-4.0.9-8.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/foomatic-db-4.0-41.20130911.el7.noarch.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/foomatic-db-filesystem-4.0-41.20130911.el7.noarch.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/foomatic-db-ppds-4.0-41.20130911.el7.noarch.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/foomatic-filters-4.0.9-8.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/gd-2.0.35-26.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/gdb-7.6.1-114.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/gdisk-0.8.10-2.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/ghostscript-9.07-31.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/ghostscript-cups-9.07-31.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/ghostscript-fonts-5.50-32.el7.noarch.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/glib-networking-2.56.1-1.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/gnutls-3.3.29-8.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/gsettings-desktop-schemas-3.28.0-2.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/gssproxy-0.7.0-21.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/hpijs-3.15.9-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/hplip-3.15.9-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/hplip-common-3.15.9-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/hplip-libs-3.15.9-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/iscsi-initiator-utils-6.2.0.874-10.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/iscsi-initiator-utils-iscsiuio-6.2.0.874-10.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/jbigkit-libs-2.0-11.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/json-glib-1.4.2-2.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/keyutils-1.5.8-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/lcms2-2.6-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libatasmart-0.19-6.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libblockdev-2.18-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libblockdev-crypto-2.18-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libblockdev-fs-2.18-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libblockdev-loop-2.18-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libblockdev-lvm-2.18-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libblockdev-mdraid-2.18-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libblockdev-part-2.18-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libblockdev-swap-2.18-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libblockdev-utils-2.18-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libbytesize-1.2-1.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libecap-1.0.0-1.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/liberation-fonts-common-1.07.2-16.el7.noarch.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/liberation-mono-fonts-1.07.2-16.el7.noarch.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libevent-2.0.21-4.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libexif-0.6.21-6.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libfontenc-1.1.3-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libgphoto2-2.5.15-1.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libgudev1-219-62.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libgusb-0.2.9-1.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libICE-1.0.9-9.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libieee1284-0.2.11-15.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libjpeg-turbo-1.2.90-6.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libmodman-2.0.1-8.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libproxy-0.4.11-11.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libreport-filesystem-2.1.11-42.el7.centos.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libSM-1.2.2-2.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libtiff-4.0.3-27.el7_3.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libtirpc-0.2.4-0.15.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libtool-ltdl-2.4.2-22.el7_3.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libtool-ltdl-2.4.2-22.el7_3.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libudisks2-2.7.3-8.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libv4l-0.9.5-4.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libverto-tevent-0.2.5-4.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libwebp-0.3.0-7.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libXpm-3.5.12-1.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libXt-1.1.5-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libyaml-0.1.4-11.el7_0.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/lockdev-1.0.4-0.13.20111007git.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/mariadb-5.5.60-1.el7_5.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/mariadb-server-5.5.60-1.el7_5.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/mdadm-4.1-rc1_2.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/mpfr-3.1.1-4.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/neon-0.30.0-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/net-snmp-libs-5.7.2-37.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/nettle-2.7.1-8.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/nfs-utils-1.3.0-0.61.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/openjpeg-libs-1.5.1-18.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/openldap-servers-2.4.44-20.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/PackageKit-1.1.10-1.el7.centos.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/PackageKit-glib-1.1.10-1.el7.centos.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/PackageKit-yum-1.1.10-1.el7.centos.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/pakchois-0.4-10.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/pcre2-10.23-2.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/perl-CGI-3.63-4.el7.noarch.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/perl-DBD-MySQL-4.023-6.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/perl-DBI-1.627-4.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/perl-FCGI-0.74-8.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/perl-GD-2.49-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/perl-IO-Tty-1.10-11.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/perl-List-MoreUtils-0.33-9.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/perl-Net-Daemon-0.48-5.el7.noarch.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/perl-PlRPC-0.2020-14.el7.noarch.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/pexpect-2.3-11.el7.noarch.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/php-mysql-5.4.16-46.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/php-pdo-5.4.16-46.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/poppler-0.26.5-20.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/poppler-data-0.4.6-3.el7.noarch.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/poppler-utils-0.26.5-20.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/pygobject2-2.28.6-11.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/python-babel-0.9.6-8.el7.noarch.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/python-babel-0.9.6-8.el7.noarch.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/python-jinja2-2.7.2-2.el7.noarch.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/python-markupsafe-0.11-10.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/python-pwquality-1.2.3-5.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/python2-pyasn1-modules-0.1.9-7.el7.noarch.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/PyYAML-3.10-11.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/qpdf-libs-5.0.1-3.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/quota-4.01-17.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/quota-nls-4.01-17.el7.noarch.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/rpcbind-0.2.0-47.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/samba-4.8.3-4.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/samba-winbind-4.8.3-4.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/samba-winbind-modules-4.8.3-4.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/sane-backends-libs-1.0.24-12.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/systemd-219-62.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/systemd-libs-219-62.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/systemd-sysv-219-62.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/tcl-8.5.13-8.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/tcp_wrappers-7.6-77.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/trousers-0.3.14-2.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/udisks2-2.7.3-8.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/udisks2-iscsi-2.7.3-8.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/udisks2-lvm2-2.7.3-8.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/urw-fonts-2.4-16.el7.noarch.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/volume_key-libs-0.3.9-8.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/xorg-x11-font-utils-7.5-21.el7.x86_64.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/c-icap-0.5.2-1.ns7.x86_64.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/c-icap-libs-0.5.2-1.ns7.x86_64.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/cockpit-183-1.el7.x86_64.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/cockpit-bridge-183-1.el7.x86_64.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/cockpit-packagekit-183-1.el7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/cockpit-storaged-183-1.el7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/cockpit-system-183-1.el7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/cockpit-ws-183-1.el7.x86_64.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/lightsquid-1.8-18.el7.lux.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/lightsquid-apache-1.8-18.el7.lux.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-antivirus-1.2.1-1.ns7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-avahi-1.1.0-1.ns7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-backup-data-1.4.3-1.ns7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-c-icap-1.1.0-1.ns7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-cockpit-0.1.1-1.ns7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-cups-1.2.1-1.ns7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-directory-3.3.2-1.ns7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-firewall-base-ui-3.5.0-1.ns7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-lang-it-1.2.17-1.ns7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-lightsquid-1.1.2-1.ns7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-mysql-1.1.4-1.ns7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-restore-data-1.2.5-1.ns7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-samba-4.2.0-1.ns7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-samba-audit-1.1.5-1.ns7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-squid-1.7.3-1.ns7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-squidclamav-3.0.0-1.ns7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/nethserver-squidguard-1.8.0-1.ns7.noarch.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/restic-0.9.3-1.ns7.x86_64.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/squid-3.5.20-999.ns7.x86_64.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/squid-migration-script-3.5.20-999.ns7.x86_64.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/squidclamav-6.16-1.ns7.x86_64.rpm
http://mirror.nethserver.org/nethserver/7/base/x86_64/Packages/ufdbGuard-1.33.7-CentOS7.x86_64.rpm
http://repo.libreschool.org/nethserver/6/base/x86_64/Packages/libreschool-release-1.0-1.noarch.rpm
http://repo.libreschool.org/nethserver/6/base/x86_64/Packages/startpage-0.9-3.ns6.noarch.rpm
http://repo.libreschool.org/nethserver/7/base/x86_64/Packages/libreschool-client-manager-1.0-1.ns7.noarch.rpm
http://repo.libreschool.org/nethserver/7/base/x86_64/Packages/libreschool-nfs-1.0-1.ns7.noarch.rpm
http://repo.libreschool.org/nethserver/7/devel/x86_64/Packages/nethserver-usercsvimport-0.2-1.noarch.rpm

View File

@ -6,7 +6,7 @@ timeout 600
display boot.msg display boot.msg
menu background splash.jpg menu background splash.jpg
menu title LibreSchool 7.6 menu title LibreSchool 7
menu vshift 0 menu vshift 0
menu rows 6 menu rows 6
menu helpmsgrow 12 menu helpmsgrow 12
@ -34,7 +34,7 @@ Choose common installation options like keyboard,
time zone, RAID and network. time zone, RAID and network.
endtext endtext
kernel vmlinuz kernel vmlinuz
append initrd=initrd.img inst.stage2=hd:LABEL=nethserver inst.ks=hd:LABEL=nethserver:/ks/interactive inst.nodmraid append initrd=initrd.img inst.stage2=hd:LABEL=nethserver inst.ks=hd:LABEL=nethserver:/ks/interactive inst.nodmraid net.ifnames=0 biosdevname=0
menu begin menu begin
menu title Other LibreSchool installation methods menu title Other LibreSchool installation methods
@ -51,7 +51,7 @@ Fully automated installation with default values:
* DHCP network configuration * DHCP network configuration
endtext endtext
kernel vmlinuz kernel vmlinuz
append initrd=initrd.img inst.stage2=hd:LABEL=nethserver quiet inst.ks=hd:LABEL=nethserver:/ks/unattended inst.nodmraid append initrd=initrd.img inst.stage2=hd:LABEL=nethserver quiet inst.ks=hd:LABEL=nethserver:/ks/unattended inst.nodmraid net.ifnames=0 biosdevname=0
label unattended-it label unattended-it
menu label Unattended installation (Italian) menu label Unattended installation (Italian)
@ -65,7 +65,7 @@ Fully automated installation with default values:
* DHCP network configuration * DHCP network configuration
endtext endtext
kernel vmlinuz kernel vmlinuz
append initrd=initrd.img inst.stage2=hd:LABEL=nethserver quiet inst.ks=hd:LABEL=nethserver:/ks/unattended-it inst.nodmraid append initrd=initrd.img inst.stage2=hd:LABEL=nethserver quiet inst.ks=hd:LABEL=nethserver:/ks/unattended-it inst.nodmraid net.ifnames=0 biosdevname=0
label manual label manual
menu label Manual installation menu label Manual installation
@ -73,7 +73,7 @@ Fully automated installation with default values:
Customize storage and network parameters. Customize storage and network parameters.
endtext endtext
kernel vmlinuz kernel vmlinuz
append initrd=initrd.img inst.stage2=hd:LABEL=nethserver quiet inst.ks=hd:LABEL=nethserver:/ks/manual inst.nodmraid append initrd=initrd.img inst.stage2=hd:LABEL=nethserver quiet inst.ks=hd:LABEL=nethserver:/ks/manual inst.nodmraid net.ifnames=0 biosdevname=0
menu end menu end
@ -119,7 +119,7 @@ Check hardware with the Hardware Detection Tool
kernel hdt.c32 kernel hdt.c32
menu end menu end
menu separtor menu separator
label local label local
menu label Boot from local drive menu label Boot from local drive

View File

@ -60,8 +60,9 @@ fi
# enable dhcp on all network interfaces # enable dhcp on all network interfaces
for net in `find /sys/class/net/ -mindepth 1 ! -name lo | cut -d '/' -f5`; do for net in `find /sys/class/net/ -mindepth 1 ! -name lo | cut -d '/' -f5`; do
echo "network --activate --onboot=yes --bootproto=dhcp --device=$net" --nameserver=8.8.8.8 >>/tmp/network-include echo "network --activate --onboot=yes --bootproto=dhcp --device=$net" >>/tmp/network-include
done done
echo "network --nameserver=8.8.8.8 --hostname=pdc.libre.school" >> /tmp/network-include
# set encrypted fs # set encrypted fs
if [ -z $fspassword ]; then if [ -z $fspassword ]; then
@ -80,6 +81,7 @@ fi
@nethserver-iso @nethserver-iso
@core @core
@libreschool-iso @libreschool-iso
-biosdevname
%end %end
repo --name=nethserver --baseurl=file:///run/install/repo/extras repo --name=nethserver --baseurl=file:///run/install/repo/extras
@ -141,29 +143,8 @@ if [ -f /etc/nethserver-release ]; then
echo -e 'Kernel \\r on an \\m\n' >> /etc/issue echo -e 'Kernel \\r on an \\m\n' >> /etc/issue
echo 'Access the web interface at the following URLs:' >> /etc/issue echo 'Access the web interface at the following URLs:' >> /etc/issue
ip -o -4 addr | tr -s ' /' $'\t' | cut -f 4 | grep -vF 127.0.0.1 | xargs -I IP -- echo https://IP:980 >> /etc/issue ip -o -4 addr | tr -s ' /' $'\t' | cut -f 4 | grep -vF 127.0.0.1 | xargs -I IP -- echo https://IP:980 >> /etc/issue
ip -o -4 addr | tr -s ' /' $'\t' | cut -f 4 | grep -vF 127.0.0.1 | xargs -I IP -- echo https://IP:9090 >> /etc/issue
echo >> /etc/issue echo >> /etc/issue
fi fi
echo "Renaming network interfaces"
TMPFILE=/tmp/9C358C31-BC02-4B63-BAAB-4D82DA0E297C
OUTFILE=/etc/udev/rules.d/70-persistent-net.rules
ip link show | grep 'link/ether' | sed 's/.*ether\ \([0-9a-fA-F:]*\)\ brd.*/\1/' > $TMPFILE
LINES=$(wc -l $TMPFILE)
# TODO: should be at least 2 lines
N=0
while read MAC ; do
if (( N > 1 )) ; then
NUM=$(( N-1 ))
echo "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"${MAC}\", NAME=\"lan${NUM}\"" >> $OUTFILE
fi
if (( N == 1 )) ; then
echo "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"${MAC}\", NAME=\"wan0\"" >> $OUTFILE
fi
if (( N == 0 )) ; then
echo "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"${MAC}\", NAME=\"lan0\"" >> $OUTFILE
fi
N=$(( N + 1 ))
done < $TMPFILE
rm $TMPFILE
%end %end

View File

@ -1,5 +1,12 @@
#platform=x86, AMD64, or Intel EM64T #platform=x86, AMD64, or Intel EM64T
#version=RHEL7 #version=RHEL7
%pre
# enable dhcp on all network interfaces
for net in `find /sys/class/net/ -mindepth 1 ! -name lo | cut -d '/' -f5`; do
echo "network --activate --onboot=yes --bootproto=dhcp --device=$net" >>/tmp/network-include
done
echo "network --nameserver=8.8.8.8 --hostname=pdc.libre.school" >> /tmp/network-include
# #
# Selected packages # Selected packages
@ -8,6 +15,7 @@
@nethserver-iso @nethserver-iso
@core @core
@libreschool-iso @libreschool-iso
-biosdevname
%end %end
repo --name=nethserver --baseurl=file:///run/install/repo/extras repo --name=nethserver --baseurl=file:///run/install/repo/extras
@ -51,29 +59,8 @@ if [ -f /etc/nethserver-release ]; then
echo -e 'Kernel \\r on an \\m\n' >> /etc/issue echo -e 'Kernel \\r on an \\m\n' >> /etc/issue
echo 'Access the web interface at the following URLs:' >> /etc/issue echo 'Access the web interface at the following URLs:' >> /etc/issue
ip -o -4 addr | tr -s ' /' $'\t' | cut -f 4 | grep -vF 127.0.0.1 | xargs -I IP -- echo https://IP:980 >> /etc/issue ip -o -4 addr | tr -s ' /' $'\t' | cut -f 4 | grep -vF 127.0.0.1 | xargs -I IP -- echo https://IP:980 >> /etc/issue
ip -o -4 addr | tr -s ' /' $'\t' | cut -f 4 | grep -vF 127.0.0.1 | xargs -I IP -- echo https://IP:9090 >> /etc/issue
echo >> /etc/issue echo >> /etc/issue
fi fi
echo "Renaming network interfaces"
TMPFILE=/tmp/9C358C31-BC02-4B63-BAAB-4D82DA0E297C
OUTFILE=/etc/udev/rules.d/70-persistent-net.rules
ip link show | grep 'link/ether' | sed 's/.*ether\ \([0-9a-fA-F:]*\)\ brd.*/\1/' > $TMPFILE
LINES=$(wc -l $TMPFILE)
# TODO: should be at least 2 lines
N=0
while read MAC ; do
if (( N > 1 )) ; then
NUM=$(( N-1 ))
echo "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"${MAC}\", NAME=\"lan${NUM}\"" >> $OUTFILE
fi
if (( N == 1 )) ; then
echo "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"${MAC}\", NAME=\"wan0\"" >> $OUTFILE
fi
if (( N == 0 )) ; then
echo "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"${MAC}\", NAME=\"lan0\"" >> $OUTFILE
fi
N=$(( N + 1 ))
done < $TMPFILE
rm $TMPFILE
%end %end

View File

@ -62,7 +62,7 @@ fi
for net in `find /sys/class/net/ -mindepth 1 ! -name lo | cut -d '/' -f5`; do for net in `find /sys/class/net/ -mindepth 1 ! -name lo | cut -d '/' -f5`; do
echo "network --activate --onboot=yes --bootproto=dhcp --device=$net" >>/tmp/network-include echo "network --activate --onboot=yes --bootproto=dhcp --device=$net" >>/tmp/network-include
done done
echo "network --nameserver=8.8.8.8 --hostname=localhost.localdomain" >> /tmp/network-include echo "network --nameserver=8.8.8.8 --hostname=pdc.libre.school" >> /tmp/network-include
# set keyboard # set keyboard
if [ -z $keyboard ]; then if [ -z $keyboard ]; then
@ -93,6 +93,7 @@ fi
@nethserver-iso @nethserver-iso
@core @core
@libreschool-iso @libreschool-iso
-biosdevname
%end %end
repo --name=nethserver --baseurl=file:///run/install/repo/extras repo --name=nethserver --baseurl=file:///run/install/repo/extras
@ -157,29 +158,8 @@ if [ -f /etc/nethserver-release ]; then
echo -e 'Kernel \\r on an \\m\n' >> /etc/issue echo -e 'Kernel \\r on an \\m\n' >> /etc/issue
echo 'Access the web interface at the following URLs:' >> /etc/issue echo 'Access the web interface at the following URLs:' >> /etc/issue
ip -o -4 addr | tr -s ' /' $'\t' | cut -f 4 | grep -vF 127.0.0.1 | xargs -I IP -- echo https://IP:980 >> /etc/issue ip -o -4 addr | tr -s ' /' $'\t' | cut -f 4 | grep -vF 127.0.0.1 | xargs -I IP -- echo https://IP:980 >> /etc/issue
ip -o -4 addr | tr -s ' /' $'\t' | cut -f 4 | grep -vF 127.0.0.1 | xargs -I IP -- echo https://IP:9090 >> /etc/issue
echo >> /etc/issue echo >> /etc/issue
fi fi
echo "Renaming network interfaces"
TMPFILE=/tmp/9C358C31-BC02-4B63-BAAB-4D82DA0E297C
OUTFILE=/etc/udev/rules.d/70-persistent-net.rules
ip link show | grep 'link/ether' | sed 's/.*ether\ \([0-9a-fA-F:]*\)\ brd.*/\1/' > $TMPFILE
LINES=$(wc -l $TMPFILE)
# TODO: should be at least 2 lines
N=0
while read MAC ; do
if (( N > 1 )) ; then
NUM=$(( N-1 ))
echo "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"${MAC}\", NAME=\"lan${NUM}\"" >> $OUTFILE
fi
if (( N == 1 )) ; then
echo "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"${MAC}\", NAME=\"wan0\"" >> $OUTFILE
fi
if (( N == 0 )) ; then
echo "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"${MAC}\", NAME=\"lan0\"" >> $OUTFILE
fi
N=$(( N + 1 ))
done < $TMPFILE
rm $TMPFILE
%end %end

View File

@ -62,7 +62,7 @@ fi
for net in `find /sys/class/net/ -mindepth 1 ! -name lo | cut -d '/' -f5`; do for net in `find /sys/class/net/ -mindepth 1 ! -name lo | cut -d '/' -f5`; do
echo "network --activate --onboot=yes --bootproto=dhcp --device=$net" >>/tmp/network-include echo "network --activate --onboot=yes --bootproto=dhcp --device=$net" >>/tmp/network-include
done done
echo "network --nameserver=8.8.8.8 --hostname=localhost.localdomain" >> /tmp/network-include echo "network --nameserver=8.8.8.8 --hostname=pdc.libre.school" >> /tmp/network-include
# set keyboard # set keyboard
if [ -z $keyboard ]; then if [ -z $keyboard ]; then
@ -94,6 +94,7 @@ fi
@core @core
@libreschool-iso @libreschool-iso
nethserver-lang-it nethserver-lang-it
-biosdevname
%end %end
repo --name=nethserver --baseurl=file:///run/install/repo/extras repo --name=nethserver --baseurl=file:///run/install/repo/extras
@ -109,7 +110,7 @@ rootpw --plaintext LibreSchool,1234
# System keyboard # System keyboard
%include /tmp/keyboard-include %include /tmp/keyboard-include
# System language # System language
lang en_US lang it_IT
# SELinux configuration # SELinux configuration
selinux --permissive selinux --permissive
# Do not configure the X Window System # Do not configure the X Window System
@ -158,29 +159,8 @@ if [ -f /etc/nethserver-release ]; then
echo -e 'Kernel \\r on an \\m\n' >> /etc/issue echo -e 'Kernel \\r on an \\m\n' >> /etc/issue
echo 'Access the web interface at the following URLs:' >> /etc/issue echo 'Access the web interface at the following URLs:' >> /etc/issue
ip -o -4 addr | tr -s ' /' $'\t' | cut -f 4 | grep -vF 127.0.0.1 | xargs -I IP -- echo https://IP:980 >> /etc/issue ip -o -4 addr | tr -s ' /' $'\t' | cut -f 4 | grep -vF 127.0.0.1 | xargs -I IP -- echo https://IP:980 >> /etc/issue
ip -o -4 addr | tr -s ' /' $'\t' | cut -f 4 | grep -vF 127.0.0.1 | xargs -I IP -- echo https://IP:9090 >> /etc/issue
echo >> /etc/issue echo >> /etc/issue
fi fi
echo "Renaming network interfaces"
TMPFILE=/tmp/9C358C31-BC02-4B63-BAAB-4D82DA0E297C
OUTFILE=/etc/udev/rules.d/70-persistent-net.rules
ip link show | grep 'link/ether' | sed 's/.*ether\ \([0-9a-fA-F:]*\)\ brd.*/\1/' > $TMPFILE
LINES=$(wc -l $TMPFILE)
# TODO: should be at least 2 lines
N=0
while read MAC ; do
if (( N > 1 )) ; then
NUM=$(( N-1 ))
echo "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"${MAC}\", NAME=\"lan${NUM}\"" >> $OUTFILE
fi
if (( N == 1 )) ; then
echo "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"${MAC}\", NAME=\"wan0\"" >> $OUTFILE
fi
if (( N == 0 )) ; then
echo "SUBSYSTEM==\"net\", ACTION==\"add\", DRIVERS==\"?*\", ATTR{address}==\"${MAC}\", NAME=\"lan0\"" >> $OUTFILE
fi
N=$(( N + 1 ))
done < $TMPFILE
rm $TMPFILE
%end %end

View File

@ -23,8 +23,11 @@
<packagereq type='mandatory'>nethserver-squidclamav</packagereq> <packagereq type='mandatory'>nethserver-squidclamav</packagereq>
<packagereq type='mandatory'>nethserver-squidguard</packagereq> <packagereq type='mandatory'>nethserver-squidguard</packagereq>
<packagereq type='mandatory'>libreschool-release</packagereq> <packagereq type='mandatory'>libreschool-release</packagereq>
<packagereq type='mandatory'>libreschool-startpage</packagereq>
<packagereq type='mandatory'>libreschool-client-manager</packagereq> <packagereq type='mandatory'>libreschool-client-manager</packagereq>
<packagereq type='mandatory'>libreschool-nfs</packagereq> <packagereq type='mandatory'>libreschool-adminusers</packagereq>
<packagereq type='mandatory'>libreschool-pxeserver</packagereq>
<packagereq type='mandatory'>libreschool-proxy</packagereq>
<packagereq type='mandatory'>nethserver-usercsvimport</packagereq> <packagereq type='mandatory'>nethserver-usercsvimport</packagereq>
</packagelist> </packagelist>
</group> </group>