initramfs initial empty script
parent
6ecfcb9d5f
commit
0ad779c66a
5
.config
5
.config
|
|
@ -21,7 +21,10 @@ EXCLUDE="/etc/fstab /etc/mtab"
|
||||||
|
|
||||||
# Temporary directory to store compressed directories
|
# Temporary directory to store compressed directories
|
||||||
# (the whole folder will be erased and recreated during build!)
|
# (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.
|
# 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 /
|
# for example ROOT=/tmp/newdir. You may leave it empty, then it defaults to /
|
||||||
|
|
|
||||||
13
build
13
build
|
|
@ -13,9 +13,20 @@ cd $CHANGEDIR
|
||||||
# only root can continue, because only root can read all files from your system
|
# only root can continue, because only root can read all files from your system
|
||||||
allow_only_root
|
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
|
# build initramfs image
|
||||||
|
|
||||||
|
|
||||||
# create compressed bundles
|
# create compressed bundles
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
#!/bin/bash
|
||||||
Loading…
Reference in New Issue