From 0ad779c66a7d006e07e6e066acb617e05165d083 Mon Sep 17 00:00:00 2001 From: Tomas M Date: Sun, 2 Sep 2012 19:20:17 -0500 Subject: [PATCH] initramfs initial empty script --- .config | 5 ++++- build | 13 ++++++++++++- initramfs/initramfs_create | 1 + 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100755 initramfs/initramfs_create diff --git a/.config b/.config index 618cbc7..3808f80 100644 --- a/.config +++ b/.config @@ -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 / diff --git a/build b/build index 1ae0a48..8fc04b7 100755 --- a/build +++ b/build @@ -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 + + + + + + diff --git a/initramfs/initramfs_create b/initramfs/initramfs_create new file mode 100755 index 0000000..a9bf588 --- /dev/null +++ b/initramfs/initramfs_create @@ -0,0 +1 @@ +#!/bin/bash