## Internals

### Live media files organization

- `/efi/boot/bootx64.efi`, `/efi/boot/grub.cfg` (GRUB image and config files)
- `/linomad/vmlinuz`, `/linomad/initrd.gz` (kernel and InitRD)
- `/linomad/modules` (SquashFS or directory modules)

On USB key, the `bios` directory contains the needed files for BIOS (legacy) 
boot (if enabled).


### 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`.
