1b885b3d24
There's much reason for reuse instead of duplication among the different stage2-based subprofiles. In particular, the rather monolithic driver cleanup script of the ancient is better done in several clear pieces with the final depmod run. Scripts dropping apt/rpm databases will dump pkglist first. A script purging /boot/* will honour live-install if present. Minor inno^Wfixups all over the map too.
14 lines
348 B
Bash
Executable File
14 lines
348 B
Bash
Executable File
#!/bin/sh
|
|
# postprocess isolinux configuration
|
|
# when the image sizes are finally known
|
|
|
|
cd "$WORKDIR"
|
|
|
|
# apply size census while looking for potential squashfs images
|
|
find -maxdepth 1 -type f -size +1M \
|
|
| sed 's,^\./,,' \
|
|
| while read image; do
|
|
size="$[ $(stat -c%s "$image") / 1024 + 1 ]"
|
|
sed -i "s,@${image}_size@,$size," syslinux/*.cfg
|
|
done
|