PepMiniiso/PepDev32/pepbld.sh

68 lines
2.7 KiB
Bash
Raw Normal View History

2023-03-23 11:29:15 -01:00
#!/bin/bash
PATH="/sbin:/usr/sbin:/usr/local/sbin:$PATH"
# Set the working folder variable
uchinanchu="$(pwd)"
# 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 i386 \
--linux-flavours 686 \
--distribution chimaera \
--initsystem sysvinit \
2023-03-23 11:29:15 -01:00
--archive-areas "main contrib non-free" \
--mirror-bootstrap http://pkgmaster.devuan.org/merged \
--parent-mirror-bootstrap http://pkgmaster.devuan.org/merged \
--parent-mirror-chroot http://pkgmaster.devuan.org/merged \
--parent-mirror-chroot-security http://pkgmaster.devuan.org/merged \
--parent-mirror-binary http://pkgmaster.devuan.org/merged \
--parent-mirror-binary-security http://pkgmaster.devuan.org/merged \
--mirror-chroot http://pkgmaster.devuan.org/merged \
--mirror-chroot-security http://pkgmaster.devuan.org/merged \
--parent-mirror-debian-installer http://pkgmaster.devuan.org/devuan \
--uefi-secure-boot enable \
2023-03-23 11:29:15 -01:00
--firmware-binary true \
2023-03-25 20:29:13 -01:00
--firmware-chroot true \
2023-03-23 11:29:15 -01:00
--debian-installer netinst \
--debian-installer-distribution chimaera \
2023-03-23 11:29:15 -01:00
--debian-installer-gui true \
--iso-preparer "PeppermintOS-https://peppermintos.com/" \
--iso-publisher "Peppermint OS Team" \
--iso-volume "PepOS-mini-iso" \
--image-name "PepOS-mini-iso" \
--checksums sha512 \
--zsync false \
--win32-loader false \
--debian-installer-preseedfile preseed.cfg \
2023-03-23 11:29:15 -01:00
"${@}"
# Setup the installer structure
2023-03-28 12:48:46 +00:00
mkdir -p $uchinanchu/fusato/config/archives
2023-03-23 11:29:15 -01:00
mkdir -p $uchinanchu/fusato/config/includes.installer
mkdir -p $uchinanchu/fusato/config/includes.binary
mkdir -p $uchinanchu/fusato/config/includes.binary/install
mkdir -p $uchinanchu/fusato/config/includes.installer/usr/share
#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-03-28 12:48:46 +00:00
cp $uchinanchu/peprepo/* $uchinanchu/fusato/config/archives
2023-03-23 11:29:15 -01:00
# Copy recursive files and sub-directories, containing symlinks.
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
lb build