debianGN/custom-scripts/tmp/log/mirror-reprepro
2024-05-22 15:13:19 +02:00

283 lines
15 KiB
Bash
Executable File

#!/bin/sh
# Execute tool mirror/reprepro
# Export environment
export APTTMP=/home/lakrim/workspace/DebianGN-simple-cdd/custom-scripts/tmp/cd-build/apt
# Architecture of the target distribution
export ARCH=amd64
# all the architectures that will be present in the built ISO
export ARCHES=amd64
# working directory for debian-cd
export BASEDIR=/home/lakrim/workspace/DebianGN-simple-cdd/custom-scripts/tmp/debian-cd
export BASE_INCLUDE=''
export BOOT_TIMEOUT=''
# distribution name (jessie, stretch, buster, bullseye, ..., sid)
export CODENAME=bookworm
# Preexisting environment variable COLORTERM
export COLORTERM=truecolor
export CONTRIB=''
# Preexisting environment variable DBUS_SESSION_BUS_ADDRESS
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
# Numeric version of Debian release.
export DEBVERSION=12
# Preexisting environment variable DESKTOP_SESSION
export DESKTOP_SESSION=gnome
# ISO image type ('CD' or 'DVD')
export DISKTYPE=CD
# Preexisting environment variable DISPLAY
export DISPLAY=:0
# distribution name for debian-installer
export DI_CODENAME=bookworm
# TODO: passed as is to debian-cd
export DOJIGDO=0
export EXCLUDE=/home/lakrim/workspace/DebianGN-simple-cdd/custom-scripts/tmp/simple-cdd.excludes
# Preexisting environment variable GDMSESSION
export GDMSESSION=gnome
# Preexisting environment variable GDM_LANG
export GDM_LANG=fr_FR.UTF-8
# Preexisting environment variable GNOME_DESKTOP_SESSION_ID
export GNOME_DESKTOP_SESSION_ID=this-is-deprecated
# Preexisting environment variable GNOME_SETUP_DISPLAY
export GNOME_SETUP_DISPLAY=:1
# Preexisting environment variable GNOME_TERMINAL_SCREEN
export GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/06701c2b_7c5b_4e36_bf7c_6d79532aaf5c
# Preexisting environment variable GNOME_TERMINAL_SERVICE
export GNOME_TERMINAL_SERVICE=:1.82
# location of the gnupg keyring to use to verify distrbutions (overridden to point to a local copy if user_gnupghome is unset)
export GNUPGHOME=/home/lakrim/workspace/DebianGN-simple-cdd/custom-scripts/tmp/gpg-keyring
# Preexisting environment variable GTK_MODULES
export GTK_MODULES=gail:atk-bridge
# Preexisting environment variable HOME
export HOME=/home/lakrim
# Preexisting environment variable IM_CONFIG_PHASE
export IM_CONFIG_PHASE=1
# 0: nothing special, 1: just add debian-installer (use TASK=tasks/debian-installer), 2: add d-i and base (use TASK=tasks/debian-installer+kernel)
export INSTALLER_CD=2
# TODO: passed as is to debian-cd
export ISOLINUX=1
export KERNEL_PARAMS=''
# Preexisting environment variable LANG
export LANG=fr_FR.UTF-8
# Preexisting environment variable LOGNAME
export LOGNAME=lakrim
# Preexisting environment variable LS_COLORS
export LS_COLORS='rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.swp=00;90:*.tmp=00;90:*.dpkg-dist=00;90:*.dpkg-old=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:'
# TODO: passed as is to debian-cd
export MAXCDS=1
# TODO: passed as is to debian-cd
export MAXISOS=ALL
# TODO: passed as is to debian-cd
export MAXJIGDOS=0
# directory where the local mirror is stored
export MIRROR=/home/lakrim/workspace/DebianGN-simple-cdd/custom-scripts/tmp/mirror
export NONFREE=''
# When set to 1, do not include recommends in the iso image
export NORECOMMENDS=1
# TODO: passed as is to debian-cd
export OFFICIAL=Unofficial
# TODO: passed as is to debian-cd
export OFFICIAL_VAL=0
# Preexisting environment variable OLDPWD
export OLDPWD=/home/lakrim/workspace/DebianGN-simple-cdd
# TODO: passed as is to debian-cd
export OMIT_RELEASE_NOTES=1
# Directory where the generated ISO images will be stored
export OUT=/home/lakrim/workspace/DebianGN-simple-cdd/custom-scripts/images
# Preexisting environment variable PATH
export PATH=/home/lakrim/workspace/DebianGN-simple-cdd/custom-scripts:/usr/bin:/usr/share/simple-cdd:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin
# Preexisting environment variable PWD
export PWD=/home/lakrim/workspace/DebianGN-simple-cdd/custom-scripts
# Preexisting environment variable QT_ACCESSIBILITY
export QT_ACCESSIBILITY=1
# Preexisting environment variable QT_IM_MODULE
export QT_IM_MODULE=ibus
export REPREPRO_BASE_DIR=/home/lakrim/workspace/DebianGN-simple-cdd/custom-scripts/tmp/mirror
# Preexisting environment variable SESSION_MANAGER
export SESSION_MANAGER=local/debian:@/tmp/.ICE-unix/1254,unix/debian:/tmp/.ICE-unix/1254
# Preexisting environment variable SHELL
export SHELL=/bin/bash
# Preexisting environment variable SHLVL
export SHLVL=1
# Preexisting environment variable SSH_AGENT_LAUNCHER
export SSH_AGENT_LAUNCHER=openssh
# Preexisting environment variable SSH_AUTH_SOCK
export SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
# suite used in the target distribution release file (i.e. stable/testing/unstable)
export SUITE=stable
# Preexisting environment variable SYSTEMD_EXEC_PID
export SYSTEMD_EXEC_PID=1288
# debian-cd task to use
export TASK=/home/lakrim/workspace/DebianGN-simple-cdd/custom-scripts/tmp/simple-cdd.task
export TDIR=/home/lakrim/workspace/DebianGN-simple-cdd/custom-scripts/tmp/cd-build
# Preexisting environment variable TERM
export TERM=xterm-256color
# Preexisting environment variable USER
export USER=lakrim
# Preexisting environment variable USERNAME
export USERNAME=lakrim
# Preexisting environment variable VTE_VERSION
export VTE_VERSION=7006
# Preexisting environment variable WAYLAND_DISPLAY
export WAYLAND_DISPLAY=wayland-0
# Preexisting environment variable XAUTHORITY
export XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.CPN4N2
# Preexisting environment variable XDG_CURRENT_DESKTOP
export XDG_CURRENT_DESKTOP=GNOME
# Preexisting environment variable XDG_DATA_DIRS
export XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/
# Preexisting environment variable XDG_MENU_PREFIX
export XDG_MENU_PREFIX=gnome-
# Preexisting environment variable XDG_RUNTIME_DIR
export XDG_RUNTIME_DIR=/run/user/1000
# Preexisting environment variable XDG_SESSION_CLASS
export XDG_SESSION_CLASS=user
# Preexisting environment variable XDG_SESSION_DESKTOP
export XDG_SESSION_DESKTOP=gnome
# Preexisting environment variable XDG_SESSION_TYPE
export XDG_SESSION_TYPE=wayland
# Preexisting environment variable XMODIFIERS
export XMODIFIERS=@im=ibus
# Preexisting environment variable _
export _=/usr/bin/build-simple-cdd
# files included on the media in the /simple-cdd dir
export all_extras=''
export all_packages='less grub-pc grub-efi popularity-contest console-setup usbutils acpi acpid eject lvm2 mdadm cryptsetup cryptsetup-initramfs reiserfsprogs jfsutils xfsprogs debootstrap usr-is-merged busybox syslinux-common syslinux isolinux sudo simple-cdd-profiles linux-image-amd64 linux-image-2.6-amd64'
# automatically install these profiles
export auto_profiles=''
# use Debian backports
export backports=''
export backports_filter_formula=''
# backports mirror URL
export backports_mirror=http://deb.debian.org/debian/
# list of packages to get from backports instead of the normal distribution
export backports_packages=''
export bootappend_live='boot=live components'
export build_dir=/home/lakrim/workspace/DebianGN-simple-cdd/tmp
# profiles only used while building the CD
export build_profiles=''
# list the build tools to be used
export build_tools=debian-cd
export check_not_requested=''
# name of checksum files to use to verify downloaded files
export checksum_file_type=SHA256SUMS
# files used to verify checksums on parts of the mirror other than packages, such as the installer media
export checksum_files='dists/bookworm/main/installer-amd64/current/images/SHA256SUMS dists/bookworm/main/installer-i386/current/images/SHA256SUMS'
export choices=''
# Remove unused packages from the local mirror
export clean_mirror=''
export commandline_opts=''
export custom_scripts_dir=/home/lakrim/workspace/DebianGN-simple-cdd/custom-scripts
# directory where debian-cd has its tools
export debian_cd_dir=/usr/share/debian-cd
# if using non-official CODENAME, create links to emulate an existing codename
export debian_cd_emulate_codename=''
# official Debian mirror to use to get Debian packages
export debian_mirror=http://deb.debian.org/debian/
# if set, also get packages from this mirror
export debian_mirror_extra=''
export debian_mirror_extra_dist=''
export debian_mirror_extra_list_shell_hook=''
export debug=true
export default_choices=''
# profiles which default to being selected in profile selection menu at install time
export default_profiles=''
export di_match_files=/cdrom
# debian-installer version to use
export di_release=current
export disk_label='Debian GN Custom'
# when true, build a local mirror
export do_mirror=true
# profile specific list of packages to exclude from media
export exclude_files=/usr/share/simple-cdd/profiles/default.excludes
# pull in udebs from specified distribution
export extra_udeb_dist=''
export extra_udeb_dist_packages=''
# Debian mirror base URL that will be used when downloading files
export files_debian_mirror=http://deb.debian.org/debian/
# only issue a warning if a preseeding file is invalid
export force_preseed=''
# when true, don't fail when a file can't be found in a checksum file.
export ignore_missing_checksums=''
export image_name=debianGN
# List of debian-cd include files to add to the current task
export includes='debian-installer+kernel debian-installer'
export iso_application='Debian GN Custom ISO'
export iso_publisher='Lakrim <lakrim@example.com>'
# list of kernel packages to include on the CD
export kernel_packages='linux-image-amd64 linux-image-2.6-amd64'
# preselect this keyboard in debian-installer (console-keymaps-at/keymap debconf question)
export keyboard=fr
# use specified keyrings (comma-separated) for verifying packages
export keyring=/usr/share/keyrings/debian-archive-keyring.gpg
# list of files included on CD's local package repository
export local_packages=''
# preselect this default locale for the distribution
export locale=fr_FR.UTF-8
# components to use to build the distributions
export mirror_components=main
# distribution components to use when getting packages from debian_mirror_extra
export mirror_components_extra=main
# extra files or directories to copy from the mirrors to the distribution CD
export mirror_files='README doc/ tools/'
# list the mirror tools to be used
export mirror_tools='download reprepro'
export mirror_udebcomponents_extra=''
# profile specific lists of packages to install
export package_files='/usr/share/simple-cdd/profiles/default.packages /usr/share/simple-cdd/profiles/default.downloads /usr/share/simple-cdd/profiles/default.udebs'
export packages='gconf2 gconf-service gconf2-common libgconf-2-4 zstd task-desktop'
export preseed_file=/home/lakrim/workspace/DebianGN-simple-cdd/profiles/debianGN/debianGN.preseed
# profile specific preseeding files
export preseed_files=/usr/share/simple-cdd/profiles/default.preseed
# select profiles (examples in profiles/ dir)
export profiles=debianGN
# pull simple-cdd-profiles udeb from specified distribution
export profiles_udeb_dist=''
# specify if proposed updates should be used
export proposed_updates=''
# options added to all reprepro invocations
export reprepro_opts=-V
# number of times reprepro attempts to download new dependencies
export reprepro_retries=''
# fail if missing optional packages (*.downloads)
export require_optional_packages=''
# official Debian mirror to use to get Debian packages in rsync syntax, used only when using the rsync tool
export rsync_debian_mirror=deb.debian.org::debian
# security mirror URL
export security_mirror=http://security.debian.org/
# argument passed to the kernel to boot with a serial console
export serial_console_opts=ttyS0,115200
# serial console speed used when booting with a serial console
export serial_console_speed=115200
# default server used for mirrors
export server=deb.debian.org
# working directory for debian-cd
export simple_cdd_basedir=/home/lakrim/workspace/DebianGN-simple-cdd/custom-scripts/tmp/debian-cd
# simple-cdd working directory
export simple_cdd_dir=/home/lakrim/workspace/DebianGN-simple-cdd/custom-scripts
# directories used to look for simple-cdd support scripts
export simple_cdd_dirs='/home/lakrim/workspace/DebianGN-simple-cdd/custom-scripts /usr/bin /usr/share/simple-cdd'
# directory where execution logs are stored
export simple_cdd_logs=/home/lakrim/workspace/DebianGN-simple-cdd/custom-scripts/tmp/log
# directory where the local mirror is stored
export simple_cdd_mirror=/home/lakrim/workspace/DebianGN-simple-cdd/custom-scripts/tmp/mirror
# kernel command line parameter to enable simple-cdd debconf preseeding
export simple_cdd_preseed=preseed/file=/cdrom/simple-cdd/default.preseed
# directory where intermediate build data are stored
export simple_cdd_temp=/home/lakrim/workspace/DebianGN-simple-cdd/custom-scripts/tmp
export suite=bookworm
export udebs_filter_formula=''
# specify mirror for $DIST-updates
export updates_mirror=http://deb.debian.org/debian/
export upstream_package_lists=''
# enable serial console when booting the ISO image
export use_serial_console=''
# when true, use the user's gnupg keyring instead of a simple-cdd temporary keyring
export user_gnupghome=''
# key IDs used to verify release files
export verify_release_keys='DCC9EFBF77E11517! DC30D7C23CBBABEE! 648ACFD622F3D138! 4DFAB270CAA96DFA! 112695A0E562B32A! 73A4F27B8DD47936! 0E98404D386FA1D9! A48449044AAD5C5D! 54404762BBB6E853! 605C66F00D6C9793! F8D2585B8783D481! B7C5D7D6350947F8! 6ED0E7B82643E131! 254CF3B5AEC0A8F0! BDE6D2B9216EC7A8!'
export vga_normal=''
export volume_label='Debian GN'
# Run the tool
exec /bin/sh -ue /usr/share/simple-cdd/tools/mirror/reprepro "$@"