initramfs initial empty script

pull/5/head
Tomas M 2012-09-02 19:20:17 -05:00
parent 6ecfcb9d5f
commit 0ad779c66a
3 changed files with 17 additions and 2 deletions

View File

@ -21,7 +21,10 @@ EXCLUDE="/etc/fstab /etc/mtab"
# Temporary directory to store compressed directories
# (the whole folder will be erased and recreated during build!)
CDDATA=/tmp/live_data_$$
TMPDATA=/tmp/live_data_$$
# Bundle extension, for example 'sb' for .sb extension
BEXT=sb
# Change this variable if you installed your distro to some directory.
# for example ROOT=/tmp/newdir. You may leave it empty, then it defaults to /

13
build
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

View File

@ -0,0 +1 @@
#!/bin/bash