From 7bb2006007c1996f33758e41db070252d4d3607f Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 4 May 2019 00:10:26 +0000 Subject: Make a lean and mean version, as a basis for filling an initramfs --- sub/disk-image/make-disk-image | 105 ----------------------------------------- 1 file changed, 105 deletions(-) delete mode 100755 sub/disk-image/make-disk-image (limited to 'sub/disk-image/make-disk-image') diff --git a/sub/disk-image/make-disk-image b/sub/disk-image/make-disk-image deleted file mode 100755 index a7a2f97..0000000 --- a/sub/disk-image/make-disk-image +++ /dev/null @@ -1,105 +0,0 @@ -#!/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 <