From b094fe3f2f43fb1019d1e32460ff24356ae56a97 Mon Sep 17 00:00:00 2001 From: Conrad Pankoff Date: Sun, 2 Jun 2019 19:27:04 +1000 Subject: [PATCH] Kernel: Add DISK_SIZE option to sync.sh --- Kernel/sync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/sync.sh b/Kernel/sync.sh index aec31d0c90..e918d102ce 100755 --- a/Kernel/sync.sh +++ b/Kernel/sync.sh @@ -14,7 +14,7 @@ fi echo "setting up disk image..." if [ ! -f _disk_image ]; then echo "not found; creating a new one" - dd if=/dev/zero of=_disk_image bs=1M count=100 || die "couldn't create disk image" + dd if=/dev/zero of=_disk_image bs=1M count=${DISK_SIZE:-500} || die "couldn't create disk image" parted -s _disk_image mklabel msdos mkpart primary ext2 32k 100% -a minimal set 1 boot on || die "couldn't partition disk image" chown 1000:1000 _disk_image || die "couldn't adjust permissions on disk image" else