## Internals

### Live media files organization

- EFI partition:
	- `/efi/boot/bootx64.efi`, `/efi/boot/grub.cfg`: GRUB image and config files
	- `/linomad/vmlinuz`, `/linomad/initrd.gz`: Kernel and InitRD
- System partition:
	- `/linomad/modules`: SquashFS or directory modules
- System or separated data partition:
	- `/home`
	- `/home/.cfg`: persistent network configuration

### Live system files organisation during execution

- The directory `/live/media` is the live media mount point (CD/DVD/USB/NFS).
- The directory `/live/modules` contains the SquashFS modules mount points.
- The directory `/live/system` is the union of the modules mount points (read-only).
it is used for live system installation.
- The directory `/live/changes` contains the modifications done to the live system (copy on write);


## Conversion of a SquashFS module into a directory

1. Mount the module: `mount -o loop -t squashfs the_module mount_point`.
2. Copy files into an other directory: `cp -dpr mount_point destination_directory`.
3. Umount the module: `umount mount_point`.
