wmirescue/bullseye-amd64/bin/rootfs_mksquashfs

14 lines
239 B
Plaintext
Raw Normal View History

2021-11-10 22:03:21 +01:00
#!/bin/sh
TARGET=$1
DEST=$2
if [ ! -d "${TARGET}" ]; then
echo "Usage: $0 <rootfs_dir> <squashfs_image>"
exit 255
fi
echo "Generating squashfs..."
rm -f ${DEST}
mksquashfs ${TARGET} ${DEST} -comp xz -b 1M -no-exports -noI -Xbcj x86