Skip to content

HOWTO Write config files to IGEL OSC ISO file from Linux

KB: Rolling out Initial Settings with IGEL OSC



Determine mount point in ISO image

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
fdisk -l osc<version>.iso

Disk osc<version>.iso: 2.6 GiB, 2726674432 bytes, 5325536 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x74f4d8a3

Device              Boot Start     End Sectors  Size Id Type
osc<version>.iso1 *        0   5325535 5325536  2.6G  0 Empty
osc<version>.iso2        300    102699  102400   50M ef EFI (FAT-12/16/32)

Note: iso2 start is 300 and will be used with sector size of 512 as the offset in the mount command in next step.

Mount iso2 file system

iso2 is the second partition and is writeable.

1
2
mkdir /tmp/osc-data
mount -o loop,offset=$((300*512)) osc<version>.iso /tmp/osc-data

Create initial-settings directory and copy files and directories

Create initial-settings directory and copy files that will go into /wfs (such as setup.init, .ovpn files, ca-certs, etc.)

1
2
3
4
5
6
mkdir -p /tmp/osc-data/initial-settings/ca-certs
mkdir -p /tmp/osc-data/initial-settings/wfs-templates
cp setup.ini /tmp/osc-data/initial-settings/wfs-templates
cp 782DAFC836185589DD6212375DC33C22.lic D5F47E9338C3A46A0D0F785B9F6A6926.lic /tmp/osc-data/initial-settings/
cp SSL+VPN+CA.crt /tmp/osc-data/initial-settings/ca-certs/
cp wallpaper.jpg /tmp/osc-data/initial-settings/wfs-templates
- Add the following file to skip first boot wizard to prevent the dialog from opening and user will be on the empty IGEL desktop screen.

1
2
mkdir -p /tmp/osc-data/initial-settings/wfs-templates/user
touch /tmp/osc-data/initial-settings/wfs-templates/user/.igel_firstboot_wizard_done

Unmount file system

1
umount /tmp/osc-data

Create bootable USB of OSC ISO

1
dd if=osc<version>.iso of=<USB device> bs=4M status=progress  

Where to get setup.ini file

There are two options:

  • Copy the local setup.ini file from IGEL endpoint (/wfs/setup.ini)
  • If using UMS to deploy config file to the IGEL endpoint, then copy the group.ini (wfs/group.ini) file from the IGEL endpoint and rename it to setup.ini