[scripts] generate sha256 checksum instead of md5, genkernel busybox has sha256sum

This commit is contained in:
Fabio Erculiani 2012-09-03 23:38:54 +02:00
parent e6b8663e99
commit a3c8df8783
6 changed files with 7 additions and 7 deletions

View File

@ -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
# Generate livecd.squashfs.md5
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_md5.sh
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_hash.sh

View File

@ -62,6 +62,6 @@ isolinux_img = os.path.join(chroot_dir, "usr/share/backgrounds/isolinux/back.jpg
if os.path.isfile(isolinux_img):
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])
raise SystemExit(exit_st)

View File

@ -64,4 +64,4 @@ if [ -f "${isolinux_img}" ]; then
fi
# Generate livecd.squashfs.md5
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_md5.sh
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_hash.sh

View File

@ -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"
# Generate livecd.squashfs.md5
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_md5.sh
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_hash.sh

View File

@ -4,12 +4,12 @@ LIVECD_SQUASHFS="${CDROOT_DIR}/livecd.squashfs"
if [ -f "${LIVECD_SQUASHFS}" ]; then
echo
echo "Generating md5 of ${LIVECD_SQUASHFS}..."
echo "Generating SHA256 of ${LIVECD_SQUASHFS}..."
echo
(
squash_dir=$(dirname "${LIVECD_SQUASHFS}")
squash_name=$(basename "${LIVECD_SQUASHFS}")
cd "${squash_dir}" && \
md5sum "${squash_name}" > "${squash_name}.md5"
sha256sum "${squash_name}" > "${squash_name}.sha256"
)
fi

View File

@ -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"
# Generate livecd.squashfs.md5
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_md5.sh
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_hash.sh