diff options
| author | Stefan Kreutz <mail@skreutz.com> | 2023-04-16 02:15:48 +0200 | 
|---|---|---|
| committer | Stefan Kreutz <mail@skreutz.com> | 2023-04-16 02:15:48 +0200 | 
| commit | ec1f23dd77fa69cccfc4fbdc24493d2b982774b9 (patch) | |
| tree | 6a67c3d94e6b65f7d0399ffc10a660d6f8278872 | |
| parent | 17fe2a20689e054e93ad86e744375482877ab19f (diff) | |
| download | autoinstall-openbsd-on-qemu-ec1f23dd77fa69cccfc4fbdc24493d2b982774b9.tar | |
Change default disklabel and disk size
Assign remaining free disk space to /home.
| -rwxr-xr-x | autoinstall-openbsd-on-qemu | 21 | 
1 files changed, 11 insertions, 10 deletions
| diff --git a/autoinstall-openbsd-on-qemu b/autoinstall-openbsd-on-qemu index ea6604b..3f3509e 100755 --- a/autoinstall-openbsd-on-qemu +++ b/autoinstall-openbsd-on-qemu @@ -32,7 +32,7 @@ RSYNC_MIRROR="${RSYNC_MIRROR-rsync://mirror.leaseweb.com/openbsd/}"  DISK_FILE="${DISK_FILE-disk.qcow2}"  # Size of the disk image. -DISK_SIZE="${DISK_SIZE-24G}" +DISK_SIZE="${DISK_SIZE-64G}"  # Number of virtual CPUs.  CPU_COUNT="${CPU_COUNT-4}" @@ -121,19 +121,20 @@ EOF  fi  # Create disklabel(8) configuration if not exists. +# Assume disk size of at least 54G.  if [ ! -e mirror/disklabel ]  then    cat << EOF > mirror/disklabel -/            2G +/            1G  swap         8G -/tmp         1G -/var         1G -/usr         2G -/usr/X11R6 500M -/usr/local   4G -/usr/src     1M -/usr/obj     1M -/home        4G +/tmp         4G +/var         4G +/usr         6G +/usr/X11R6   1G +/usr/local   20G +/usr/src     3G +/usr/obj     6G +/home        1G-*  EOF    printf "Created example disklabel(8) template at ./mirror/disklabel.conf\\n"  fi |