...
 
Commits (2)
......@@ -10,19 +10,19 @@ LB_APT_INDICES="true"
# $LB_BOOTAPPEND_LIVE: set boot parameters
# (Default: empty)
LB_BOOTAPPEND_LIVE="boot=live persistence timezone=Europe/Paris config quiet splash lang=fr_FT.UTF-8 locales=fr_FR.UTF-8 keybord-layouts=fr keyboard-variants=latin9 vga=791"
LB_BOOTAPPEND_LIVE="boot=live components hostname=studiobox username=studiobox persistence timezone=Europe/Paris config quiet splash lang=fr_FR.UTF-8 locales=fr_FR.UTF-8 keyboard-layouts=fr keyboard-variants=latin9 keyboard-configuration/xkb-keymap=fr(latin9) vga=791"
# $LB_BOOTAPPEND_INSTALL: set boot parameters
# (Default: empty)
LB_BOOTAPPEND_INSTALL=""
LB_BOOTAPPEND_INSTALL="lang=fr_FR.UTF-8 locales=fr_FR.UTF-8 keyboard-configuration/xkb-keymap=fr(latin9)"
# $LB_BOOTAPPEND_LIVE_FAILSAFE: set boot parameters
# (Default: empty)
LB_BOOTAPPEND_LIVE_FAILSAFE="boot=live components memtest noapic noapm nodma nomce nolapic nomodeset nosmp nosplash vga=normal"
# $LB_BOOTLOADER: set bootloader
# (Default: syslinux)
LB_BOOTLOADER="syslinux"
# $LB_BOOTLOADERS: set bootloaders
# (Default: syslinux,grub-efi)
LB_BOOTLOADERS="syslinux"
# $LB_CHECKSUMS: set checksums
# (Default: md5)
......@@ -63,27 +63,31 @@ LB_GRUB_SPLASH=""
# $LB_HDD_LABEL: set hdd label
# (Default: DEBIAN_LIVE)
LB_HDD_LABEL="StudioBox"
LB_HDD_LABEL="DEBIAN_LIVE"
# $LB_HDD_SIZE: set hdd filesystem size
# (Default: auto)
LB_HDD_SIZE="auto"
# $LB_HDD_PARTITION_START: set start of partition for the hdd target for BIOSes that expect a specific boot partition start (e.g. "63s"). If empty, use optimal layout.
# (Default: )
LB_HDD_PARTITION_START=""
# $LB_ISO_APPLICATION: set iso author
# (Default: Debian Live)
LB_ISO_APPLICATION="Debian Live"
# $LB_ISO_PREPARER: set iso preparer
# (Default: live-build 4.0.3-1; http://live-systems.org/devel/live-build)
LB_ISO_PREPARER="live-build 4.0.3-1; http://live-systems.org/devel/live-build"
# (Default: live-build $VERSION; http://live-systems.org/devel/live-build)
LB_ISO_PREPARER="live-build $VERSION; http://live-systems.org/devel/live-build"
# $LB_ISO_PUBLISHER: set iso publisher
# (Default: Live Systems project; http://live-systems.org/; debian-live@lists.debian.org)
LB_ISO_PUBLISHER="Live Systems project; http://live-systems.org/; debian-live@lists.debian.org"
# $LB_ISO_VOLUME: set iso volume (max 32 chars)
# (Default: Debian stretch 20160409-21:51)
LB_ISO_VOLUME="Debian stretch 20160409-21:51"
# (Default: Debian stretch $(date +%Y%m%d-%H:%M))
LB_ISO_VOLUME="Debian stretch $(date +%Y%m%d-%H:%M)"
# $LB_JFFS2_ERASEBLOCK: set jffs2 eraseblock size
# (Default: unset)
......
......@@ -13,52 +13,52 @@ LB_PARENT_DISTRIBUTION="stretch"
LB_PARENT_DEBIAN_INSTALLER_DISTRIBUTION="stretch"
# $LB_PARENT_MIRROR_BOOTSTRAP: set parent mirror to bootstrap from
# (Default: http://ftp.fr.debian.org/debian/)
LB_PARENT_MIRROR_BOOTSTRAP="http://ftp.fr.debian.org/debian/"
# (Default: http://ftp.debian.org/debian/)
LB_PARENT_MIRROR_BOOTSTRAP="http://ftp.debian.org/debian/"
# $LB_PARENT_MIRROR_CHROOT: set parent mirror to fetch packages from
# (Default: http://ftp.fr.debian.org/debian/)
LB_PARENT_MIRROR_CHROOT="http://ftp.fr.debian.org/debian/"
# (Default: http://ftp.debian.org/debian/)
LB_PARENT_MIRROR_CHROOT="http://ftp.debian.org/debian/"
# $LB_PARENT_MIRROR_CHROOT_SECURITY: set security parent mirror to fetch packages from
# (Default: http://security.debian.org/)
LB_PARENT_MIRROR_CHROOT_SECURITY="http://security.debian.org/"
# $LB_PARENT_MIRROR_BINARY: set parent mirror which ends up in the image
# (Default: http://ftp.fr.debian.org/debian/)
LB_PARENT_MIRROR_BINARY="http://ftp.fr.debian.org/debian/"
# (Default: http://httpredir.debian.org/debian/)
LB_PARENT_MIRROR_BINARY="http://httpredir.debian.org/debian/"
# $LB_PARENT_MIRROR_BINARY_SECURITY: set security parent mirror which ends up in the image
# (Default: http://security.debian.org/)
LB_PARENT_MIRROR_BINARY_SECURITY="http://security.debian.org/"
# $LB_PARENT_MIRROR_DEBIAN_INSTALLER: set debian-installer parent mirror
# (Default: http://ftp.fr.debian.org/debian/)
LB_PARENT_MIRROR_DEBIAN_INSTALLER="http://ftp.fr.debian.org/debian/"
# (Default: http://ftp.debian.org/debian/)
LB_PARENT_MIRROR_DEBIAN_INSTALLER="http://ftp.debian.org/debian/"
# $LB_MIRROR_BOOTSTRAP: set mirror to bootstrap from
# (Default: http://ftp.fr.debian.org/debian/)
LB_MIRROR_BOOTSTRAP="http://ftp.fr.debian.org/debian/"
# (Default: http://ftp.debian.org/debian/)
LB_MIRROR_BOOTSTRAP="http://ftp.debian.org/debian/"
# $LB_MIRROR_CHROOT: set mirror to fetch packages from
# (Default: http://ftp.fr.debian.org/debian/)
LB_MIRROR_CHROOT="http://ftp.fr.debian.org/debian/"
# (Default: http://ftp.debian.org/debian/)
LB_MIRROR_CHROOT="http://ftp.debian.org/debian/"
# $LB_MIRROR_CHROOT_SECURITY: set security mirror to fetch packages from
# (Default: http://security.debian.org/)
LB_MIRROR_CHROOT_SECURITY="http://security.debian.org/"
# $LB_MIRROR_BINARY: set mirror which ends up in the image
# (Default: http://ftp.fr.debian.org/debian/)
LB_MIRROR_BINARY="http://ftp.fr.debian.org/debian/"
# (Default: http://httpredir.debian.org/debian/)
LB_MIRROR_BINARY="http://httpredir.debian.org/debian/"
# $LB_MIRROR_BINARY_SECURITY: set security mirror which ends up in the image
# (Default: http://security.debian.org/)
LB_MIRROR_BINARY_SECURITY="http://security.debian.org/"
# $LB_MIRROR_DEBIAN_INSTALLER: set debian-installer mirror
# (Default: http://ftp.fr.debian.org/debian/)
LB_MIRROR_DEBIAN_INSTALLER="http://ftp.fr.debian.org/debian/"
# (Default: http://ftp.debian.org/debian/)
LB_MIRROR_DEBIAN_INSTALLER="http://ftp.debian.org/debian/"
# $LB_BOOTSTRAP_QEMU_ARCHITECTURES: architectures to use foreign bootstrap
# (Default: )
......
[Image]
Architecture: i386
Architecture: amd64
Archive-Areas: main contrib non-free
Distribution: stretch
Mirror-Bootstrap: http://ftp.fr.debian.org/debian/
Mirror-Bootstrap: http://ftp.debian.org/debian/
[FIXME]
Configuration-Version: 4.0.3
Configuration-Version: 1:20170213
Name: live-image
Type: iso-hybrid
......@@ -5,8 +5,8 @@
LB_CHROOT_FILESYSTEM="squashfs"
# $LB_UNION_FILESYSTEM: set union filesystem
# (Default: aufs)
LB_UNION_FILESYSTEM="aufs"
# (Default: overlay)
LB_UNION_FILESYSTEM="overlay"
# $LB_INTERACTIVE: set interactive build
# (Default: false)
......@@ -18,7 +18,7 @@ LB_KEYRING_PACKAGES="debian-archive-keyring"
# $LB_LINUX_FLAVOURS: set kernel flavour to use
# (Default: autodetected)
LB_LINUX_FLAVOURS="686-pae"
LB_LINUX_FLAVOURS="amd64"
# $LB_LINUX_PACKAGES: set kernel packages to use
# (Default: autodetected)
......@@ -34,4 +34,4 @@ LB_UPDATES="true"
# $LB_BACKPORTS: enable backports updates
# (Default: false)
LB_BACKPORTS="false"
LB_BACKPORTS="true"
......@@ -28,10 +28,6 @@ LB_APT_SECURE="true"
# (Default: true)
LB_APT_SOURCE_ARCHIVES="true"
# $LB_BOOTSTRAP: set bootstrap program
# (Default: debootstrap)
LB_BOOTSTRAP="debootstrap"
# $LB_CACHE: control cache
# (Default: true)
LB_CACHE="true"
......@@ -65,8 +61,8 @@ LB_INITRAMFS="live-boot"
LB_INITRAMFS_COMPRESSION="gzip"
# $LB_INITSYSTEM: set init system
# (Default: sysvinit)
LB_INITSYSTEM="sysvinit"
# (Default: systemd)
LB_INITSYSTEM="systemd"
# $LB_FDISK: set fdisk program
# (Default: autodetected)
......@@ -88,10 +84,6 @@ LB_SYSTEM="live"
# (Default: apt)
LB_TASKSEL="apt"
# $LB_TEMPLATES: set templates
# (Default: /usr/share/live/build/templates)
LB_TEMPLATES="/usr/share/live/build/templates"
# live-build options
# $_BREAKPOINTS: enable breakpoints
......@@ -122,6 +114,6 @@ _QUIET="false"
APT_OPTIONS="--yes"
APTITUDE_OPTIONS="--assume-yes"
DEBOOTSTRAP_OPTIONS=""
CDEBOOTSTRAP_OPTIONS=""
GZIP_OPTIONS="-6 --rsyncable"
DEBOOTSTRAP_SCRIPT=""
GZIP_OPTIONS="-6 --rsyncable"
ISOHYBRID_OPTIONS=""
#!/bin/sh
set -e
# Disable kexec-tools
if [ -e /sbin/kexec ]
then
echo "kexec-tools kexec-tools/load_kexec boolean false" > /root/preseed
debconf-set-selections /root/preseed
rm -f /root/preseed
dpkg-reconfigure kexec-tools
fi
#!/bin/sh
set -e
# Disable tmpfs on /tmp
if [ -e /etc/default/rcS ]
then
sed -i -e 's|^ *RAMTMP=.*|RAMTMP=no|' /etc/default/rcS
fi
#!/bin/sh
pip install pytz
pip install pydispatcher
#!/bin/sh
chown -R user:user /home/user
#!/bin/bash
chown -R studiobox:studiobox /home/studiobox
chown -R studiobox:studiobox /home/studiobox/Documents/.*
cp -r /root/etc/* /etc
rm -rf /root/etc
cp -r /root/usr/* /usr
rm -rf /root/usr
chown icecast2:icecast /etc/icecast2/icecast.xml
chmod 644 /etc/icecast2/icecast.xml
#!/bin/sh
set -e
# Create /etc/mtab symlink, replacing a regular file if necessary
if [ ! -L /etc/mtab ]
then
rm -f /etc/mtab
ln -s /proc/mounts /etc/mtab
fi
#!/bin/sh
set -e
# Enable cryptsetup
if [ -e /sbin/cryptsetup ]
then
if [ ! -e /etc/initramfs-tools/conf.d/cryptsetup ]
then
mkdir -p /etc/initramfs-tools/conf.d
cat > /etc/initramfs-tools/conf.d/cryptsetup << EOF
# /etc/initramfs-tools/conf.d/cryptsetup
CRYPTSETUP=yes
export CRYPTSETUP
EOF
fi
fi
#!/bin/sh
set -e
# Create /etc/environment and /etc/default/locale
touch /etc/environment
touch /etc/default/locale
#!/bin/sh
set -e
# Reset generated file
cat > /etc/adjtime << EOF
0.0 0 0.0
0
UTC
EOF
#!/bin/sh
set -e
# Remove backup files
rm -f /boot/*.bak
rm -f /boot/*.old-dkms
rm -f /etc/apt/sources.list~
rm -f /etc/apt/trusted.gpg~
rm -f /etc/passwd-
rm -f /etc/group-
rm -f /etc/shadow-
rm -f /etc/gshadow-
rm -f /var/cache/debconf/*-old
rm -f /var/lib/dpkg/*-old
#!/bin/sh
set -e
# Remove dbus machine id.
#
# This removes dbus machine id that cache that makes each system unique.
rm -f /var/lib/dbus/machine-id
#!/bin/sh
set -e
# Remove GNOME icon cache.
#
# This saves space some space.
rm -f /usr/share/icons/*/icon-theme.cache
#!/bin/sh
set -e
# Truncate log files
for _FILE in $(find /var/log/ -type f)
do
: > ${_FILE}
done
#!/bin/sh
set -e
# Remove generated files
rm -f /etc/mdadm/mdadm.conf
#!/bin/sh
set -e
# Remove OpenSSH Host Keys.
#
# This removes openssh-server host keys, they are regenerated by live-config
# on system start.
rm -f /etc/ssh/ssh_host_*_key /etc/ssh/ssh_host_*_key.pub
#!/bin/sh
set -e
# Remove Python *.py files.
#
# This removes byte-compiled Python modules to save some space.
find /usr -name "*.pyc" -print0 | xargs -0r rm -f
#!/bin/sh
set -e
# Blank out systemd machine id. If it does not exist, systemd-journald
# will fail, but if it exists and is empty, systemd will automatically
# set up a new unique ID.
if [ -e /etc/machine-id ]
then
rm -f /etc/machine-id
: > /etc/machine-id
fi
#!/bin/sh
set -e
# Remove temporary files
rm -rf /var/cache/man/*
for _DIRECTORY in /tmp /var/tmp
do
rm -rf ${_DIRECTORY}
mkdir -p ${_DIRECTORY}
chmod 1777 ${_DIRECTORY}
done
#!/bin/sh
set -e
# Remove ssl-cert snakeoil
if [ -e /etc/ssl/certs/ssl-cert-snakeoil.pem ]
then
rm -f /etc/ssl/certs/$(openssl x509 -hash -noout -in /etc/ssl/certs/ssl-cert-snakeoil.pem)
rm -f /etc/ssl/certs/ssl-cert-snakeoil.pem
rm -f /etc/ssl/private/ssl-cert-snakeoil.key
fi
#!/bin/sh
set -e
# Remove udev persistent rules.
#
# This removes udev persistent rules that cache the host systems cd drive as
# well as the running live systems cd drive to remember its device name.
if [ -e /etc/udev/rules.d ]
then
> /etc/udev/rules.d/70-persistent-cd.rules
fi
#!/bin/sh
set -e
# Remove udev persistent rules.
#
# This removes udev persistent rules that cache the host systems mac address to
# remember its device name.
for _FILE in /etc/udev/rules.d/*persistent-net.rules
do
if [ -e "${_FILE}" ]
then
: > ${_FILE}
fi
done
#!/bin/sh
set -e
# Update the Apt File cache.
#
# This allows to use using apt-file out-of-the-box.
. /live-build/config/binary
if [ -x /usr/bin/apt-file ] && [ "${LB_APT_INDICES}" = "true" ]
then
apt-file update
fi
#!/bin/sh
set -e
# Update the Apt Xapian index.
#
# The package would do this itself, but (a) it checks policy-rc.d which says it
# is not allowed to, and (b) it wants to build the index in the background which
# will be racy in the context of live-build.
if [ -x /usr/sbin/update-apt-xapian-index ]
then
PYTHONDONTWRITEBYTECODE=1 /usr/sbin/update-apt-xapian-index --force --quiet
fi
#!/bin/sh
set -e
# Use mesa renderer by default
if [ -e /etc/alternatives/glx ]
then
update-alternatives --quiet --set glx /usr/lib/mesa-diverted
fi
#!/bin/sh
set -e
# Update the mlocate database.
#
# It is convenient for this to be already up to date on the live system, and it
# means that if the live system is later installed to a hard disk then less
# work will be required after installation.
if [ -x /usr/bin/updatedb.mlocate ]
then
updatedb.mlocate
fi
#!/bin/sh
set -e
# Use newest nvidia version by default
if [ -e /etc/alternatives/nvidia ] && [ -e /usr/lib/nvidia/current ]
then
update-alternatives --quiet --set nvidia /usr/lib/nvidia/current
fi
# Use Xft?
use_xft yes
xftfont Sans:size=8
xftalpha 0.8
text_buffer_size 2048
# Update interval in seconds
update_interval 1
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 200 0
# Maximum width of text area
maximum_width 200
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text and graphs
draw_borders no
draw_graph_borders no
# Stippled borders?
stippled_borders 0
# border margins
window.border_inner_margin 5
# border width
border_width 1
# Default colors and also border colors
default_color AE0508
own_window_colour 003267
default_shade_color 666666
# Text alignment, other possible values are commented
alignment top_right
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 8
gap_y 8
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# number of cpu samples to average
# set to 1 to disable averaging