[scripts] generate sha256 checksum instead of md5, genkernel busybox has sha256sum
This commit is contained in:
parent
e6b8663e99
commit
a3c8df8783
@ -113,4 +113,4 @@ cp "${arm_images_dir}/${beaglebone_image}.md5" "${arm_card_dir}"/ || exit 1
|
|||||||
cp "${arm_card_boot_dir}/README.txt" "${arm_card_dir}"/ || exit 1
|
cp "${arm_card_boot_dir}/README.txt" "${arm_card_dir}"/ || exit 1
|
||||||
|
|
||||||
# Generate livecd.squashfs.md5
|
# Generate livecd.squashfs.md5
|
||||||
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_md5.sh
|
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_hash.sh
|
||||||
|
@ -62,6 +62,6 @@ isolinux_img = os.path.join(chroot_dir, "usr/share/backgrounds/isolinux/back.jpg
|
|||||||
if os.path.isfile(isolinux_img):
|
if os.path.isfile(isolinux_img):
|
||||||
shutil.copy2(isolinux_img, os.path.join(cdroot_dir, "isolinux/back.jpg"))
|
shutil.copy2(isolinux_img, os.path.join(cdroot_dir, "isolinux/back.jpg"))
|
||||||
|
|
||||||
iso_md5_script = os.path.join(sabayon_molecule_home, "scripts/pre_iso_script_livecd_md5.sh")
|
iso_md5_script = os.path.join(sabayon_molecule_home, "scripts/pre_iso_script_livecd_hash.sh")
|
||||||
exit_st = subprocess.call([iso_md5_script])
|
exit_st = subprocess.call([iso_md5_script])
|
||||||
raise SystemExit(exit_st)
|
raise SystemExit(exit_st)
|
||||||
|
@ -64,4 +64,4 @@ if [ -f "${isolinux_img}" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Generate livecd.squashfs.md5
|
# Generate livecd.squashfs.md5
|
||||||
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_md5.sh
|
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_hash.sh
|
||||||
|
@ -10,4 +10,4 @@ cp "${GFORENSIC_DIR}"/isolinux/back.jpg "${CDROOT_DIR}/isolinux/back.jpg"
|
|||||||
cp "${GFORENSIC_DIR}"/isolinux/isolinux.txt "${CDROOT_DIR}/isolinux/isolinux.txt"
|
cp "${GFORENSIC_DIR}"/isolinux/isolinux.txt "${CDROOT_DIR}/isolinux/isolinux.txt"
|
||||||
|
|
||||||
# Generate livecd.squashfs.md5
|
# Generate livecd.squashfs.md5
|
||||||
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_md5.sh
|
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_hash.sh
|
||||||
|
@ -4,12 +4,12 @@ LIVECD_SQUASHFS="${CDROOT_DIR}/livecd.squashfs"
|
|||||||
|
|
||||||
if [ -f "${LIVECD_SQUASHFS}" ]; then
|
if [ -f "${LIVECD_SQUASHFS}" ]; then
|
||||||
echo
|
echo
|
||||||
echo "Generating md5 of ${LIVECD_SQUASHFS}..."
|
echo "Generating SHA256 of ${LIVECD_SQUASHFS}..."
|
||||||
echo
|
echo
|
||||||
(
|
(
|
||||||
squash_dir=$(dirname "${LIVECD_SQUASHFS}")
|
squash_dir=$(dirname "${LIVECD_SQUASHFS}")
|
||||||
squash_name=$(basename "${LIVECD_SQUASHFS}")
|
squash_name=$(basename "${LIVECD_SQUASHFS}")
|
||||||
cd "${squash_dir}" && \
|
cd "${squash_dir}" && \
|
||||||
md5sum "${squash_name}" > "${squash_name}.md5"
|
sha256sum "${squash_name}" > "${squash_name}.sha256"
|
||||||
)
|
)
|
||||||
fi
|
fi
|
@ -10,4 +10,4 @@ cp "${GFORENSIC_DIR}"/isolinux/back.jpg "${CDROOT_DIR}/isolinux/back.jpg"
|
|||||||
cp "${GFORENSIC_DIR}"/isolinux/isolinux.txt "${CDROOT_DIR}/isolinux/isolinux.txt"
|
cp "${GFORENSIC_DIR}"/isolinux/isolinux.txt "${CDROOT_DIR}/isolinux/isolinux.txt"
|
||||||
|
|
||||||
# Generate livecd.squashfs.md5
|
# Generate livecd.squashfs.md5
|
||||||
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_md5.sh
|
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_hash.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user