diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2018-11-21 16:44:44 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-11-21 16:44:44 +0100 |
commit | d9c979d0bc13c6bd7e5cd6d39ec52427fa22dc40 (patch) | |
tree | 81c6744df3e1680324d5f5aa7dd5a27d759d7ef8 /scripts | |
parent | 77679b9df6b32dfe126ebbcdafb61a68c2f76784 (diff) | |
download | imagefish-d9c979d0bc13c6bd7e5cd6d39ec52427fa22dc40.tar.gz |
add --big
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/tar-to-image.sh | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/scripts/tar-to-image.sh b/scripts/tar-to-image.sh index ae10509..45e2aeb 100755 --- a/scripts/tar-to-image.sh +++ b/scripts/tar-to-image.sh @@ -8,6 +8,10 @@ size="4G" tarb="" mode="efi-grub2" +size_uefi="128" +size_boot="384" +size_swap="512" + ###################################################################### # create work dir @@ -65,6 +69,13 @@ while test "$1" != ""; do qcow="$2" shift; shift ;; + --big) + size="16G" + size_uefi="128" + size_boot="1024" + size_swap="1024" + shift; shift + ;; -s | --size) size="$2" shift; shift @@ -199,14 +210,14 @@ function fish_part_efi_grub2() { local nr_uefi nr_boot nr_swap nr_root if test "$mode" = "bios"; then - fish_partition gpt 4 64 384 512 + fish_partition gpt 4 ${size_uefi} ${size_boot} ${size_swap} fish part-set-gpt-type /dev/sda 1 ${uuid_gpt_bios} nr_uefi=2 nr_boot=3 nr_swap=4 nr_root=5 else - fish_partition gpt 0 64 384 512 + fish_partition gpt 0 ${size_uefi} ${size_boot} ${size_swap} nr_uefi=1 nr_boot=2 nr_swap=3 @@ -319,13 +330,13 @@ function fish_part_efi_systemd() { local nr_uefi nr_swap nr_root if test "$mode" = "bios"; then - fish_partition gpt 4 512 0 512 + fish_partition gpt 4 $(( ${size_uefi} + ${size_boot} )) 0 ${size_swap} fish part-set-gpt-type /dev/sda 1 ${uuid_gpt_bios} nr_uefi=2 nr_swap=3 nr_root=4 else - fish_partition gpt 0 512 0 512 + fish_partition gpt 0 $(( ${size_uefi} + ${size_boot} )) 0 ${size_swap} nr_uefi=1 nr_swap=2 nr_root=3 |