/IGEL-Custom-Partitions

IGEL OS is built on a highly secure Linux distribution. Properly deployed, IGEL OS is locked down to the configurations and applications defined via UMS Profiles. The Custom Partitions feature allows you to implement custom scripts, apps, or other files to one or a group of devices running the IGEL OS.

Primary LanguageShellMIT LicenseMIT

Building IGEL OS Custom Partition


Summary of steps to create custom partitions

Step Description
1. Setup lab environment
2. Download Linux package (<package.deb>)
3. Unpack the package on a Linux Ubuntu (18.04) system (dpkg -x <package.deb> <directory>)
4. Create the initialization script
5. Compress the custom partition contents (tar cvjf <package.tar.bz2> <directory> <init_script.sh>)
6. Write the *.inf Metadata file
7. Upload the files to the UMS
8. Create a UMS profile for the custom partition
9. Assign the profile, check for missing libraries, and test the application

See the following:
IGEL KB Document: Custom Partition Tutorial
How to Install Microsoft Teams in a Custom Partition on IGEL OS - White Paper


Finding and adding missing shared libraries

Find the missing libraries on the IGEL OS.

On IGEL OS:

cd /custom/<folder>
find . -executable -type f -exec ldd ‘{}’ \; | grep ‘not found’ >> /custom/ldd.txt

On Linux Ubuntu:

apt download <filename>
dpkg -x <filename>.deb <folder>

To seach for missing libraries to download: https://packages.ubuntu.com/bionic/allpackages


How-to use a Custom Partition


General

IGEL custom partitions are delivered as a zip archive. The archive has the following content:

Folder Description
igel folder containing UMS profiles
target folder containing Custom Partition (inf and tar.bz2 files)
disclaimer.txt disclaimer note
readme.txt Short Installation guide

Steps to deploy the Custom Partition

Step Description
1. Copy the contents of the folder target into the ums_filetransfer folder on the UMS Server
2. Check the accessibility of the data using Internet browser:
https://<ums_server>:8443/ums_filetransfer/cpname.inf
3. Import the profile (profiles.zip) into the UMS via:
"System->Import->Import Profiles"
The imported profile should now appear in UMS under Profiles.
4. Edit the profile and adopt the settings according to your environment via:
System->Firmware Customization->Custom Partition->Download
a. https://<ums_server>:8443/ums_filetransfer/<cpname>.inf
b. Username: <ums-username>
c. Password: <ums-password>
5. Assign the profile and files to IGEL device(s).
6. In some cases it is required to restart the TC after deployment of the CP.

Build Ubuntu 18.04 Virtual Machine and Snapshots to roll back to baseline

Step Description
1. Install and configure Ubuntu 18.04 desktop
2. Take snapshot of the base VM
3. Setup and package application
4. Roll back to base VM snapshot

Configure Ubuntu 18.04 OS:

sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install build-essential gcc make perl dkms -y
sudo apt install chrony -y
sudo apt install apt-rdepends

IGEL Disclaimer

The provided packages for use with the IGEL OS Custom Partition feature are without any warranty or support by IGEL Technology.

The files are not designed for production usage, use at your own risk. IGEL Technology will not provide any packages for production use and will not create or support any other packages or the implementation for other 3rd party software.

IGEL Technology is not responsible for any license violation created with the custom partition technology or the provided technical demonstation packages.

The custom partition technology can create a permanent damage in the IGEL OS host system, services related to the wrong usage/misinstallation of a custom partition and/or the deployed packages are not covered by the warranty in any kind.

You will not get support as long the custom partition is used on a system, to avoid conflicts you've to reset the device back to factory defaults before opening a support call.

All packages are designed as technical demonstration samples!

Use at your own risk!

Your IGEL Support/PreSales Team April 2012



Revision Summary

Element Version Date Change Owner Description
0.2 09-August-2020 Ron Neher Completed the GitHub automation to take CP files and create package.zip files
0.1 23-July-2020 Ron Neher Initial version


Outstanding Issues

Ref Description
OI.1 NTR

Zip file layout:

disclaimer.txt
profiles/
   profiles.zip (profile.xml, OS_VER.xml)
readme.txt   
target/
   <package>.tar.bz2
   <package>.inf