summaryrefslogtreecommitdiff
path: root/support-a-new-distro.md
blob: 13655d3901d5173ab2c66689bf1c5ef678458da7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Support a new distro

## Global variables

- ``ROOTPATH``: root of a USB stick mountpoint  
- ``KERNELDIR``: the place to install the kernel  
- ``DATADIR``: the place to install other data files, e.g. squashfs, iso files  
- ``ISOMNT``: the mount point that the iso file is mounted to with ``mount_iso``  

## How to support

You can refer to [Arch Linux](distro/arch/). What you need is:

- ``grub.cfg``: write the menuentry for your distro  
- ``install.sh``: a script file describing how to install the LiveCD to USB  
- ``mirrorlist``: where to download the iso file

In ``install.sh``, ``ISOURL`` is the relative path to a mirror that shows the URL of the Live ISO file. You can use ``SHA256``,``SHA1`` or ``MD5`` for iso file checksum. ``install_live`` is the bash function that handles the install of the Live ISO to the USB stick.