/loongson-simple-installer

A Simple Installer for Loongson OS Based on initramfs.

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Simple Debian Installer for Loongson

Welcome

Files

  • conf/installer/main: actual installer script
  • conf/hooks/installer-essentials: initramfs-tools hook to include dependencies of the installer
  • conf/scripts/init-premount/installer: bootstrapper for the installer script

Prerequisites

As root, run

$ apt install whiptail parted squashfs-tools dosfstools gcc

Building installer.img

$ ./build.sh

Building the installation media

The installer expects

  • filesystem.sqfs: the squashfs image to be extracted by the installer.
  • filesystem.md5sum: the md5sum of filesystem.sqfs, checked by the installer before installation.
    • To compute the md5sum, run md5sum filesystem.sqfs > filesystem.md5sum.

to be present in a FAT32 filesystem on the target machine.

Testing with QEMU

$ cd qemu
$ qemu-img create -f qcow2 disk.qcow2 5G
$ # modify boot-installer.sh to suit your needs
$ ./boot-installer.sh