df1d1f8a6c
The scripts were named the same for syslinux and grub. Because of this, scripts for syslinux were overwritten by grub scripts.
15 lines
364 B
Bash
Executable File
15 lines
364 B
Bash
Executable File
#!/bin/sh
|
|
# postprocess isolinux configuration
|
|
# to add rescue image hash, if any
|
|
# (for propagator in forensic mode)
|
|
|
|
cd "$WORKDIR"
|
|
|
|
grep -qs "@rescue_hash@" syslinux/*.cfg || exit 0
|
|
|
|
find -maxdepth 1 -type f -name rescue \
|
|
| while read image; do
|
|
rescue_hash="$(sha256sum -b "$image" | cut -f1 -d' ')"
|
|
sed -i "s,@rescue_hash@,$rescue_hash," syslinux/*.cfg
|
|
done
|