We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38ce6ab commit a1a10e0Copy full SHA for a1a10e0
tools-image/raw-images.sh
@@ -10,6 +10,7 @@
10
: "${OEM_LABEL:=COS_OEM}"
11
: "${RECOVERY_LABEL:=COS_RECOVERY}"
12
: "${EXTEND:=}"
13
+: "${RECOVERY_SIZE:=2048}"
14
15
DIRECTORY=$1
16
OUT=${2:-disk.raw}
@@ -34,7 +35,8 @@ mv recovery.squashfs /build/root/cOS/recovery.squashfs
34
35
grub2-editenv /build/root/grub_oem_env set "default_menu_entry=Kairos"
36
37
# Create a 2GB filesystem for RECOVERY including the contents for root (grub config and squasfs container)
-truncate -s $((2048*1024*1024)) rootfs.part
38
+# shellcheck disable=SC2004
39
+truncate -s $(($RECOVERY_SIZE*1024*1024)) rootfs.part
40
mkfs.ext2 -L "${RECOVERY_LABEL}" -d /build/root rootfs.part
41
42
# Create the EFI partition FAT16 and include the EFI image and a basic grub.cfg
0 commit comments