mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
Kernel: Add DISK_SIZE option to sync.sh
This commit is contained in:
parent
6f43f81fb4
commit
b094fe3f2f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue