eltan.in.net

Glacies Manual Installation

Download

In order to install glacies you will need to download the glacies build script:

$ git clone https://git.eltan.in.net/glacies

Build

Enter the glacies directory, mount your devices properly at “workdir/mnt”, edit the file “config.rc” to your needs, and execute the build script:

$ cd glacies
# mount /dev/sdX workdir/mnt
$ vi config.rc
$ ./build.rc

Install Bootloader

The build script does not install the bootloader, so you are free to install any. The following variables are going to be used inside the example scripts:

Install Syslinux

# mkdir $ROOTDIR/boot/syslinux
# extlinux --install $ROOTDIR/boot/syslinux
# dd if=/usr/lib/syslinux/bios/mbr.bin of=/dev/$DRIVE bs=440
# cat <<EOF > $ROOTDIR/boot/syslinux/syslinux.cfg
PROMPT 1
TIMEOUT 50
DEFAULT glacies

LABEL glacies
    LINUX ../vmlinuz-$version
    APPEND root=/dev/$ROOTPART rootfstype=$ROOTTYPE quiet
    INITRD ../initramfs-$version
EOF

Install Grub

# grub-install --target=i386-pc --boot-directory="$ROOTDIR/boot" /dev/$DRIVE
# cat <<EOF > $ROOTDIR/boot/grub/grub.cfg
set root='(hdX,msdosX)'
linux /vmlinuz-$version root=/dev/$ROOTPART rootfstype=$ROOTTYPE quiet
initrd /initramfs-$version
boot
EOF

Boot