os_list: add checksums for PINN
This commit is contained in:
parent
0308e92705
commit
d7aa47e418
2 changed files with 10 additions and 2 deletions
|
@ -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}|"
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Reference in a new issue