Skip to content
Snippets Groups Projects
Commit 58e94af4 authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

remaster_iso von uck auf lipck portiert

parent c8c36c5e
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
SCRIPT_DIR=`dirname "$0"`
REMASTER_HOME=${1:-~/tmp}
ISO_REMASTER_DIR="$REMASTER_HOME/remaster-iso"
REMASTER_DIR="$REMASTER_HOME/remaster-root"
ISO_DESCRIPTION_PREFIX_FILE="$SCRIPT_DIR/iso_description_prefix"
if [ -e "$SCRIPT_DIR/customize_common" ]; then
source "$SCRIPT_DIR/customize_common"
fi
function create_md5sums()
{
pushd "$REMASTER_DIR"
find . -type f -print0 | sort -z | xargs -0 md5sum > "$REMASTER_HOME/rootfs.md5"
popd
}
function write_iso_description()
{
ISO_ARCH="32Bit"
if [ "$(uname -m)" == "x86_64" ]; then
ISO_ARCH="64Bit"
fi
ISO_PREFIX="LIP ISO"
if [ -e "$ISO_DESCRIPTION_PREFIX_FILE" ]; then
ISO_PREFIX="$(cat $ISO_DESCRIPTION_PREFIX_FILE)"
fi
echo "$ISO_PREFIX $ISO_ARCH" > "$SCRIPT_DIR/iso_description"
}
#create_md5sums
write_iso_description
patch_all "$SCRIPT_DIR/iso-patches/" "$ISO_REMASTER_DIR/"
#!/bin/bash
SCRIPT_DIR="$1"
ISO_REMASTER_DIR="$2"
if [ ! -d "$SCRIPT_DIR" ]; then
echo "Expected lipck base path as first argument!"
exit 1
fi
if [ ! -d "$ISO_REMASTER_DIR" ]; then
echo "Expected target iso or target image root directory as second argument!"
exit 2
fi
if [ -e "$SCRIPT_DIR/scripts/common_functions.sh" ]; then
source "$SCRIPT_DIR/scripts/common_functions.sh"
fi
patch_all "$SCRIPT_DIR/patches/iso/" "$ISO_REMASTER_DIR"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment