Browse Source

os_list: add checksums for PINN

pull/295/head
Serge Schneider 2 years ago
parent
commit
d7aa47e418
2 changed files with 10 additions and 2 deletions
  1. +6
    -0
      export-noobs/00-release/00-run.sh
  2. +4
    -2
      export-noobs/00-release/files/partitions.json

+ 6
- 0
export-noobs/00-release/00-run.sh View File

@ -10,6 +10,9 @@ install -v files/release_notes.txt "${NOOBS_DIR}/"
tar -v -c -C files/marketing -f "${NOOBS_DIR}/marketing.tar" .
BOOT_SHASUM="$(sha256sum "${NOOBS_DIR}/boot.tar.xz" | cut -f1 -d' ')"
ROOT_SHASUM="$(sha256sum "${NOOBS_DIR}/root.tar.xz" | cut -f1 -d' ')"
BOOT_SIZE="$(xz --robot -l "${NOOBS_DIR}/boot.tar.xz" | grep totals | cut -f 5)"
ROOT_SIZE="$(xz --robot -l "${NOOBS_DIR}/root.tar.xz" | grep totals | cut -f 5)"
@ -21,6 +24,9 @@ ROOT_NOM="$(( ROOT_SIZE + 400 ))"
mv "${NOOBS_DIR}/OS.png" "${NOOBS_DIR}/${NOOBS_NAME// /_}.png"
sed "${NOOBS_DIR}/partitions.json" -i -e "s|BOOT_SHASUM|${BOOT_SHASUM}|"
sed "${NOOBS_DIR}/partitions.json" -i -e "s|ROOT_SHASUM|${ROOT_SHASUM}|"
sed "${NOOBS_DIR}/partitions.json" -i -e "s|BOOT_SIZE|${BOOT_SIZE}|"
sed "${NOOBS_DIR}/partitions.json" -i -e "s|ROOT_SIZE|${ROOT_SIZE}|"

+ 4
- 2
export-noobs/00-release/files/partitions.json View File

@ -6,7 +6,8 @@
"mkfs_options": "-F 32",
"partition_size_nominal": BOOT_NOM,
"uncompressed_tarball_size": BOOT_SIZE,
"want_maximised": false
"want_maximised": false,
"sha256sum": "BOOT_SHASUM"
},
{
"filesystem_type": "ext4",
@ -14,7 +15,8 @@
"mkfs_options": "-O ^huge_file",
"partition_size_nominal": ROOT_NOM,
"uncompressed_tarball_size": ROOT_SIZE,
"want_maximised": true
"want_maximised": true,
"sha256sum": "ROOT_SHASUM"
}
]
}

Loading…
Cancel
Save