Commit 7699c156 authored by Daniel Schulte's avatar Daniel Schulte
Browse files

More initrd stuff

parent 7d6246e8
......@@ -46,6 +46,7 @@ function install_libnsa()
cp "$SCRIPT_DIR/libnsa/libnsa.desktop" "$IRD/lip/libnsa"
cp "$SCRIPT_DIR/libnsa/libnsa.sh" "$IRD/lip/libnsa"
cp "$SCRIPT_DIR/libnsa/26libnsa" "$IRD/scripts/casper-bottom/"
chmod +x "$IRD/lip/libnsa/libnsa.sh"
chmod +x "$IRD/scripts/casper-bottom/26libnsa"
}
......@@ -53,7 +54,7 @@ function add_no_bootloader_icon()
{
mkdir -p "$IRD/lip/no-bootloader-icon"
cp "$SCRIPT_DIR/no-bootloader-icon/ubiquity-kdeui.desktop" "$IRD/lip/no-bootloader-icon/"
cp "$SCRIPT_DIR/no-bootloader-icon/ubiquity-kdeui-no-bootloader.desktop" "$IRD/lip/no-bootloader-icon/"
# cp "$SCRIPT_DIR/no-bootloader-icon/ubiquity-kdeui-no-bootloader.desktop" "$IRD/lip/no-bootloader-icon/"
cp "$SCRIPT_DIR/no-bootloader-icon/25adduser" "$IRD/scripts/casper-bottom/"
chmod +x "$IRD/scripts/casper-bottom/25adduser"
......@@ -61,7 +62,7 @@ function add_no_bootloader_icon()
mkdir -p "$IRD/lip"
install_nmtelekinese
install_libnsa
#install_libnsa
add_no_bootloader_icon
#copy custom lip hook
......
#!/bin/bash
DUMPDIR="$(mktemp -d --tmp-dir /cdrom/lipstats/ .stats.XXXXXXXXXXXX)"
DUMPDIR="$(mktemp -d --tmpdir /cdrom/lipstats/ .stats.XXXXXXXXXXXX)"
mkdir -p "$DUMPDIR"
......
#!/bin/bash
set -e
WORKDIR="$(pwd)"
function unpack_initrd
{
FILE="$1"
FOLDER="$2"
mkdir -p "$FOLDER/remaster-initrd"
pushd "$FOLDER/remaster-initrd" > /dev/null
lzma -d < "$FILE" | cpio -i
popd > /dev/null
}
function pack_initrd
{
OUTDIR="$1"
INDIR="$2"
if [ ! -d "$INDIR/remaster-initrd" ]; then
echo "Temp directory does not exist. Bug?"
exit 1
fi
pushd "$INDIR/remaster-initrd" > /dev/null
find | cpio -H newc -o | lzma -z > "$OUTDIR/initrd.lz"
popd > /dev/null
}
if [ $# -eq 0 ]; then
echo "Usage: $0 INITRD_FILE PATH_TO_CUSTOMIZE_LIP"
exit 1
fi
INITRD_FILE="$1"
PATH_TO_CUSTOMIZE_LIP="$2"
if [ ! -f "$INITRD_FILE" ]; then
echo "Initrd file '$INITRD_FILE' not found"
exit 1
fi
if [ ! -d "$PATH_TO_CUSTOMIZE_LIP" ]; then
echo "You must specify the path to the customize-lip folder"
exit 1
fi
TMPDIR="$(mktemp -d)"
unpack_initrd "$INITRD_FILE" "$TMPDIR"
pushd "$PATH_TO_CUSTOMIZE_LIP" > /dev/null
. $PATH_TO_CUSTOMIZE_LIP/customize_initrd "$TMPDIR"
popd > /dev/null
pack_initrd "$WORKDIR" "$TMPDIR"
echo "Ok, all done"
exit 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment