2023-03-23 11:29:15 -01:00
|
|
|
#!/bin/bash
|
2023-04-03 18:59:20 +00:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#
|
|
|
|
# SPDX-FileCopyrightText: 2023 PeppemrintOS Team (peppermintosteam@proton.me)
|
|
|
|
|
2023-03-23 11:29:15 -01:00
|
|
|
PATH="/sbin:/usr/sbin:/usr/local/sbin:$PATH"
|
|
|
|
|
|
|
|
# Set the working folder variable
|
|
|
|
uchinanchu="$(pwd)"
|
|
|
|
|
2023-03-25 16:51:09 -01:00
|
|
|
# This cleanup might be better served in the BldHelper*.sh script.
|
2023-03-23 11:29:15 -01:00
|
|
|
# Create the build folder, move into it removing stale mountpoints and files there.
|
|
|
|
[ -e fusato ] && [ ! -d fusato ] && rm -f fusato || [ ! -e fusato ] && mkdir fusato
|
|
|
|
cd fusato
|
|
|
|
umount $(mount | grep "${PWD}/chroot" | tac | cut -f3 -d" ") 2>/dev/null
|
|
|
|
for i in ./* ./.build ; do [ $i = ./cache ] && continue || rm -rf $i ; done
|
|
|
|
|
|
|
|
|
2023-03-25 17:12:04 -01:00
|
|
|
# Defines Live Build settings
|
2023-03-23 11:29:15 -01:00
|
|
|
lb config noauto \
|
|
|
|
--binary-images iso-hybrid \
|
|
|
|
--architectures amd64 \
|
2023-04-03 18:59:20 +00:00
|
|
|
--distribution daedalus \
|
2023-03-25 16:51:09 -01:00
|
|
|
--initsystem sysvinit \
|
2023-04-03 18:59:20 +00:00
|
|
|
--archive-areas "main contrib non-free non-free-firmware" \
|
|
|
|
--mirror-bootstrap http://deb.devuan.org/merged \
|
|
|
|
--parent-mirror-bootstrap http://deb.devuan.org/merged \
|
|
|
|
--parent-mirror-chroot http://deb.devuan.org/merged \
|
|
|
|
--parent-mirror-chroot-security http://deb.devuan.org/merged \
|
|
|
|
--parent-mirror-binary http://deb.devuan.org/merged \
|
|
|
|
--parent-mirror-binary-security http://deb.devuan.org/merged \
|
|
|
|
--mirror-chroot http://deb.devuan.org/merged \
|
|
|
|
--mirror-chroot-security http://deb.devuan.org/merged \
|
|
|
|
--security false \
|
|
|
|
--updates false \
|
|
|
|
--backports false \
|
|
|
|
--firmware-chroot false \
|
2023-03-23 11:29:15 -01:00
|
|
|
--debian-installer netinst \
|
2023-04-03 18:59:20 +00:00
|
|
|
--debian-installer-distribution daedalus \
|
2023-03-23 11:29:15 -01:00
|
|
|
--debian-installer-gui true \
|
2023-04-03 18:59:20 +00:00
|
|
|
--parent-mirror-debian-installer http://repo.peppermintos.com/packages \
|
2023-03-23 11:29:15 -01:00
|
|
|
--iso-preparer "PeppermintOS-https://peppermintos.com/" \
|
|
|
|
--iso-publisher "Peppermint OS Team" \
|
2023-04-03 18:59:20 +00:00
|
|
|
--iso-volume "Peppermint" \
|
2023-03-23 11:29:15 -01:00
|
|
|
--image-name "PepOS-mini-iso" \
|
|
|
|
--checksums sha512 \
|
|
|
|
--zsync false \
|
|
|
|
--win32-loader false \
|
2023-03-25 16:51:09 -01:00
|
|
|
--debian-installer-preseedfile preseed.cfg \
|
2023-04-03 20:31:18 +00:00
|
|
|
|
2023-03-23 11:29:15 -01:00
|
|
|
"${@}"
|
|
|
|
|
2023-04-15 14:47:17 +00:00
|
|
|
# Packages to be stored in /pool but not installed in the OS .
|
|
|
|
echo "# These packages are available to the installer.
|
|
|
|
linux-image-amd64
|
|
|
|
hdmi2usb-fx2-firmware
|
|
|
|
firmware-ath9k-htc
|
|
|
|
amd64-microcode
|
|
|
|
atmel-firmware
|
|
|
|
bluez-firmware
|
|
|
|
dahdi-firmware-nonfree
|
|
|
|
firmware-ast
|
|
|
|
firmware-amd-graphics
|
|
|
|
firmware-atheros
|
|
|
|
firmware-bnx2
|
|
|
|
firmware-bnx2x
|
|
|
|
firmware-brcm80211
|
|
|
|
firmware-cavium
|
|
|
|
firmware-intel-sound
|
|
|
|
firmware-ipw2x00
|
|
|
|
firmware-ivtv
|
|
|
|
firmware-iwlwifi
|
|
|
|
firmware-libertas
|
|
|
|
firmware-misc-nonfree
|
|
|
|
firmware-myricom
|
|
|
|
firmware-netronome
|
|
|
|
firmware-qcom-soc
|
|
|
|
firmware-qlogic
|
|
|
|
firmware-realtek
|
|
|
|
firmware-samsung
|
|
|
|
firmware-siano
|
|
|
|
firmware-ti-connectivity
|
|
|
|
firmware-sof-signed
|
|
|
|
intel-microcode
|
|
|
|
firmware-nvidia-tesla-gsp
|
|
|
|
firmware-nvidia-gsp
|
|
|
|
raspi-firmware
|
|
|
|
firmware-realtek-rtl8723cs-bt
|
|
|
|
firmware-zd1211
|
|
|
|
accountsservice
|
|
|
|
acpi
|
|
|
|
acpid
|
|
|
|
adduser
|
|
|
|
alsa-utils
|
|
|
|
apt
|
|
|
|
apt-utils
|
|
|
|
at-spi2-core
|
|
|
|
avahi-daemon
|
|
|
|
base-files
|
|
|
|
base-passwd
|
|
|
|
bash
|
|
|
|
bind9-host
|
|
|
|
bsdmainutils
|
|
|
|
bsdutils
|
|
|
|
busybox
|
|
|
|
bzip2
|
|
|
|
ca-certificates
|
|
|
|
console-setup
|
|
|
|
coreutils
|
|
|
|
cpio
|
|
|
|
cron
|
|
|
|
curl
|
|
|
|
dash
|
|
|
|
dbus
|
|
|
|
debconf
|
|
|
|
debconf-i18n
|
|
|
|
debian-archive-keyring
|
|
|
|
debianutils
|
|
|
|
desktop-file-utils
|
2023-04-15 15:52:46 +00:00
|
|
|
isc-dhcp-client
|
2023-04-15 14:47:17 +00:00
|
|
|
dhcp-common
|
|
|
|
dialog
|
|
|
|
diffutils
|
|
|
|
dmidecode
|
|
|
|
dmsetup
|
|
|
|
dosfstools
|
|
|
|
dpkg
|
|
|
|
e2fsprogs
|
|
|
|
eject
|
|
|
|
exim4-base
|
|
|
|
exim4-config
|
|
|
|
exim4-daemon-light
|
|
|
|
file
|
|
|
|
findutils
|
|
|
|
fontconfig-config
|
|
|
|
|
|
|
|
" > $uchinanchu/fusato/config/package-lists/installer.list.binary
|
|
|
|
|
|
|
|
|
2023-03-23 11:29:15 -01:00
|
|
|
# Setup the installer structure
|
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.installer
|
2023-04-09 20:57:14 +00:00
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.installer/etc
|
2023-04-09 19:04:38 +00:00
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.installer/preseed
|
2023-04-15 14:47:17 +00:00
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.installer/preseed/repos
|
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.installer/preseed/scripts
|
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.installer/preseed/sources-final
|
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.installer/preseed/keyrings
|
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.installer/preseed/grub
|
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.installer/preseed/grub-themes
|
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.installer/preseed/apps
|
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.installer/preseed/database
|
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.installer/preseed/pixmaps
|
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.installer/preseed/tools
|
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.installer/preseed/protools
|
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.installer/preseed/polkit
|
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.installer/preseed/conf
|
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.installer/preseed/py
|
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.installer/usr/share
|
2023-03-23 11:29:15 -01:00
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.binary
|
|
|
|
mkdir -p $uchinanchu/fusato/config/includes.binary/install
|
2023-04-03 18:59:20 +00:00
|
|
|
mkdir -p $uchinanchu/fusato/config/hooks/normal
|
2023-03-23 11:29:15 -01:00
|
|
|
|
2023-03-25 16:51:09 -01:00
|
|
|
#cp $uchinanchu/peprepo/* $uchinanchu/fusato/config/archives
|
2023-03-23 11:29:15 -01:00
|
|
|
cp $uchinanchu/pepinstaller/preseed/preseed.cfg $uchinanchu/fusato/config/includes.installer
|
2023-04-03 18:59:20 +00:00
|
|
|
cp $uchinanchu/pephooks/normal/* $uchinanchu/fusato/config/hooks/normal
|
2023-04-15 15:14:45 +00:00
|
|
|
cp $uchinanchu/pepscriptsdev/* $uchinanchu/fusato/config/includes.installer/preseed/scripts
|
2023-04-15 14:47:17 +00:00
|
|
|
cp $uchinanchu/pepsources/multimedia.list $uchinanchu/fusato/config/includes.installer/preseed/repos
|
|
|
|
cp $uchinanchu/pepsources/peppermint.list $uchinanchu/fusato/config/includes.installer/preseed/repos
|
|
|
|
cp $uchinanchu/pepsources/sources.list $uchinanchu/fusato/config/includes.installer/preseed/sources-final
|
|
|
|
cp $uchinanchu/pepkeyrings/* $uchinanchu/fusato/config/includes.installer/preseed/keyrings
|
|
|
|
cp $uchinanchu/polkit/* $uchinanchu/fusato/config/includes.installer/preseed/polkit
|
|
|
|
cp $uchinanchu/pepapplication/* $uchinanchu/fusato/config/includes.installer/preseed/apps
|
|
|
|
cp $uchinanchu/pepdatabase/* $uchinanchu/fusato/config/includes.installer/preseed/database
|
|
|
|
cp $uchinanchu/PepProPixMaps/* $uchinanchu/fusato/config/includes.installer/preseed/pixmaps
|
|
|
|
cp $uchinanchu/pepconf/* $uchinanchu/fusato/config/includes.installer/preseed/conf
|
|
|
|
cp $uchinanchu/PepProTools/* $uchinanchu/fusato/config/includes.installer/preseed/protools
|
2023-03-23 11:29:15 -01:00
|
|
|
|
2023-04-15 14:47:17 +00:00
|
|
|
# Copy recursive files and sub-directories
|
2023-03-23 11:29:15 -01:00
|
|
|
cp -r $uchinanchu/peploadersplash/boot $uchinanchu/fusato/config/includes.binary
|
|
|
|
cp -r $uchinanchu/peploadersplash/isolinux $uchinanchu/fusato/config/includes.binary
|
|
|
|
cp -r $uchinanchu/pepinstaller/graphics $uchinanchu/fusato/config/includes.installer/usr/share
|
|
|
|
cp -r $uchinanchu/pepinstaller/themes $uchinanchu/fusato/config/includes.installer/usr/share
|
2023-04-15 14:47:17 +00:00
|
|
|
cp -r $uchinanchu/pepgrub/* $uchinanchu/fusato/config/includes.installer/preseed/grub
|
|
|
|
cp -r $uchinanchu/pepgrub/themes $uchinanchu/fusato/config/includes.installer/preseed/grub-themes
|
|
|
|
cp -r $uchinanchu/pylibraries/* $uchinanchu/fusato/config/includes.installer/preseed/py
|
2023-04-15 15:14:45 +00:00
|
|
|
cp -r $uchinanchu/pmostools/* $uchinanchu/fusato/config/includes.installer/preseed/tools
|
2023-04-15 14:47:17 +00:00
|
|
|
|
2023-03-23 11:29:15 -01:00
|
|
|
lb build
|