initramfs initial empty script
This commit is contained in:
@@ -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,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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
#!/bin/bash
|
||||
Reference in New Issue
Block a user