You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
120 lines
3.4 KiB
120 lines
3.4 KiB
#!/bin/bash
|
|
# This is a config file for MiniOS-Live build script and Linux Live Kit boot script.
|
|
# You shouldn't need to change anything expect PACKAGE_VARIANT OUTPUT COMP_TYPE
|
|
|
|
# Live Kit Name. Defaults to 'minios';
|
|
# This will be the name of the directory created on your CD/USB, which
|
|
# will contain everything including boot files and such.
|
|
# For example, Slax changes it to 'slax'
|
|
# Must not contain any spaces.
|
|
# If you change it, you must run ./tools/isolinux.bin.update script
|
|
# in order to update isolinux.bin for CD booting.
|
|
# If you do not need booting from CD (eg you're booting only from USB)
|
|
# then you can ignore recompiling isolinux.bin, just rename LIVEKITNAME
|
|
# and you're done.
|
|
LIVEKITNAME="minios"
|
|
|
|
#
|
|
DISTRIBUTION_TYPE="debian"
|
|
|
|
#
|
|
DISTRIBUTION="bullseye"
|
|
|
|
#
|
|
DISTRIBUTION_ARCH="amd64"
|
|
|
|
# Used when building Ubuntu
|
|
DISTRIBUTION_VARIANT="minbase"
|
|
|
|
#
|
|
DISTRIBUTION_URL="http://ftp.ru.debian.org/debian/"
|
|
|
|
#
|
|
PACKAGE_VARIANT="minimal"
|
|
|
|
#
|
|
LOGPATH="/var/log"
|
|
|
|
# default is output to log. you can use OUTPUT="/dev/stdout" if you want to route events to standard output.
|
|
#OUTPUT="$LOGPATH/$LIVEKITNAME.log"
|
|
OUTPUT="/dev/stdout"
|
|
#OUTPUT="/dev/null"
|
|
|
|
# if = "1", creates a second iso with a constant filename
|
|
# если ="1", создаёт второй iso с постоянным именем файла
|
|
BUILD_TEST_ISO="1"
|
|
|
|
# удаляет старые файлы iso для данного типа сборки
|
|
REMOVE_OLD_ISO="0"
|
|
|
|
# if = "1", creates a copy of minios-live in chroot /opt
|
|
# если ="1", создаёт копию minios-live в chroot /opt
|
|
DEV_SYSTEM="0"
|
|
|
|
# if ="1", creates backup in parent folder
|
|
# если ="1", создаёт резервную копию в родительской папке
|
|
CREATE_BACKUP="0"
|
|
|
|
DEBIAN_FRONTEND_TYPE="noninteractive"
|
|
#DEBIAN_FRONTEND_TYPE="dialog"
|
|
#DEBIAN_FRONTEND_TYPE="text"
|
|
|
|
APT_CMD="apt-get"
|
|
|
|
APT_OPTIONS="-y"
|
|
APT_OPTIONS2="--no-install-recommends"
|
|
|
|
#LIVE_TYPE="casper"
|
|
LIVE_TYPE="livekit"
|
|
|
|
#BOOT_TYPE="minios"
|
|
BOOT_TYPE="slax"
|
|
|
|
UNION_BUILD_TYPE="overlayfs"
|
|
#UNION_BUILD_TYPE="aufs"
|
|
|
|
INSTALL_OPTIONAL="1"
|
|
|
|
# Used when assigned to the ISO name when building Minios-Live
|
|
SYSTEMNAME="MiniOS"
|
|
|
|
#
|
|
SYSTEMVER="2021"
|
|
|
|
#
|
|
COMP_TYPE="xz"
|
|
|
|
# Kernel file, will be copied to your Live Kit
|
|
# Your kernel must support aufs and squashfs. Debian Jessie's kernel is ready
|
|
# out of the box.
|
|
VMLINUZ="/vmlinuz"
|
|
|
|
# Kernel version. Change it to "3.2.28" for example, if you are building
|
|
# Live Kit with a different kernel than the one you are actually running
|
|
if [ -f /usr/bin/dpkg-query ] 2>/dev/null; then
|
|
KERNEL=$(dpkg-query -W -f='${binary:Package}\n' linux-image-* | head -n 1 | sed 's/linux-image-//')
|
|
else
|
|
KERNEL=$(uname -r)
|
|
fi
|
|
|
|
# List of directories for root filesystem
|
|
# No subdirectories are allowed, no slashes,
|
|
# so You can't use /var/tmp here for example
|
|
# Exclude directories like proc sys tmp
|
|
MKMOD="bin etc home lib lib64 opt root sbin srv usr var"
|
|
|
|
# If you require network support in initrd, for example to boot over
|
|
# PXE or to load data using 'from' boot parameter from a http server,
|
|
# you will need network modules included in your initrd.
|
|
# This is disabled by default since most people won't need it.
|
|
# To enable, set to true
|
|
NETWORK=true
|
|
|
|
# Temporary directory to store livekit filesystem
|
|
LIVEKITDATA=/tmp/$LIVEKITNAME-data-$$
|
|
|
|
# Bundle extension, for example 'sb' for .sb extension
|
|
BEXT=sb
|
|
|
|
# Directory with kernel .ko modules, can be different in some distros
|
|
LMK="lib/modules/$KERNEL"
|
|
|