Simple Debian Installer for Loongson
Files
conf/installer/main
: actual installer scriptconf/hooks/installer-essentials
: initramfs-tools hook to include dependencies of the installerconf/scripts/init-premount/installer
: bootstrapper for the installer script
Prerequisites
As root, run
$ apt install whiptail parted squashfs-tools dosfstools gcc
installer.img
Building $ ./build.sh
Building the installation media
The installer expects
filesystem.sqfs
: the squashfs image to be extracted by the installer.filesystem.md5sum
: the md5sum offilesystem.sqfs
, checked by the installer before installation.- To compute the md5sum, run
md5sum filesystem.sqfs > filesystem.md5sum
.
- To compute the md5sum, run
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