[scripts] generate livecd.squashfs.md5 file
This commit is contained in:
parent
7886ae8ce3
commit
e6b8663e99
@ -111,3 +111,6 @@ mkdir "${arm_card_dir}" -p || exit 1
|
|||||||
cp "${arm_images_dir}/${beaglebone_image}" "${arm_card_dir}"/ || exit 1
|
cp "${arm_images_dir}/${beaglebone_image}" "${arm_card_dir}"/ || exit 1
|
||||||
cp "${arm_images_dir}/${beaglebone_image}.md5" "${arm_card_dir}"/ || exit 1
|
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
|
||||||
|
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_md5.sh
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
import os, shutil, time
|
import os, shutil, time
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
sabayon_molecule_home = os.getenv("SABAYON_MOLECULE_HOME", "/sabayon")
|
||||||
source_chroot_dir = os.getenv('SOURCE_CHROOT_DIR')
|
source_chroot_dir = os.getenv('SOURCE_CHROOT_DIR')
|
||||||
chroot_dir = os.getenv('CHROOT_DIR')
|
chroot_dir = os.getenv('CHROOT_DIR')
|
||||||
cdroot_dir = os.getenv('CDROOT_DIR')
|
cdroot_dir = os.getenv('CDROOT_DIR')
|
||||||
@ -60,3 +61,7 @@ if os.path.isfile(sabayon_pkgs_file):
|
|||||||
isolinux_img = os.path.join(chroot_dir, "usr/share/backgrounds/isolinux/back.jpg")
|
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")
|
||||||
|
exit_st = subprocess.call([iso_md5_script])
|
||||||
|
raise SystemExit(exit_st)
|
||||||
|
@ -62,3 +62,6 @@ isolinux_img="${CHROOT_DIR}/usr/share/backgrounds/isolinux/back.jpg"
|
|||||||
if [ -f "${isolinux_img}" ]; then
|
if [ -f "${isolinux_img}" ]; then
|
||||||
cp "${isolinux_img}" "${CDROOT_DIR}/isolinux/" || exit 1
|
cp "${isolinux_img}" "${CDROOT_DIR}/isolinux/" || exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Generate livecd.squashfs.md5
|
||||||
|
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_md5.sh
|
||||||
|
@ -8,3 +8,6 @@ GFORENSIC_DIR="${SABAYON_MOLECULE_HOME}/remaster/gforensic"
|
|||||||
cp "${GFORENSIC_DIR}"/isolinux/isolinux.cfg "${CDROOT_DIR}/isolinux/txt.cfg"
|
cp "${GFORENSIC_DIR}"/isolinux/isolinux.cfg "${CDROOT_DIR}/isolinux/txt.cfg"
|
||||||
cp "${GFORENSIC_DIR}"/isolinux/back.jpg "${CDROOT_DIR}/isolinux/back.jpg"
|
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
|
||||||
|
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_md5.sh
|
||||||
|
15
scripts/pre_iso_script_livecd_md5.sh
Executable file
15
scripts/pre_iso_script_livecd_md5.sh
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
LIVECD_SQUASHFS="${CDROOT_DIR}/livecd.squashfs"
|
||||||
|
|
||||||
|
if [ -f "${LIVECD_SQUASHFS}" ]; then
|
||||||
|
echo
|
||||||
|
echo "Generating md5 of ${LIVECD_SQUASHFS}..."
|
||||||
|
echo
|
||||||
|
(
|
||||||
|
squash_dir=$(dirname "${LIVECD_SQUASHFS}")
|
||||||
|
squash_name=$(basename "${LIVECD_SQUASHFS}")
|
||||||
|
cd "${squash_dir}" && \
|
||||||
|
md5sum "${squash_name}" > "${squash_name}.md5"
|
||||||
|
)
|
||||||
|
fi
|
@ -8,3 +8,6 @@ GFORENSIC_DIR="${SABAYON_MOLECULE_HOME}/remaster/gforensic"
|
|||||||
cp "${GFORENSIC_DIR}"/isolinux/isolinux.cfg "${CDROOT_DIR}/isolinux/txt.cfg"
|
cp "${GFORENSIC_DIR}"/isolinux/isolinux.cfg "${CDROOT_DIR}/isolinux/txt.cfg"
|
||||||
cp "${GFORENSIC_DIR}"/isolinux/back.jpg "${CDROOT_DIR}/isolinux/back.jpg"
|
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
|
||||||
|
"${SABAYON_MOLECULE_HOME}"/scripts/pre_iso_script_livecd_md5.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user