#!/bin/sh -e output="$1" rootfs_size="$2" swap_size="$3" rwfs_size="$4" userfs_size="$5" extra_size="$6" totalsize=$(s6-expr ${rootfs_size} + ${swap_size} + ${rwfs_size} + ${userfs_size} + ${extra_size} + 4) # prepare extlinux.conf if s6-test ${KERNEL_GENERIC_ARCH} = x86 ; then consolearg="console=ttyS0,115200n8" if ${USE_GRAPHIC} ; then consolearg= fi if ${USE_VIRTIO_DISK} ; then bootpartition=/dev/vda1 elif s6-test ${KERNEL_ARCH} = x86_64 ; then bootpartition=/dev/sda1 else bootpartition=/dev/hda1 fi s6-cat > ${output}/rootfs/boot/extlinux.conf <