Skip to content

Commit fb14f71

Browse files
authored
Merge pull request #42 from Itxaka/raw_image_recovery_suze
2 parents 38ce6ab + a1a10e0 commit fb14f71

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools-image/raw-images.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
: "${OEM_LABEL:=COS_OEM}"
1111
: "${RECOVERY_LABEL:=COS_RECOVERY}"
1212
: "${EXTEND:=}"
13+
: "${RECOVERY_SIZE:=2048}"
1314

1415
DIRECTORY=$1
1516
OUT=${2:-disk.raw}
@@ -34,7 +35,8 @@ mv recovery.squashfs /build/root/cOS/recovery.squashfs
3435
grub2-editenv /build/root/grub_oem_env set "default_menu_entry=Kairos"
3536

3637
# Create a 2GB filesystem for RECOVERY including the contents for root (grub config and squasfs container)
37-
truncate -s $((2048*1024*1024)) rootfs.part
38+
# shellcheck disable=SC2004
39+
truncate -s $(($RECOVERY_SIZE*1024*1024)) rootfs.part
3840
mkfs.ext2 -L "${RECOVERY_LABEL}" -d /build/root rootfs.part
3941

4042
# Create the EFI partition FAT16 and include the EFI image and a basic grub.cfg

0 commit comments

Comments
 (0)