initramfs initial empty script

This commit is contained in:
Tomas M
2012-09-02 19:20:17 -05:00
parent 6ecfcb9d5f
commit 0ad779c66a
3 changed files with 17 additions and 2 deletions
+12 -1
View File
@@ -13,9 +13,20 @@ cd $CHANGEDIR
# only root can continue, because only root can read all files from your system
allow_only_root
# find necessary tools (mksquashfs, namely)
# check for mksquashfs with xz compression
if [ "$(mksquashfs 2>&1 | grep "Xdict-size")" = "" ]; then
echo "mksquashfs not found or doesn't support -comp xz, aborting, no changes made"
exit 1
fi
# build initramfs image
# create compressed bundles