From 513be653a8730753192a74f47e71296116d19678 Mon Sep 17 00:00:00 2001 From: teldra Date: Fri, 12 Mar 2021 23:00:59 +0100 Subject: [PATCH] small fix --- modules/10-disk/install | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/10-disk/install b/modules/10-disk/install index 283e30d..d53f1a5 100644 --- a/modules/10-disk/install +++ b/modules/10-disk/install @@ -17,7 +17,7 @@ if [[ -n "${cfg[wipe]}" ]]; then echo "Formatting disk" echo "o w - q" | fdisk "${cfg[diskname]}" 2>1 > /dev/null + q" | fdisk "${cfg[diskname]}" > /dev/null fi if [[ "${cfg[fde_key_store]}" == "once" ]]; then @@ -30,7 +30,7 @@ if [[ "${cfg[fde_key_store]}" == "once" ]]; then +${cfg[bootsize]}G a w - q" | fdisk "${cfg[diskname]}" 2>1 > /dev/null + q" | fdisk "${cfg[diskname]}" > /dev/null if [[ "${cfg[rootfssize]}" == "rest" ]]; then target_partition_tmp="${cfg[diskname]}2" echo "create rootfs" @@ -40,7 +40,7 @@ if [[ "${cfg[fde_key_store]}" == "once" ]]; then w - q" | fdisk "${cfg[diskname]}" 2>1 > /dev/null + q" | fdisk "${cfg[diskname]}" > /dev/null elif [[ ! "${cfg[rootfssize]}" == "rest" ]]; then target_partition_tmp="${cfg[diskname]}2" echo "create rootfs with a specific size" @@ -50,7 +50,7 @@ if [[ "${cfg[fde_key_store]}" == "once" ]]; then +${rootfssize}G w - q" | fdisk "${cfg[diskname]}" 2>1 > /dev/null + q" | fdisk "${cfg[diskname]}" > /dev/null fi else if [[ "${cfg[rootfssize]}" == "rest" ]]; then @@ -63,7 +63,7 @@ else a w - q" | fdisk "${cfg[diskname]}" 2>1 > /dev/null + q" | fdisk "${cfg[diskname]}" > /dev/null elif [[ ! "${cfg[rootfssize]}" == "rest" ]]; then target_partition_tmp="${cfg[diskname]}1" echo "create rootfs with a specific size without boot" @@ -74,7 +74,7 @@ else +${rootfssize}G a w - q" | fdisk "${cfg[diskname]}" 2>1 > /dev/null + q" | fdisk "${cfg[diskname]}" > /dev/null fi fi