Skip to content

Commit

Permalink
os_list: add checksums for PINN
Browse files Browse the repository at this point in the history
  • Loading branch information
XECDesign committed Jun 7, 2019
1 parent 0308e92 commit d7aa47e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions export-noobs/00-release/00-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"

Expand All @@ -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}|"

Expand Down
6 changes: 4 additions & 2 deletions export-noobs/00-release/files/partitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@
"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",
"label": "root",
"mkfs_options": "-O ^huge_file",
"partition_size_nominal": ROOT_NOM,
"uncompressed_tarball_size": ROOT_SIZE,
"want_maximised": true
"want_maximised": true,
"sha256sum": "ROOT_SHASUM"
}
]
}

0 comments on commit d7aa47e

Please sign in to comment.