Updated bubbles to scale faster for build Archs

Signed-off-by: debianpepper <pdpdebdevuan@protonmail.com>
This commit is contained in:
debianpepper 2023-08-24 15:16:56 +09:00
parent 54f119817a
commit 03a5c9623c
18 changed files with 998 additions and 1984 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

281
python_modules/build_iso.py Normal file
View File

@ -0,0 +1,281 @@
"""
* Author: "PeppermintOS Team(peppermintosteam@proton.me)
*
* License: SPDX-License-Identifier: GPL-3.0-or-later
*
* Move and copy files as needed
"""
import os
import shutil
from pathlib import Path
import argparse
import collections
import conf
import paths
import inflate_bubble
import finish_cleanup
import infra
# Set the home path used regardless the user logged in
BSTRING_ISO_CONFIGS = '~/bubbles/iso_configs'
HOME_FOLDER = str(Path(BSTRING_ISO_CONFIGS).expanduser())
FUSATO_ROOT = '/fusato'
WPCHROOT = '/fusato/config/includes.chroot'
class BuildXfce:
"""
Determine what base to use and then build the ISO
"""
def __init__(self, sbase, sarch):
self.sbase = sbase
self.sarch = sarch
os.chdir(HOME_FOLDER + FUSATO_ROOT)
# Determine what base to build
if sbase == "deb":
self.debian_build()
elif sbase == "dev":
self.devuan_build()
else:
print("No base has been found")
def run_build(self):
""" Run and start the build process"""
run_cmd = 'sudo lb build'
os.chdir(HOME_FOLDER + FUSATO_ROOT)
os.system(run_cmd)
def debian_build(self):
"""
Used to build the Debian base XFCE ISO
"""
if self.sarch == '_64':
# livebuild init
lbsetup = conf.lbset_deb64
os.system(lbsetup)
# Loop though commands
cmd_list_64 = collections.deque(conf.build64_xfce_build)
list_size_64 = len(cmd_list_64)
for _ in range(list_size_64):
i = cmd_list_64.popleft()
execute = i + '()'
exec(execute)
# Run the specific classes
infra.ChrootFolders("deb", "_64")
infra.BinaryFolders("deb", "_64")
infra.ArchitectureFiles("deb", "_64")
# Run the Build
self.run_build()
elif self.sarch == '_32':
lbsetup = conf.lbset_deb32
os.system(lbsetup)
cmd_list_32 = collections.deque(conf.build32_xfce_build)
list_size_32 = len(cmd_list_32)
for _ in range(list_size_32):
i = cmd_list_32.popleft()
execute = i + '()'
exec(execute)
# Run the specific classes
infra.ChrootFolders("deb", "_32")
infra.BinaryFolders("deb", "_32")
infra.ArchitectureFiles("deb", "_31")
# Run the Build
self.run_build()
elif self.sarch == '_arm':
lbsetup = conf.lbset_debarm
os.system(lbsetup)
cmd_list_arm = collections.deque(conf.buildarm_xfce_build)
list_size_arm = len(cmd_list_arm)
for _ in range(list_size_arm):
i = cmd_list_arm.popleft()
execute = i + '()'
exec(execute)
# Run the specific classes
infra.ChrootFolders("deb", "_arm")
infra.BinaryFolders("deb", "_arm")
infra.ArchitectureFiles("deb", "_arm")
# Run the Build
self.run_build()
else:
print("No active build specified")
def devuan_build(self):
"""
Used to build the Devuan base xfce ISO
"""
if self.sarch == '_64':
lbsetup = conf.lbset_dev64
os.system(lbsetup)
# Loop though commands
cmd_list_64 = collections.deque(conf.build64_xfce_build)
list_size_64 = len(cmd_list_64)
for _ in range(list_size_64):
i = cmd_list_64.popleft()
execute = i + '()'
exec(execute)
# Run the specific classes
infra.ChrootFolders("dev", "_64")
infra.BinaryFolders("dev", "_64")
infra.ArchitectureFiles("dev", "_64")
# Run the Build
self.run_build()
elif self.sarch == '_32':
lbsetup = conf.lbset_dev32
os.system(lbsetup)
cmd_list_32 = collections.deque(conf.build32_xfce_build)
list_size_32 = len(cmd_list_32)
for _ in range(list_size_32):
i = cmd_list_32.popleft()
execute = i + '()'
exec(execute)
# Run the specific classes
infra.ChrootFolders("dev", "_32")
infra.BinaryFolders("dev", "_32")
infra.ArchitectureFiles("dev", "_31")
# Run the build
self.run_build()
else:
lbsetup = conf.lbset_devarm
os.system(lbsetup)
cmd_list_arm = collections.deque(conf.buildarm_xfce_build)
list_size_arm = len(cmd_list_arm)
for list_size in range(list_size_arm):
i = cmd_list_arm.popleft()
execute = i + '()'
exec(execute)
# Run the specific classes
infra.ChrootFolders("dev", "_arm")
infra.BinaryFolders("dev", "_arm")
infra.ArchitectureFiles("dev", "_arm")
# Run the Build
self.run_build()
def readybuild():
"""" Make Ready the bld structure If fusato exists remove it.
and recreate it, otherwise just make a new folder named
fusato.
"""
os.chdir(HOME_FOLDER)
if os.path.exists('fusato'):
rm_cmd = "sudo rm -r -f fusato"
os.system(rm_cmd)
os.makedirs('fusato')
else:
os.makedirs('fusato')
class Decsions:
"""
Aguments used to tell the application what to build
"""
def __init__(self):
# Set up the terminal arguments
self.argument_parser = argparse.ArgumentParser()
self.argument_parser.add_argument("set",
help="set what build to start",
type=str
)
self.argument_parser.add_argument("e",
help="identify the desktop"
" environment for example"
" e-xfce",
type=str
)
self.argument_parser.add_argument("b",
help="identify the ISO to"
"build for example"
" b-deb64",
type=str
)
self.arguments = self.argument_parser.parse_args()
# Then determine what desktop build to look for
if self.arguments.e == 'e-gnomefb':
self.dgnomefb()
elif self.arguments.e == 'e-xfce':
self.dxfce()
elif self.arguments.e == 'e-openbox':
self.dopenbox()
def dxfce(self):
""" Arguments for the XFCE """
if self.arguments.e == 'e-xfce':
if self.arguments.b == 'b-deb64':
readybuild()
BuildXfce("deb", "_64")
elif self.arguments.b == 'b-deb32':
readybuild()
BuildXfce("deb", "_32")
elif self.arguments.b == 'b-dev64':
readybuild()
BuildXfce("dev", "_64")
elif self.arguments.b == 'b-dev32':
readybuild()
BuildXfce("dev", "_32")
elif self.arguments.b == 'b-debarm':
readybuild()
BuildXfce("deb", "_arm")
elif self.arguments.b == 'b-devarm':
readybuild()
BuildXfce("dev", "_arm")
else:
print('You have not specified a valid '
'build architecture!!'
)
def dgnomefb(self):
""" Arguments for the gnomefb """
if self.arguments.e == 'e-gnomefb':
if self.arguments.b == 'b-deb64':
readybuild()
print('run gnomefb builds deb64')
elif self.arguments.b == 'b-deb32':
readybuild()
print('run gnomefb builds deb32')
elif self.arguments.b == 'b-dev64':
readybuild()
print('run gnomefb builds dev64')
elif self.arguments.b == 'b-dev32':
readybuild()
print('run gnomefb builds dev32')
elif self.arguments.b == 'b-debarm':
readybuild()
print('run gnomefb builds debarm')
elif self.arguments.b == 'b-devarm':
readybuild()
print('run gnomefb builds devarm')
else:
print('You have not specified a valid '
'build architecture!!')
def dopenbox(self):
""" Arguments for the openbox """
if self.arguments.e == 'e-openbox':
if self.arguments.b == 'b-deb64':
readybuild()
print('run openbox builds deb64')
elif self.arguments.b == 'b-deb32':
readybuild()
print('run openbox builds deb32')
elif self.arguments.b == 'b-dev64':
readybuild()
print('run openbox builds dev64')
elif self.arguments.b == 'b-dev32':
readybuild()
print('run openbox builds dev32')
elif self.arguments.b == 'b-debarm':
readybuild()
print('run openbox builds debarm')
elif self.arguments.b == 'b-devarm':
readybuild()
print('run openbox builds devarm')
else:
print('You have not specified a valid '
'build architecture!!')
else:
print('You have not specified a valid '
'desktop environment!!')
Decsions()

View File

@ -1,177 +1,67 @@
import paths
import inflate_bubble
import infra
##########################
# Copy folder lists
#########################
# Source CHROOT
src_paths_chroot_deb64 = (paths.src_deb64_osrelease,
paths.src_deb64_osrelease,
paths.src_deb_grub_theme,
paths.src_deb64_modules,
)
src_paths_chroot_dev64 = (paths.src_dev64_osrelease,
paths.src_dev64_osrelease,
paths.src_dev_grub_theme,
paths.src_dev64_modules,
)
src_paths_chroot_dev32 = (paths.src_dev32_osrelease,
paths.src_dev32_osrelease,
paths.src_dev_grub_theme,
paths.src_dev32_modules,
)
src_paths_chroot_deb32 = (paths.src_deb32_osrelease,
paths.src_deb32_osrelease,
paths.src_deb_grub_theme,
paths.src_deb32_modules,
)
src_paths_chroot_debarm = (paths.src_debarm_osrelease,
paths.src_debarm_modules,
)
src_paths_chroot_devarm = (paths.src_devarm_osrelease,
paths.src_devarm_modules,
)
# Source NON CHROOT
src_paths_non_chroot_deb64 = ( paths.src_deb64_slpash,
paths.src_deb64_isolinux,
paths.src_deb64_multi,
paths.src_deb_splash_image,
paths.src_deb_splash_image,
paths.src_deb_live_theme
)
src_paths_non_chroot_dev64 = ( paths.src_dev64_slpash,
paths.src_dev64_isolinux,
paths.src_dev64_multi,
paths.src_dev_splash_image,
paths.src_dev_splash_image,
paths.src_dev_live_theme
)
src_paths_non_chroot_dev32 = ( paths.src_dev32_slpash,
paths.src_dev32_isolinux,
paths.src_dev32_multi,
paths.src_dev_splash_image,
paths.src_dev_splash_image,
paths.src_dev_live_theme
)
src_paths_non_chroot_deb32 = ( paths.src_deb32_slpash,
paths.src_deb32_isolinux,
paths.src_deb32_multi,
paths.src_deb_splash_image,
paths.src_deb_splash_image,
paths.src_deb_live_theme
)
src_paths_non_chroot_debarm = ( paths.src_debarm_slpash,
paths.src_debarm_isolinux,
paths.src_debarm_multi,
)
src_paths_non_chroot_devarm = ( paths.src_devarm_slpash,
paths.src_devarm_isolinux,
paths.src_devarm_multi,
)
####################
# Copy file lists
####################
# Specific files
src_files_deb64 = (paths.src_deb64_grub_etc,
paths.src_deb64_settings,
paths.src_deb64_installer,
paths.src_deb64_sourcesfinal,
paths.src_deb64_bootloader,
paths.src_deb64_netinstall,
paths.src_deb64_sourcelist,
paths.src_main_line_pep_id
)
src_files_dev64 = (paths.src_dev64_grub_etc,
paths.src_dev64_settings,
paths.src_dev64_installer,
paths.src_dev64_sourcesfinal,
paths.src_dev64_bootloader,
paths.src_dev64_netinstall,
paths.src_dev64_sourcelist,
paths.src_main_line_pep_id
)
src_files_dev32 = (paths.src_dev32_grub_etc,
paths.src_dev32_settings,
paths.src_dev32_installer,
paths.src_dev32_sourcesfinal,
paths.src_dev32_bootloader,
paths.src_dev32_netinstall,
paths.src_dev32_sourcelist,
paths.src_main_line_pep_id
)
src_files_deb32 = (paths.src_deb32_grub_etc,
paths.src_deb32_settings,
paths.src_deb32_installer,
paths.src_deb32_sourcesfinal,
paths.src_deb32_bootloader,
paths.src_deb32_netinstall,
paths.src_deb32_sourcelist,
paths.src_main_line_pep_id
)
src_files_debarm = (paths.src_debarm_grub_etc,
paths.src_debarm_settings,
paths.src_debarm_installer,
paths.src_debarm_sourcesfinal,
paths.src_debarm_bootloader,
paths.src_debarm_netinstall,
paths.src_debarm_sourcelist,
)
src_files_devarm = (paths.src_devarm_grub_etc,
paths.src_devarm_settings,
paths.src_devarm_installer,
paths.src_devarm_sourcesfinal,
paths.src_devarm_bootloader,
paths.src_devarm_netinstall,
paths.src_devarm_sourcelist,
)
##########################
# Shared Destination
##########################
# Destination CHROOT Folders
des_paths_chroot =(paths.des_osrelease,
paths.des_osrelease_opt,
paths.des_grub_theme,
paths.des_modules,
)
# Destination NON CHROOT Folders
des_paths_non_chroot = (paths.des_splash,
paths.des_isolinux,
paths.des_archives,
paths.des_splash_image_isolinux,
paths.des_splash_image_grub,
paths.des_live_theme
)
# Destination Files
des_files = (paths.des_grub_etc,
paths.des_setttings,
paths.des_installer,
paths.des_sourcesfinal,
paths.des_bootloader,
paths.des_netinstall,
paths.des_sourcelist,
paths.des_main_line_pep_id
)
##########################
# Commands to be run
##########################
# Run Deb 64 Commands
shared_setup_cmds = ('lbinit',
'inflate_bubble.set_fusato_structure',
'inflate_bubble.set_desktop_environment',
'inflate_bubble.set_extra_packages',
'inflate_bubble.set_general_packages',
'inflate_bubble.set_system_packages',
'inflate_bubble.set_python_packages',
'inflate_bubble.set_calamares_packages',
'inflate_bubble.set_firmware_packages',
'copy_folders.copy_folders_files',
'copy_files_specified.copy_specific_files',
'copy_files_specified.set_symlinks',
# inflate_bubble sets the confgs files
# infra copies the needed configs
shared_setup_cmds = ('inflate_bubble.set_fusato_structure',
'inflate_bubble.set_general_shared',
'inflate_bubble.set_grub_shared',
'inflate_bubble.set_binary_shared',
'inflate_bubble.set_lightdm',
'infra.shared_folders',
'infra.icons_themes',
'infra.shared_files',
'infra.fusato_configs',
'infra.set_symlinks',
'infra.boostrap_shared'
)
# Setup Desktop
setup_xfce_cmds = ('inflate_bubble.set_xfce',
'infra.xfce_configs'
)
# Setup grub chroot
setup_chroot_grub_64 = ('inflate_bubble.set_chroot_grub_64',)
setup_chroot_grub_arm = ('inflate_bubble.set_chroot_grub_arm',)
setup_chroot_grub_32 = ('inflate_bubble.set_chroot_grub_32',)
# Setup grub binary
setup_binary_grub_64 = ('inflate_bubble.set_binary_64',)
setup_binary_grub_arm = ('inflate_bubble.set_binary_arm',)
setup_binary_grub_32 = ('inflate_bubble.set_binary_32',)
# Setup Firmware
setup_fw_64_32 = ('inflate_bubble.set_firmware',)
setup_fw_arm = ('inflate_bubble.set_firmware_arm',)
# Deb 64 combined tuples for building
build64_xfce_build = (shared_setup_cmds + setup_xfce_cmds +
setup_chroot_grub_64 + setup_binary_grub_64 +
setup_fw_64_32
)
build32_xfce_build = (shared_setup_cmds + setup_xfce_cmds +
setup_chroot_grub_32 + setup_binary_grub_32 +
setup_fw_64_32
)
buildarm_xfce_build = (shared_setup_cmds + setup_xfce_cmds +
setup_chroot_grub_arm + setup_binary_grub_arm +
setup_fw_arm
)
## These run the actual build process.
shared_run_build = ('run_build',
'finish_cleanup.make_check_sum',
'finish_cleanup.copy_iso_file_nightly_deb64',
@ -179,280 +69,225 @@ shared_run_build = ('run_build',
'finish_cleanup.kill_old_iso'
)
deb_64_cmds = ('inflate_bubble.set_system_packages_64',
'inflate_bubble.set_binary_packages_64',
'copy_deb64_specific',
)
### Inflate bubble section
env_list = ('xfce4')
xfce_list = ('xfce4\n'
'mousepad\n'
'xfce4-battery-plugin\n'
'xfce4-clipman-plugin\n'
'xfce4-power-manager\n'
'xfce4-taskmanager\n'
'xfce4-terminal\n'
'xfce4-screenshooter\n'
'xfce4-whiskermenu-plugin\n'
'xfce4-panel-profiles\n'
'thunar-archive-plugin\n'
'thunar-volman\n'
'xarchiver\n'
'plank\n'
'mugshot\n'
'menulibre\n'
#'marwaita-for-xfwm'
)
desktop_list = ('mousepad\n'
'xfce4-battery-plugin\n'
'xfce4-clipman-plugin\n'
'xfce4-power-manager\n'
'xfce4-taskmanager\n'
'xfce4-terminal\n'
'xfce4-screenshooter\n'
'xfce4-whiskermenu-plugin\n'
'xfce4-panel-profiles\n'
# Orage should be a user decision
#'orage\n'
'thunar-archive-plugin\n'
'thunar-volman\n'
'xarchiver\n'
'lightdm\n'
'lightdm-gtk-greeter\n'
'lightdm-gtk-greeter-settings\n'
'plank\n'
#'marwaita-for-xfwm'
gnome_flashback_list = ('alacarte\n'
'eog\n'
'evince\n'
'file-roller\n'
'gdm3\n'
'gedit\n'
'gnome-calculator\n'
'gnome-control-center\n'
'gnome-tweaks\n'
'gnome-screenshot\n'
'gnome-session-flashback\n'
'gnome-terminal\n'
'nautilus\n'
'yelp\n'
)
light_dm_list = ('lightdm\n'
'lightdm-gtk-greeter\n'
'lightdm-gtk-greeter-settings\n'
)
general_list = ('dconf-editor\n'
'gnome-disk-utility\n'
'menulibre\n'
'synaptic\n'
'system-config-printer\n'
'gnome-system-tools\n'
'simple-scan\n'
'mugshot\n'
#Not needed should be left to the user
#'xterm\n'
#Taken out for the moment to verify should not be there.
# 'libreoffice-core\n'
# 'libreoffice-gtk3\n'
'spice-vdagent'
general_shared_list = ('alsa-utils\n'
'bluez\n'
'calamares\n'
'calamares-settings-debian'
'console-setup\n'
'cups\n'
'curl\n'
'dconf-editor\n'
'dkms\n'
'dbus-x11\n'
'fonts-cantarell\n'
'fonts-liberation\n'
'f2fs-tools\n'
'gdebi\n'
'gir1.2-webkit2-4.0\n'
'git\n'
'gnome-disk-utility\n'
'gnome-system-tools\n'
'gparted\n'
'gvfs-backends\n'
'inputattach\n'
'inxi\n'
'locales\n'
'nala\n'
'neofetch\n'
'network-manager-gnome\n'
'ntp\n'
'pepermint-wallpapers'
'pulseaudio-module-bluetooth\n'
'python3-pip\n'
'python3-tk\n'
'python3-pil.imagetk\n'
'synaptic\n'
'system-config-printer\n'
'simple-scan\n'
'smartmontools\n'
'smbclient\n'
'spice-vdagent'
'sqlite3\n'
'wireless-tools\n'
'wget\n'
'xfsprogs\n'
)
grub_list_shared = ('efibootmgr\n'
'grub-common\n'
'grub2-common\n'
'grub-efi\n'
'libefiboot1\n'
'libefivar1\n'
'mokutil\n'
'os-prober\n'
'shim-signed\n'
'shim-signed-common\n'
'shim-unsigned\n'
'libglib2.0\n'
)
grub_list_64 = ('grub-efi-amd64\n'
'grub-efi-amd64-bin\n'
'grub-efi-amd64-signed\n'
'shim-helpers-amd64-signed\n'
'grub-efi-ia32-bin\n'
)
system_list = ('cups\n'
'curl\n'
'dkms\n'
'dbus-x11\n'
'nala\n'
'fonts-cantarell\n'
'fonts-liberation\n'
'gdebi\n'
'gir1.2-webkit2-4.0\n'
'git\n'
'gvfs-backends\n'
'inputattach\n'
'inxi\n'
'locales\n'
'neofetch\n'
'network-manager-gnome\n'
'ntp\n'
'pulseaudio-module-bluetooth\n'
'simple-scan\n'
'smartmontools\n'
'smbclient\n'
'sqlite3\n'
'wireless-tools\n'
'wget\n'
'f2fs-tools\n'
'xfsprogs\n'
'alsa-utils\n'
'bluez\n'
'console-setup\n'
'gparted\n'
'libglib2.0'
)
grub_list_arm64 = ('grub-efi-arm64\n'
'grub-efi-arm64-bin\n'
'grub-efi-arm64-signed\n'
'shim-helpers-arm64-signed\n'
)
system_list_64_32 = ('\n'
# Place Holder for 32 bit
)
system_list_64 = ('\n'
'efibootmgr\n'
'grub-common\n'
'grub2-common\n'
'grub-efi\n'
'grub-efi-amd64\n'
'grub-efi-amd64-bin\n'
'grub-efi-amd64-signed\n'
'libefiboot1\n'
'libefivar1\n'
'mokutil\n'
'os-prober\n'
'shim-helpers-amd64-signed\n'
'shim-signed\n'
'shim-signed-common\n'
'shim-unsigned\n'
'grub-efi-ia32-bin\n'
'libglib2.0'
)
system_list_arm64 = ('\n'
'efibootmgr\n'
'grub-common\n'
'grub2-common\n'
'grub-efi\n'
'grub-efi-arm64\n'
'grub-efi-arm64-bin\n'
'grub-efi-arm64-signed\n'
'libefiboot1\n'
'libefivar1\n'
'mokutil\n'
'os-prober\n'
'shim-helpers-arm64-signed\n'
'shim-signed\n'
'shim-signed-common\n'
'shim-unsigned\n'
'libglib2.0'
)
system_list_32 = ('\n'
'efibootmgr\n'
'grub-common\n'
'grub2-common\n'
'grub-efi\n'
'grub-efi-ia32\n'
'grub-efi-ia32-bin\n'
'grub-efi-ia32-signed\n'
'grub-efi-ia32-bin\n'
'libefiboot1\n'
'libefivar1\n'
'mokutil\n'
'os-prober\n'
'shim-helpers-i386-signed\n'
'shim-signed\n'
'shim-signed-common\n'
'shim-unsigned\n'
)
artwork_list = (
'pepermint-wallpapers'
grub_list_32 = ('efibootmgr\n'
'grub-common\n'
'grub2-common\n'
'grub-efi\n'
'grub-efi-ia32\n'
'grub-efi-ia32-bin\n'
'grub-efi-ia32-signed\n'
'grub-efi-ia32-bin\n'
'os-prober\n'
'shim-helpers-i386-signed\n'
)
python_list = ('python3-pip\n'
'python3-tk\n'
'python3-pil.imagetk\n'
)
firmware_list_32_64 = ('atmel-firmware\n'
'bluez-firmware\n'
'firmware-atheros\n'
'firmware-amd-graphics\n'
'firmware-bnx2\n'
'firmware-bnx2x\n'
'firmware-brcm80211\n'
'firmware-cavium\n'
'firmware-intel-sound\n'
'firmware-iwlwifi\n'
'firmware-libertas\n'
'firmware-linux\n'
'firmware-linux-free\n'
'firmware-linux-nonfree\n'
'firmware-misc-nonfree\n'
'firmware-myricom\n'
'firmware-netronome\n'
'firmware-netxen\n'
'firmware-qcom-media\n'
'firmware-qcom-soc\n'
'firmware-qlogic\n'
'firmware-realtek\n'
'firmware-samsung\n'
'firmware-siano\n'
'firmware-sof-signed\n'
'midisport-firmware\n'
)
calamares_list = ('calamares\n'
'calamares-settings-debian'
)
firmware_list = ('atmel-firmware\n'
'bluez-firmware\n'
'firmware-linux-free\n'
'firmware-atheros\n'
'midisport-firmware\n'
'firmware-misc-nonfree\n'
'firmware-amd-graphics\n'
'firmware-bnx2\n'
'firmware-bnx2x\n'
'firmware-brcm80211\n'
'firmware-cavium\n'
'firmware-intel-sound\n'
'firmware-iwlwifi\n'
'firmware-libertas\n'
'firmware-linux\n'
'firmware-linux-nonfree\n'
'firmware-misc-nonfree\n'
'firmware-myricom\n'
'firmware-netronome\n'
'firmware-netxen\n'
'firmware-qcom-media\n'
'firmware-qcom-soc\n'
'firmware-qlogic\n'
'firmware-realtek\n'
'firmware-samsung\n'
'firmware-siano\n'
#'firmware-ti-connectivity\n'
'firmware-sof-signed\n'
#This Driver is not available in Devuan 'firmware-zd1211'
)
firmware_list_arm = ('firmware-linux\n'
'firmware-linux-nonfree\n'
'firmware-misc-nonfree\n'
'firmware-realtek\n'
'firmware-atheros\n'
firmware_list_arm = ('firmware-atheros\n'
'firmware-bnx2\n'
'firmware-bnx2x\n'
'firmware-brcm80211\n'
'firmware-iwlwifi\n'
'firmware-linux\n'
'firmware-linux-nonfree\n'
'firmware-libertas\n'
'firmware-misc-nonfree\n'
'firmware-netxen\n'
'firmware-zd1211\n'
'firmware-realtek\n'
'firmware-ralink'
'firmware-zd1211\n'
)
binary_list_64 = ('efibootmgr\n'
'grub-common\n'
'grub2-common\n'
'grub-efi\n'
'grub-efi-amd64\n'
binary_list_shared = ('efibootmgr\n'
'grub-common\n'
'grub2-common\n'
'grub-efi\n'
'libefiboot1\n'
'libefivar1\n'
'mokutil\n'
'os-prober\n'
'shim-signed\n'
'shim-signed-common\n'
'shim-unsigned\n'
)
binary_list_64 = ('grub-efi-amd64\n'
'grub-efi-amd64-bin\n'
'grub-efi-amd64-signed\n'
'libefiboot1\n'
'libefivar1\n'
'mokutil\n'
'os-prober\n'
'shim-helpers-amd64-signed\n'
'shim-signed\n'
'shim-signed-common\n'
'shim-unsigned\n'
'grub-efi-ia32-bin'
'grub-efi-ia32-bin\n'
)
binary_list_arm = ('efibootmgr\n'
'grub-common\n'
'grub2-common\n'
'grub-efi\n'
'grub-efi-arm64\n'
binary_list_arm = ('grub-efi-arm64\n'
'grub-efi-arm64-bin\n'
'grub-efi-arm64-signed\n'
'libefiboot1\n'
'libefivar1\n'
'mokutil\n'
'os-prober\n'
'shim-helpers-arm64-signed\n'
'shim-signed\n'
'shim-signed-common\n'
'shim-unsigned'
)
binary_list_32 = ('efibootmgr\n'
'grub-common\n'
'grub2-common\n'
'grub-efi\n'
'grub-efi-ia32\n'
binary_list_32 = ('grub-efi-ia32\n'
'grub-efi-ia32-bin\n'
'grub-efi-ia32-signed\n'
'grub-efi-ia32-bin\n'
'libefiboot1\n'
'libefivar1\n'
'mokutil\n'
'os-prober\n'
'shim-helpers-i386-signed\n'
'shim-signed\n'
'shim-signed-common\n'
'shim-unsigned\n'
)
### END Inflate
# General Shared commands
shell_copy_folders = 'cp -r '
### Start Arch Specific
# Set the LB configs
lbset_deb32 = ('lb config --mode debian --distribution bookworm'
' --archive-areas "main contrib non-free non-free-firmware"'
@ -542,6 +377,7 @@ lbset_dev64 = ('lb config noauto --clean --color --quiet'
' --win32-loader false --checksums sha512 --zsync false'
)
lbset_devarm = ('lb config no auto --clean --color --quiet'
' --archive-areas "main contrib non-free non-free-firmware"'
' --architectures arm64 --apt-recommends true'
@ -569,6 +405,7 @@ lbset_devarm = ('lb config no auto --clean --color --quiet'
' --checksums sha512 --zsync false'
)
lbset_debarm = ('lb config noauto --clean --color --quiet'
' --archive-areas "main contrib non-free non-free-firmware"'
' --architectures arm64 --apt-recommends true'

View File

@ -1,49 +0,0 @@
"""
* Author: "PeppermintOS Team(peppermintosteam@proton.me)
*
* License: SPDX-License-Identifier: GPL-3.0-or-later
*
* Move and copy files as needed
"""
import os
import shutil
from pathlib import Path
import paths
# If you need to add additional files you can do that as needed.
# you are not limited to what is currently listed.
BSTRING = paths.bstring_iso_configs
home_folder = Path( BSTRING ).expanduser()
def copy_specific_files():
"""Copy specific files"""
# Back to bubble
os.chdir(home_folder)
wp_chroot = paths.WPCHROOT
# Set the current working folder
cur_dir = os.getcwd().replace('/', '/')
shutil.copy(cur_dir + paths.src_alias, wp_chroot + paths.des_alias)
shutil.copy(cur_dir + paths.src_xdaily, wp_chroot + paths.des_xdaily)
shutil.copy(cur_dir + paths.src_hub, wp_chroot + paths.des_hub)
shutil.copy(cur_dir + paths.src_welcome, wp_chroot + paths.des_welcome)
shutil.copy(cur_dir + paths.src_kumo, wp_chroot + paths.des_kumo)
shutil.copy(cur_dir + paths.src_icon, wp_chroot + paths.des_icon)
# Took out as its an option, leaving here in case wanted later
#shutil.copy(cur_dir + paths.src_plank, wp_chroot + paths.des_plank)
shutil.copy(cur_dir + paths.src_lightdm, wp_chroot + paths.des_lightdm)
shutil.copy(cur_dir + paths.src_ply, cur_dir + paths.des_ply)
shutil.copy(cur_dir + paths.src_lightdm_greeter,
cur_dir + paths.des_lightdm_greeter
)
def set_symlinks():
""" Set any symlinks that are needed """
wp_chroot = paths.WPCHROOT
cur_dir = os.getcwd().replace('/', '/')
os.symlink('Debian.info', cur_dir + '/' + wp_chroot + paths.pep_info)
os.symlink('Debian.mirrors', cur_dir + '/' + wp_chroot + paths.pep_mirror)
os.symlink("debian.csv", cur_dir + '/' + wp_chroot + paths.pep_csv )

View File

@ -1,162 +0,0 @@
"""
* Author: "PeppermintOS Team(peppermintosteam@proton.me)
*
* License: SPDX-License-Identifier: GPL-3.0-or-later
*
* Move and copy files as needed
"""
import os
import shutil
from pathlib import Path
import paths
import conf
# If you need to add additional paths you can do that as needed.
# you are not limited to what is currently listed.
BSTRING = paths.bstring_iso_configs
home_folder = Path(BSTRING).expanduser()
def copy_folders_files():
"""" Copy all files and folders """
# Back to bubbles
os.chdir(home_folder)
# Set the working path
wp_chroot = paths.WPCHROOT
# Set the current working folder
cur_dir = os.getcwd().replace('/', '/')
shutil.copytree(cur_dir + paths.src_apps,
wp_chroot + paths.des_apps,
dirs_exist_ok=True
)
#Temp Stop cantrell font
#shutil.copytree(cur_dir + paths.src_font,
# wp_chroot + paths.des_font,
# dirs_exist_ok=True
# )
shutil.copytree(cur_dir + paths.src_hooks_live,
wp_chroot + paths.des_hooks_live,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_hooks_normal,
cur_dir + paths.des_hooks_normal,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_issue,
cur_dir + paths.des_issue,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_issue,
wp_chroot + paths.des_issue_etc,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_issue,
wp_chroot + paths.des_issues_opt,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_polkit,
wp_chroot + paths.des_polkit,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_database,
wp_chroot + paths.des_database,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_wallpaper,
wp_chroot + paths.des_wallpaper,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_user_configs,
wp_chroot + paths.des_user_configs,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_pixmaps,
wp_chroot + paths.des_pixmaps,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_menu,
wp_chroot + paths.des_menu,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_xfce,
wp_chroot + paths.des_xfce,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_face,
wp_chroot + paths.des_face,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_neo_fetch,
wp_chroot + paths.des_neo_fetch,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_thunar,
wp_chroot + paths.des_thunar,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_pmostools,
wp_chroot + paths.des_pmostools,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_auto_start,
wp_chroot + paths.des_auto_start,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_pylibs,
wp_chroot + paths.des_pylibs,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_ply_lines,
wp_chroot + paths.des_ply_lines,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dbase_grub,
wp_chroot + paths.des_dbase_grub,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dbase_lockscreen,
wp_chroot + paths.des_dbase_lockscreen,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dbase_login,
wp_chroot + paths.des_dbase_login,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dbase_wallpaper,
wp_chroot + paths.des_dbase_wallpaper,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_brand,
wp_chroot + paths.des_brand,
dirs_exist_ok=True
)
blthcmd = conf.shell_copy_folders + BSTRING + paths.src_debian + BSTRING + paths.des_themes
grthcmd = conf.shell_copy_folders + BSTRING + paths.src_manjaro + BSTRING + paths.des_themes
rdthcmd = conf.shell_copy_folders + BSTRING + paths.src_peppermint + BSTRING + paths.des_themes
blthcmd_dark = conf.shell_copy_folders + BSTRING + paths.src_debian_dark + BSTRING + paths.des_themes
grthcmd_dark = conf.shell_copy_folders + BSTRING + paths.src_manjaro_dark + BSTRING + paths.des_themes
rdthcmd_dark = conf.shell_copy_folders + BSTRING + paths.src_peppermint_dark + BSTRING + paths.des_themes
os.system(blthcmd)
os.system(grthcmd)
os.system(rdthcmd)
os.system(blthcmd_dark)
os.system(grthcmd_dark)
os.system(rdthcmd_dark)
blicocmd = conf.shell_copy_folders + BSTRING + paths.src_tela_blue_dark + BSTRING + paths.des_icons
gricocmd = conf.shell_copy_folders + BSTRING + paths.src_tela_green_dark + BSTRING + paths.des_icons
rdicocmd = conf.shell_copy_folders + BSTRING + paths.src_tela_red_dark + BSTRING + paths.des_icons
base_blicocmd = conf.shell_copy_folders + BSTRING + paths.src_tela_blue_base + BSTRING + paths.des_icons
base_gricocmd = conf.shell_copy_folders + BSTRING + paths.src_tela_green_base + BSTRING + paths.des_icons
base_rdicocmd = conf.shell_copy_folders + BSTRING + paths.src_tela_red_base + BSTRING + paths.des_icons
nmicocmd = conf.shell_copy_folders + BSTRING + paths.src_tela + BSTRING + paths.des_icons
os.system(blicocmd)
os.system(gricocmd)
os.system(rdicocmd)
os.system(base_blicocmd)
os.system(base_gricocmd)
os.system(base_rdicocmd)
os.system(nmicocmd)

View File

@ -1,170 +0,0 @@
"""
* Author: "PeppermintOS Team(peppermintosteam@proton.me)
*
* License: SPDX-License-Identifier: GPL-3.0-or-later
*
* Move and copy files as needed
"""
import os
import shutil
from pathlib import Path
import conf
import paths
import inflate_bubble
import finish_cleanup
import copy_folders
import copy_files_specified
# Set the home path used regardless the user logged in
BSTRING = paths.bstring_iso_configs
home_folder = Path(BSTRING).expanduser()
# Move to iso_configs
os.chdir(home_folder)
# Set the working path
WP_CHROOT = paths.WPCHROOT
# Set the current working folder
cur_dir = os.getcwd().replace('/', '/')
def lbinit():
""" runs the lb config command for the iso build"""
current_dir = os.getcwd().replace('/', '/')
os.chdir(current_dir + '/fusato')
lbsetup = (conf.lbset_deb32)
os.system(lbsetup)
def copy_deb32_specific():
"""" Debian 32 copy jobs"""
shutil.copytree(cur_dir + paths.src_deb32_osrelease,
WP_CHROOT + paths.des_osrelease,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_deb32_osrelease,
WP_CHROOT + paths.des_osrelease_opt,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_deb32_slpash,
cur_dir + paths.des_splash,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_deb32_isolinux,
cur_dir + paths.des_isolinux,
dirs_exist_ok=True
)
#shutil.copytree(cur_dir + paths.src_deb32_multi,
# cur_dir + paths.des_archives,
# dirs_exist_ok=True
# )
shutil.copytree(cur_dir + paths.src_deb_grub_theme,
WP_CHROOT + paths.des_grub_theme,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_deb32_modules,
WP_CHROOT + paths.des_modules,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_deb_splash_image,
cur_dir + paths.des_splash_image_isolinux,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_deb_splash_image,
cur_dir + paths.des_splash_image_grub,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_deb_live_theme,
cur_dir + paths.des_live_theme,
dirs_exist_ok=True
)
shutil.copy(cur_dir + paths.src_deb32_grub_etc,
WP_CHROOT + paths.des_grub_etc
)
shutil.copy(cur_dir + paths.src_deb32_settings,
WP_CHROOT + paths.des_setttings
)
shutil.copy(cur_dir + paths.src_deb32_installer,
WP_CHROOT + paths.des_installer
)
#shutil.copy(cur_dir + paths.src_deb32_sourcesfinal,
# WP_CHROOT + paths.des_sourcesfinal
# )
shutil.copy(cur_dir + paths.src_deb32_bootloader,
WP_CHROOT + paths.des_bootloader
)
shutil.copy(cur_dir + paths.src_deb32_netinstall,
WP_CHROOT + paths.des_netinstall
)
shutil.copy(cur_dir + paths.src_deb32_sourcelist,
WP_CHROOT + paths.des_sourcelist
)
def run_build():
""" Run and start the build"""
run_cmd = 'sudo lb build'
os.chdir(home_folder)
os.chdir('fusato')
os.system(run_cmd)
def readybuild():
""" Ready the bld structure"""
if os.path.exists('fusato'):
rm_cmd = "sudo rm -r -f fusato"
os.system(rm_cmd)
os.makedirs('fusato')
# Run lb config to begin the setup
lbinit()
# Prep the folders
inflate_bubble.set_fusato_structure()
# Packages
inflate_bubble.set_desktop_environment()
inflate_bubble.set_extra_packages()
inflate_bubble.set_general_packages()
inflate_bubble.set_system_packages()
inflate_bubble.set_system_packages_32()
# inflate_bubble.set_artwork_packages()
inflate_bubble.set_python_packages()
inflate_bubble.set_calamares_packages()
inflate_bubble.set_firmware_packages()
inflate_bubble.set_binary_packages_32()
copy_folders.copy_folders_files()
copy_files_specified.copy_specific_files()
copy_files_specified.set_symlinks()
copy_deb32_specific()
run_build()
finish_cleanup.make_check_sum()
finish_cleanup.copy_iso_file_nightly_deb32()
finish_cleanup.kill_old_iso()
else:
os.makedirs('fusato')
# Run lb config to begin the setup
lbinit()
# Prep the folders
inflate_bubble.set_fusato_structure()
# Packages
inflate_bubble.set_desktop_environment()
inflate_bubble.set_extra_packages()
inflate_bubble.set_general_packages()
inflate_bubble.set_system_packages()
inflate_bubble.set_system_packages_32()
# inflate_bubble.set_artwork_packages()
inflate_bubble.set_python_packages()
inflate_bubble.set_calamares_packages()
inflate_bubble.set_firmware_packages()
inflate_bubble.set_binary_packages_32()
copy_folders.copy_folders_files()
copy_files_specified.copy_specific_files()
copy_files_specified.set_symlinks()
copy_deb32_specific()
run_build()
finish_cleanup.make_check_sum()
finish_cleanup.copy_iso_file_nightly_deb32()
finish_cleanup.kill_old_iso()
readybuild()

View File

@ -1,132 +0,0 @@
"""
* Author: "PeppermintOS Team(peppermintosteam@proton.me)
*
* License: SPDX-License-Identifier: GPL-3.0-or-later
*
* Move and copy files as needed
"""
import os
import shutil
from pathlib import Path
import conf
import paths
import inflate_bubble
import finish_cleanup
import copy_folders
import copy_files_specified
import collections
# Set the home path used regardless the user logged in
BSTRING = paths.bstring_iso_configs
home_folder = Path(BSTRING).expanduser()
# Move to iso_configs
os.chdir(home_folder)
# Set the working path
WP_CHROOT = paths.WPCHROOT
# Set the current working folder
cur_dir = os.getcwd().replace('/', '/')
def lbinit():
""" runs the lb config command for the iso build"""
current_dir = os.getcwd().replace('/', '/')
os.chdir(current_dir + '/fusato')
lbsetup = (conf.lbset_deb64)
os.system(lbsetup)
def copy_deb64_specific():
"""" Debian 64 copy jobs
First we copy all the folder trees
Then we copy specific files.
The inputs are stored in the conf.py file
"""
# Get the CHROOT Folders
source_q = collections.deque(conf.src_paths_chroot_deb64)
destination_q = collections.deque(conf.des_paths_chroot)
src_size_q = len(source_q)
for p in range(src_size_q):
x = source_q.popleft()
y = destination_q.popleft()
shutil.copytree(cur_dir + x,
WP_CHROOT + y,
dirs_exist_ok=True
)
# Get the NONChroot Folders
source_n = collections.deque(conf.src_paths_non_chroot_deb64)
destination_n = collections.deque(conf.des_paths_non_chroot)
src_size_n = len(source_n)
for p in range(src_size_n):
x = source_n.popleft()
y = destination_n.popleft()
shutil.copytree(cur_dir + x,
cur_dir + y,
dirs_exist_ok=True
)
# Get Specific files for CHROOT
source_f = collections.deque(conf.src_files_deb64)
destination_f = collections.deque(conf.des_files)
src_size_f = len(source_f)
for j in range(src_size_f):
w = source_f.popleft()
e = destination_f.popleft()
shutil.copy(cur_dir + w,
WP_CHROOT + e
)
def run_build():
""" Run and start the build"""
run_cmd = 'sudo lb build'
os.chdir(home_folder)
os.chdir('fusato')
os.system(run_cmd)
def execute_build_cmds():
""" Loop through the commands for the
Build Process
"""
# Setup the structure
cmd_list_setup = collections.deque(conf.shared_setup_cmds)
cmd_size_setup = len(cmd_list_setup)
for h in range(cmd_size_setup):
x = cmd_list_setup.popleft()
execute = x + '()'
exec(execute)
# Arch Specific Commands
cmd_list_64 = collections.deque(conf.deb_64_cmds)
cmd_size_64 = len(cmd_list_64)
for h in range(cmd_size_64):
x = cmd_list_64.popleft()
execute = x + '()'
exec(execute)
# Run the Build
cmd_list_build = collections.deque(conf.shared_run_build)
cmd_size_build = len(cmd_list_build)
for h in range(cmd_size_build):
x = cmd_list_build.popleft()
execute = x + '()'
exec(execute)
def readybuild():
"""" Ready the bld structure"""
if os.path.exists('fusato'):
rm_cmd = "sudo rm -r -f fusato"
os.system(rm_cmd)
os.makedirs('fusato')
execute_build_cmds()
else:
os.makedirs('fusato')
execute_build_cmds()
readybuild()

View File

@ -1,169 +0,0 @@
"""
* Author: "PeppermintOS Team(peppermintosteam@proton.me)
*
* License: SPDX-License-Identifier: GPL-3.0-or-later
*
* Move and copy files as needed
"""
import os
import shutil
from pathlib import Path
import conf
import paths
import inflate_bubble
import finish_cleanup
import copy_folders
import copy_files_specified
# Set the home path used regardless the user logged in
BSTRING = paths.bstring_iso_configs
home_folder = Path(BSTRING).expanduser()
# Move to iso_configs
os.chdir(home_folder)
# Set the working path
WP_CHROOT = paths.WPCHROOT
# Set the current working folder
cur_dir = os.getcwd().replace('/', '/')
def lbinit():
""" runs the lb config command for the iso build"""
current_dir = os.getcwd().replace('/', '/')
os.chdir(current_dir + '/fusato')
lbsetup = (conf.lbset_debarm)
os.system(lbsetup)
def copy_debarm_specific():
"""" Debian arm64 copy jobs"""
shutil.copytree(cur_dir + paths.src_debarm_osrelease,
WP_CHROOT + paths.des_osrelease,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_debarm_osrelease,
WP_CHROOT + paths.des_osrelease_opt,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_debarm_slpash,
cur_dir + paths.des_splash,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_debarm_isolinux,
cur_dir + paths.des_isolinux,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_debarm_multi,
cur_dir + paths.des_archives,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_deb_grub_theme,
WP_CHROOT + paths.des_grub_theme,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_debarm_modules,
WP_CHROOT + paths.des_modules,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_deb_splash_image,
cur_dir + paths.des_splash_image_isolinux,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_deb_splash_image,
cur_dir + paths.des_splash_image_grub,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_deb_live_theme,
cur_dir + paths.des_live_theme,
dirs_exist_ok=True
)
shutil.copy(cur_dir + paths.src_debarm_grub_etc,
WP_CHROOT + paths.des_grub_etc
)
shutil.copy(cur_dir + paths.src_debarm_settings,
WP_CHROOT + paths.des_setttings
)
shutil.copy(cur_dir + paths.src_debarm_installer,
WP_CHROOT + paths.des_installer
)
shutil.copy(cur_dir + paths.src_debarm_sourcesfinal,
WP_CHROOT + paths.des_sourcesfinal
)
shutil.copy(cur_dir + paths.src_debarm_bootloader,
WP_CHROOT + paths.des_bootloader
)
shutil.copy(cur_dir + paths.src_debarm_netinstall,
WP_CHROOT + paths.des_netinstall
)
shutil.copy(cur_dir + paths.src_debarm_sourcelist,
WP_CHROOT + paths.des_sourcelist
)
def run_build():
run_cmd = 'sudo lb build'
os.chdir(home_folder)
os.chdir('fusato')
os.system(run_cmd)
def readybuild():
"""" Ready the bld structure"""
if os.path.exists('fusato'):
rm_cmd = "sudo rm -r -f fusato"
os.system(rm_cmd)
os.makedirs('fusato')
# Run lb config to begin the setup
lbinit()
# Prep the folders
inflate_bubble.set_fusato_structure()
# Packages
inflate_bubble.set_desktop_environment()
inflate_bubble.set_extra_packages()
inflate_bubble.set_general_packages()
inflate_bubble.set_system_packages()
inflate_bubble.set_artwork_packages()
inflate_bubble.set_python_packages()
inflate_bubble.set_calamares_packages()
inflate_bubble.set_firmware_packages_arm()
inflate_bubble.set_binary_packages_arm64()
inflate_bubble.set_system_packages_arm()
copy_folders.copy_folders_files()
copy_files_specified.copy_specific_files()
copy_files_specified.set_symlinks()
copy_debarm_specific()
run_build()
finish_cleanup.make_check_sum()
finish_cleanup.copy_iso_file_nightly_debarm()
finish_cleanup.kill_old_iso()
else:
os.makedirs('fusato')
# Run lb config to begin the setup
lbinit()
# Prep the folders
inflate_bubble.set_fusato_structure()
# Packages
inflate_bubble.set_desktop_environment()
inflate_bubble.set_extra_packages()
inflate_bubble.set_general_packages()
inflate_bubble.set_system_packages()
inflate_bubble.set_artwork_packages()
inflate_bubble.set_python_packages()
inflate_bubble.set_calamares_packages()
inflate_bubble.set_firmware_packages_arm()
inflate_bubble.set_binary_packages_arm64()
inflate_bubble.set_system_packages_arm()
copy_folders.copy_folders_files()
copy_files_specified.copy_specific_files()
copy_files_specified.set_symlinks()
copy_debarm_specific()
run_build()
finish_cleanup.make_check_sum()
finish_cleanup.copy_iso_file_nightly_debarm()
finish_cleanup.kill_old_iso()
readybuild()

View File

@ -1,171 +0,0 @@
"""
* Author: "PeppermintOS Team(peppermintosteam@proton.me)
*
* License: SPDX-License-Identifier: GPL-3.0-or-later
*
* Move and copy files as needed
"""
import os
import shutil
from pathlib import Path
import conf
import paths
import inflate_bubble
import finish_cleanup
import copy_folders
import copy_files_specified
# Set the home path used regardless the user logged in
BSTRING = paths.bstring_iso_configs
home_folder = Path(BSTRING).expanduser()
# Move to iso_configs
os.chdir(home_folder)
# Set the working path
WP_CHROOT = paths.WPCHROOT
# Set the current working folder
cur_dir = os.getcwd().replace('/', '/')
def lbinit():
""" runs the lb config command for the iso build"""
current_dir = os.getcwd().replace('/', '/')
os.chdir(current_dir + '/fusato')
lbsetup = (conf.lbset_dev32)
os.system(lbsetup)
def copy_dev32_specific():
"""" Devuan 32 copy jobs"""
shutil.copytree(cur_dir + paths.src_dev32_osrelease,
WP_CHROOT + paths.des_osrelease,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev32_osrelease,
WP_CHROOT + paths.des_osrelease_opt,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev32_slpash,
cur_dir + paths.des_splash,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev32_isolinux,
cur_dir + paths.des_isolinux,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev32_multi,
cur_dir + paths.des_archives,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev_grub_theme,
WP_CHROOT + paths.des_grub_theme,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev32_modules,
WP_CHROOT + paths.des_modules,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev_splash_image,
cur_dir + paths.des_splash_image_isolinux,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev_splash_image,
cur_dir + paths.des_splash_image_grub,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev_live_theme,
cur_dir + paths.des_live_theme,
dirs_exist_ok=True
)
shutil.copy(cur_dir + paths.src_dev32_grub_etc,
WP_CHROOT + paths.des_grub_etc
)
shutil.copy(cur_dir + paths.src_dev32_settings,
WP_CHROOT + paths.des_setttings
)
shutil.copy(cur_dir + paths.src_dev32_installer,
WP_CHROOT + paths.des_installer
)
shutil.copy(cur_dir + paths.src_dev32_sourcesfinal,
WP_CHROOT + paths.des_sourcesfinal
)
shutil.copy(cur_dir + paths.src_dev32_bootloader,
WP_CHROOT + paths.des_bootloader
)
shutil.copy(cur_dir + paths.src_dev32_netinstall,
WP_CHROOT + paths.des_netinstall
)
shutil.copy(cur_dir + paths.src_dev32_sourcelist,
WP_CHROOT + paths.des_sourcelist
)
def run_build():
""" Run and start the build"""
run_cmd = 'sudo lb build'
os.chdir(home_folder)
os.chdir('fusato')
os.system(run_cmd)
def readybuild():
""" Ready the bld structure"""
if os.path.exists('fusato'):
rm_cmd = "sudo rm -r -f fusato"
os.system(rm_cmd)
os.makedirs('fusato')
# Run lb config to begin the setup
lbinit()
# Prep the folders
inflate_bubble.set_fusato_structure()
# Packages
inflate_bubble.set_desktop_environment()
inflate_bubble.set_extra_packages()
inflate_bubble.set_general_packages()
inflate_bubble.set_system_packages()
inflate_bubble.set_system_packages_32()
# inflate_bubble.set_artwork_packages()
inflate_bubble.set_python_packages()
inflate_bubble.set_calamares_packages()
inflate_bubble.set_firmware_packages()
inflate_bubble.set_binary_packages_32()
copy_folders.copy_folders_files()
copy_files_specified.copy_specific_files()
copy_files_specified.set_symlinks()
copy_dev32_specific()
run_build()
finish_cleanup.make_check_sum()
finish_cleanup.copy_iso_file_nightly_dev32()
finish_cleanup.kill_old_iso()
else:
os.makedirs('fusato')
# Run lb config to begin the setup
lbinit()
# Prep the folders
inflate_bubble.set_fusato_structure()
# Packages
inflate_bubble.set_desktop_environment()
inflate_bubble.set_extra_packages()
inflate_bubble.set_general_packages()
inflate_bubble.set_system_packages()
inflate_bubble.set_system_packages_32()
# inflate_bubble.set_artwork_packages()
inflate_bubble.set_python_packages()
inflate_bubble.set_calamares_packages()
inflate_bubble.set_firmware_packages()
inflate_bubble.set_binary_packages_32()
copy_folders.copy_folders_files()
copy_files_specified.copy_specific_files()
copy_files_specified.set_symlinks()
copy_dev32_specific()
run_build()
finish_cleanup.make_check_sum()
finish_cleanup.copy_iso_file_nightly_dev32()
finish_cleanup.kill_old_iso()
readybuild()

View File

@ -1,173 +0,0 @@
"""
* Author: "PeppermintOS Team(peppermintosteam@proton.me)
*
* License: SPDX-License-Identifier: GPL-3.0-or-later
*
* Move and copy files as needed
"""
import os
import shutil
from pathlib import Path
import conf
import paths
import inflate_bubble
import finish_cleanup
import copy_folders
import copy_files_specified
# Set the home path used regardless the user logged in
BSTRING = paths.bstring_iso_configs
home_folder = Path(BSTRING).expanduser()
# Move to iso_configs
os.chdir(home_folder)
# Set the working path
WP_CHROOT = paths.WPCHROOT
# Set the current working folder
cur_dir = os.getcwd().replace('/', '/')
def lbinit():
""" runs the lb config command for the iso build"""
current_dir = os.getcwd().replace('/', '/')
os.chdir(current_dir + '/fusato')
lbsetup = (conf.lbset_dev64)
os.system(lbsetup)
def copy_dev64_specific():
"""" Devuan 64 copy jobs"""
shutil.copytree(cur_dir + paths.src_dev64_osrelease,
WP_CHROOT + paths.des_osrelease,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev64_osrelease,
WP_CHROOT + paths.des_osrelease_opt,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev64_slpash,
cur_dir + paths.des_splash,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev64_isolinux,
cur_dir + paths.des_isolinux,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev64_multi,
cur_dir + paths.des_archives,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev_grub_theme,
WP_CHROOT + paths.des_grub_theme,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev64_modules,
WP_CHROOT + paths.des_modules,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev_splash_image,
cur_dir + paths.des_splash_image_isolinux,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev_splash_image,
cur_dir + paths.des_splash_image_grub,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev_live_theme,
cur_dir + paths.des_live_theme,
dirs_exist_ok=True
)
shutil.copy(cur_dir + paths.src_dev64_grub_etc,
WP_CHROOT + paths.des_grub_etc
)
shutil.copy(cur_dir + paths.src_dev64_settings,
WP_CHROOT + paths.des_setttings
)
shutil.copy(cur_dir + paths.src_dev64_installer,
WP_CHROOT + paths.des_installer
)
shutil.copy(cur_dir + paths.src_dev64_sourcesfinal,
WP_CHROOT + paths.des_sourcesfinal
)
shutil.copy(cur_dir + paths.src_dev64_bootloader,
WP_CHROOT + paths.des_bootloader
)
shutil.copy(cur_dir + paths.src_dev64_netinstall,
WP_CHROOT + paths.des_netinstall
)
shutil.copy(cur_dir + paths.src_dev64_sourcelist,
WP_CHROOT + paths.des_sourcelist
)
def run_build():
""" Run and start the build"""
run_cmd = 'sudo lb build'
os.chdir(home_folder)
os.chdir('fusato')
os.system(run_cmd)
def readybuild():
"""" Ready the bld structure"""
if os.path.exists('fusato'):
rm_cmd = "sudo rm -r -f fusato"
os.system(rm_cmd)
os.makedirs('fusato')
# Run lb config to begin the setup
lbinit()
# Prep the folders
inflate_bubble.set_fusato_structure()
# Packages
inflate_bubble.set_desktop_environment()
inflate_bubble.set_extra_packages()
inflate_bubble.set_general_packages()
inflate_bubble.set_system_packages()
inflate_bubble.set_system_packages_64()
inflate_bubble.set_artwork_packages()
inflate_bubble.set_python_packages()
inflate_bubble.set_calamares_packages()
#inflate_bubble.set_firmware_packages()
inflate_bubble.set_binary_packages_64()
copy_folders.copy_folders_files()
copy_files_specified.copy_specific_files()
copy_files_specified.set_symlinks()
copy_dev64_specific()
run_build()
finish_cleanup.make_check_sum()
finish_cleanup.copy_iso_file_nightly_dev64()
finish_cleanup.kill_old_iso()
else:
os.makedirs('fusato')
# Run lb config to begin the setup
lbinit()
# Prep the folders
inflate_bubble.set_fusato_structure()
# Packages
inflate_bubble.set_desktop_environment()
inflate_bubble.set_extra_packages()
inflate_bubble.set_general_packages()
inflate_bubble.set_system_packages()
inflate_bubble.set_system_packages_64()
inflate_bubble.set_artwork_packages()
inflate_bubble.set_python_packages()
inflate_bubble.set_calamares_packages()
#inflate_bubble.set_firmware_packages()
inflate_bubble.set_binary_packages_64()
copy_folders.copy_folders_files()
copy_files_specified.copy_specific_files()
copy_files_specified.set_symlinks()
copy_dev64_specific()
run_build()
finish_cleanup.make_check_sum()
finish_cleanup.copy_iso_file_nightly_dev64()
finish_cleanup.kill_old_iso()
readybuild()

View File

@ -1,169 +0,0 @@
"""
* Author: "PeppermintOS Team(peppermintosteam@proton.me)
*
* License: SPDX-License-Identifier: GPL-3.0-or-later
*
* Move and copy files as needed
"""
import os
import shutil
from pathlib import Path
import conf
import paths
import inflate_bubble
import finish_cleanup
import copy_folders
import copy_files_specified
# Set the home path used regardless the user logged in
BSTRING = paths.bstring_iso_configs
home_folder = Path(BSTRING).expanduser()
# Move to iso_configs
os.chdir(home_folder)
# Set the working path
WP_CHROOT = paths.WPCHROOT
# Set the current working folder
cur_dir = os.getcwd().replace('/', '/')
def lbinit():
""" runs the lb config command for the iso build"""
current_dir = os.getcwd().replace('/', '/')
os.chdir(current_dir + '/fusato')
lbsetup = (conf.lbset_devarm)
os.system(lbsetup)
def copy_devarm_specific():
"""" Devuan arm64 copy jobs"""
shutil.copytree(cur_dir + paths.src_devarm_osrelease,
WP_CHROOT + paths.des_osrelease,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_devarm_osrelease,
WP_CHROOT + paths.des_osrelease_opt,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_devarm_slpash,
cur_dir + paths.des_splash,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_devarm_isolinux,
cur_dir + paths.des_isolinux,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_devarm_multi,
cur_dir + paths.des_archives,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev_grub_theme,
WP_CHROOT + paths.des_grub_theme,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_devarm_modules,
WP_CHROOT + paths.des_modules,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev_splash_image,
cur_dir + paths.des_splash_image_isolinux,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev_splash_image,
cur_dir + paths.des_splash_image_grub,
dirs_exist_ok=True
)
shutil.copytree(cur_dir + paths.src_dev_live_theme,
cur_dir + paths.des_live_theme,
dirs_exist_ok=True
)
shutil.copy(cur_dir + paths.src_devarm_grub_etc,
WP_CHROOT + paths.des_grub_etc
)
shutil.copy(cur_dir + paths.src_devarm_settings,
WP_CHROOT + paths.des_setttings
)
shutil.copy(cur_dir + paths.src_devarm_installer,
WP_CHROOT + paths.des_installer
)
shutil.copy(cur_dir + paths.src_devarm_sourcesfinal,
WP_CHROOT + paths.des_sourcesfinal
)
shutil.copy(cur_dir + paths.src_devarm_bootloader,
WP_CHROOT + paths.des_bootloader
)
shutil.copy(cur_dir + paths.src_devarm_netinstall,
WP_CHROOT + paths.des_netinstall
)
shutil.copy(cur_dir + paths.src_devarm_sourcelist,
WP_CHROOT + paths.des_sourcelist
)
def run_build():
run_cmd = 'sudo lb build'
os.chdir(home_folder)
os.chdir('fusato')
os.system(run_cmd)
def readybuild():
"""" Ready the bld structure"""
if os.path.exists('fusato'):
rm_cmd = "sudo rm -r -f fusato"
os.system(rm_cmd)
os.makedirs('fusato')
# Run lb config to begin the setup
lbinit()
# Prep the folders
inflate_bubble.set_fusato_structure()
# Packages
inflate_bubble.set_desktop_environment()
inflate_bubble.set_extra_packages()
inflate_bubble.set_general_packages()
inflate_bubble.set_system_packages()
inflate_bubble.set_artwork_packages()
inflate_bubble.set_python_packages()
inflate_bubble.set_calamares_packages()
inflate_bubble.set_firmware_packages_arm()
inflate_bubble.set_binary_packages_arm64()
inflate_bubble.set_system_packages_arm()
copy_folders.copy_folders_files()
copy_files_specified.copy_specific_files()
copy_files_specified.set_symlinks()
copy_devarm_specific()
run_build()
finish_cleanup.make_check_sum()
finish_cleanup.copy_iso_file_nightly_devarm()
finish_cleanup.kill_old_iso()
else:
os.makedirs('fusato')
# Run lb config to begin the setup
lbinit()
# Prep the folders
inflate_bubble.set_fusato_structure()
# Packages
inflate_bubble.set_desktop_environment()
inflate_bubble.set_extra_packages()
inflate_bubble.set_general_packages()
inflate_bubble.set_system_packages()
inflate_bubble.set_artwork_packages()
inflate_bubble.set_python_packages()
inflate_bubble.set_calamares_packages()
inflate_bubble.set_firmware_packages_arm()
inflate_bubble.set_binary_packages_arm64()
inflate_bubble.set_system_packages_arm()
copy_folders.copy_folders_files()
copy_files_specified.copy_specific_files()
copy_files_specified.set_symlinks()
copy_devarm_specific()
run_build()
finish_cleanup.make_check_sum()
finish_cleanup.copy_iso_file_nightly_devarm()
finish_cleanup.kill_old_iso()
readybuild()

View File

@ -13,114 +13,138 @@ import paths
import conf
# Set the home path used regardless the user logged in
BSTRING = paths.bstring_iso_conifgs_fusato
home_folder = Path(BSTRING).expanduser()
def set_desktop_environment():
""" Create the list for the desktop environment"""
# Start in iso_configs/fusato
os.chdir(home_folder)
# set current directory
current_dir = os.getcwd().replace('/', '/')
# change to package-lists
os.chdir(current_dir + paths.de_path)
with open('desktop.list.chroot', 'x', encoding='UTF-8') as de_file:
de_file.write(conf.env_list)
def set_extra_packages():
""" Create the list for the desktop environment extras goodies"""
with open(
'extra-desktop.list.chroot', 'x', encoding='UTF-8'
) as extra_file:
extra_file.write(conf.desktop_list)
def set_general_packages():
""" Create the list for standard install packages"""
with open('packages.list.chroot', 'x', encoding='UTF-8') as general_file:
general_file.write(conf.general_list)
def set_system_packages():
""" Create the list for system management packages"""
with open('system.list.chroot', 'x', encoding='UTF-8') as system_file:
system_file.write(conf.system_list)
def set_system_packages_32():
""" Create the list for system management packages"""
with open('system.list.chroot', 'a', encoding='UTF-8') as system_file:
system_file.write(conf.system_list_32)
def set_system_packages_64():
""" Create the list for system management packages"""
with open('system.list.chroot', 'a', encoding='UTF-8') as system_file:
system_file.write(conf.system_list_64)
def set_system_packages_arm():
""" Create the list for system management packages"""
with open('system.list.chroot', 'a', encoding='UTF-8') as system_file:
system_file.write(conf.system_list_arm64)
def set_artwork_packages():
""" Create the list for icons, wallpaper and themes"""
with open('artwork.list.chroot', 'x', encoding='UTF-8') as artwork_file:
artwork_file.write(conf.artwork_list)
def set_python_packages():
""" Create the list for python related needs"""
with open('python.list.chroot', 'x', encoding='UTF-8') as python_file:
python_file.write(conf.python_list)
def set_calamares_packages():
""" Create the list for the calamares installer"""
with open(
'installer.list.chroot', 'x', encoding='UTF-8'
) as calamares_file:
calamares_file.write(conf.calamares_list)
def set_firmware_packages():
""" Create the list for the firmware support for genral ISOs"""
with open('firmware.list.chroot', 'x', encoding='UTF-8') as firmware_file:
firmware_file.write(conf.firmware_list)
def set_firmware_packages_arm():
""" Create the list for the firmware support for arm ISOs"""
with open('firmware.list.chroot', 'x', encoding='UTF-8') as firmware_file:
firmware_file.write(conf.firmware_list_arm)
def set_binary_packages_64():
""" Create the list for grub binary packages for 64 bit"""
with open('installer.list.binary', 'x', encoding='UTF-8') as binary_file:
binary_file.write(conf.binary_list_64)
def set_binary_packages_arm64():
""" Create the list for grub binary packages for 64 bit"""
with open('installer.list.binary', 'x', encoding='UTF-8') as binary_file:
binary_file.write(conf.binary_list_arm)
def set_binary_packages_32():
""" Create the list for grub binary packages for 32 bit"""
with open('installer.list.binary', 'x', encoding='UTF-8') as binary_file:
binary_file.write(conf.binary_list_32)
BSTRING_ISO_CONFIGS = '~/bubbles/iso_configs'
HOME_FOLDER = str(Path(BSTRING_ISO_CONFIGS).expanduser())
PACKAGE_LIST = "/fusato/config/package-lists"
CHROOT_FOLDER = "/config/includes.chroot/"
BOOTSTRAP_FOLDER = '/config/includes.bootstrap/'
# Fusato base
def set_fusato_structure():
""" Make some needed folders for the fustao build process."""
working_path = os.getcwd().replace('/', '/')
make_fldrs = paths.make_folders
# make needed folders
for f in make_fldrs:
os.makedirs(working_path + f)
""" Make some needed folders for the fustao build process.
at the moment you deal wioth chroot and bootstrap
"""
make_chroot = ['usr/share/distro-info/',
'usr/share/python-apt/templates/',
'usr/share/icons/default',
'usr/share/peppermint/',
'usr/share/themes/',
'usr/local/bin/',
'usr/bin/',
'usr/sbin',
'etc/lightdm',
'etc/default',
'etc/apt',
'etc/apt/preferences.d',
'etc/apt/sources.list.d',
'etc/skel/Desktop',
'etc/skel/.local/share',
'etc/skel/.config/autostart/'
]
make_bootstrap =['/etc/apt']
make_chfldrs = make_chroot
for f in make_chfldrs:
os.makedirs(HOME_FOLDER + CHROOT_FOLDER + f)
make_bsfldrs = make_bootstrap
for f in make_bsfldrs:
os.makedirs(HOME_FOLDER + BOOTSTRAP_FOLDER + f)
# Commonly Shared
def set_general_shared():
""" Create the list for general shared list"""
with open(HOME_FOLDER + PACKAGE_LIST + 'genshared.list.chroot', 'x',
encoding='UTF-8') as general_file:
general_file.write(conf.general_shared_list)
def set_grub_shared():
""" Create the list for shared grub list"""
with open(HOME_FOLDER + PACKAGE_LIST + 'grub.list.chroot', 'x',
encoding='UTF-8') as system_file:
system_file.write(conf.grub_list_shared)
def set_binary_shared():
""" Create the shared list for grub binary"""
with open(HOME_FOLDER + PACKAGE_LIST + 'installer.list.binary', 'x',
encoding='UTF-8') as binary_file:
binary_file.write(conf.binary_list_shared)
def set_lightdm():
""" Create the list for the light dm list """
with open( HOME_FOLDER + PACKAGE_LIST + 'lightdm.list.chroot', 'x',
encoding='UTF-8') as lighdm_file:
lightdm_file.write(conf.light_dm_list)
# Desktop Environments
def set_xfce():
""" Create the list for the xfce xfce list"""
with open(HOME_FOLDER + PACKAGE_LIST + 'xfce.list.chroot', 'x',
encoding='UTF-8') as xfce_file:
xfce_file.write(conf.xfce_list)
# CHROOT Specific
def set_chroot_grub_64():
""" Append the grub list for 64 bit grub"""
with open(HOME_FOLDER + PACKAGE_LIST + 'grub.list.chroot', 'a',
encoding='UTF-8') as system_file:
system_file.write(conf.grub_list_64)
def set_chroot_grub_arm():
""" Append the grub list for the ARM grub"""
with open(HOME_FOLDER + PACKAGE_LIST + 'grub.list.chroot', 'a',
encoding='UTF-8') as system_file:
system_file.write(conf.grub_list_arm64)
def set_chroot_grub_32():
""" Append the grub list for the 32 bit grub"""
with open(HOME_FOLDER + PACKAGE_LIST + 'grub.list.chroot', 'a',
encoding='UTF-8') as system_file:
system_file.write(conf.grub_list_32)
# Binary Specific
def set_binary_64():
""" Create the list for grub binary packages for 64 bit"""
with open(HOME_FOLDER + PACKAGE_LIST + 'installer.list.binary', 'a',
encoding='UTF-8') as binary_file:
binary_file.write(conf.binary_list_64)
def set_binary_arm():
""" Create the list for grub binary packages for 64 bit"""
with open(HOME_FOLDER + PACKAGE_LIST + 'installer.list.binary', 'a',
encoding='UTF-8') as binary_file:
binary_file.write(conf.binary_list_arm)
def set_binary_32():
""" Create the list for grub binary packages for 32 bit"""
with open(HOME_FOLDER + PACKAGE_LIST + 'installer.list.binary', 'a',
encoding='UTF-8') as binary_file:
binary_file.write(conf.binary_list_32)
# Firmware Specific
def set_firmware():
""" Create the list for the firmware support for genral ISOs"""
with open(HOME_FOLDER + PACKAGE_LIST +'firmware.list.chroot', 'x',
encoding='UTF-8') as firmware_file:
firmware_file.write(conf.firmware_list_32_64)
def set_firmware_arm():
""" Create the list for the firmware support for arm ISOs"""
with open(HOME_FOLDER + PACKAGE_LIST +'firmware.list.chroot', 'x',
encoding='UTF-8') as firmware_file:
firmware_file.write(conf.firmware_list_arm)

359
python_modules/infra.py Normal file
View File

@ -0,0 +1,359 @@
"""
* Author: "PeppermintOS Team(peppermintosteam@proton.me)
*
* License: SPDX-License-Identifier: GPL-3.0-or-later
*
* Set the infrastructure for bubbles to begin the ISO build
* This copied needed confog files to the binary and chroot
* locations, based o the build base and architecture
"""
import os
import collections
from pathlib import Path
import shutil
import paths
# Public Variables used in the classes
BSTRING_ISO_CONFIGS = '~/bubbles/iso_configs'
HOME_FOLDER = str(Path(BSTRING_ISO_CONFIGS).expanduser())
WPCHROOT = "/fusato/config/includes.chroot"
BINARYPTH = "/fusato/config/include.binary"
BOOTSTRAP = "/fusato/config/includes.bootstrap"
FUSATOCONFIG = "/fusato/config"
class ChrootFolders:
"""
Copy all the needed folders to CHROOT Depending on
the architecture it will, copy folders as needed
"""
def __init__(self,sbase,sarch):
self.sbase = sbase
self.sarch = sarch
src_chroot = ('/osrelease/' + self.sbase + self.sarch,
'/osrelease/' + self.sbase + self.sarch,
'/grub/'+ self.sbase + self.sarch + '/grub',
'/calamares_settings/' + self.sbase + self.sarch +
'/calamares/modules',
'/boot/grub/' + self.sbase + '_themes'
)
des_chroot =('/usr/lib',
'/opt/pepconf',
'/etc/default/grub',
'/etc/calamares/modules',
'/boot/grub/themes'
)
# Chroot Folders.
chroot_src_q = collections.deque(src_chroot)
chroot_des_q = collections.deque(des_chroot)
chroot_size_q = len(chroot_src_q)
for size_length in range(chroot_size_q):
source = chroot_src_q.popleft()
des = chroot_des_q.popleft()
shutil.copytree(HOME_FOLDER + source,
HOME_FOLDER + WPCHROOT + des,
dirs_exist_ok = True
)
class BinaryFolders:
"""
Copy all the needed folders to BINARY Depending on
the architecture it will, copy folders as needed
"""
def __init__(self, sbase, sarch):
self.sbase = sbase
self.sarch = sarch
src_binary = ('/splash/' + self.sbase + self.sarch + '/boot',
'/splash/' + self.sbase + self.sarch +'/isolinux',
'/splash/' + self.sbase + '_live-theme',
'/splash/' + self.sbase + '_splash',
'/splash/' + self.sbase + '_splash'
)
des_binary =('/boot',
'/isolinux',
'/boot/grub',
'/isolinux',
'/boot/grub'
)
# Binary Folders
binary_src_q = collections.deque(src_binary)
binary_des_q = collections.deque(des_binary)
binary_size_q = len(binary_src_q)
for size_length in range(binary_size_q):
source = binary_src_q.popleft()
des = binary_des_q.popleft()
shutil.copytree(HOME_FOLDER + source,
HOME_FOLDER + BINARYPTH + des,
dirs_exist_ok = True
)
class ArchitectureFiles:
"""
Copy all the needed files to CHROOT Depending on the
architecture it will, copy files as needed
"""
def __init__(self, sbase, sarch):
self.sbase = sbase
self.sarch = sarch
calamares_path = '/calamares_settings/'
sources_path = '/sources/'
src_paths = (calamares_path + self.sbase + self.sarch +
'/calamares/settings.conf',
calamares_path + self.sbase + self.sarch +
'/install-peppermint',
calamares_path + self.sbase + self.sarch +
'/sources-final',
calamares_path + self.sbase + self.sarch +
'/bootloader-config',
calamares_path + self.sbase + self.sarch +
'/netinstall-packages',
calamares_path +
'adddesktopicon/add-calamares-desktop-icon',
sources_path + self.sbase + self.sarch +
'/sources.list',
'/id_files/pep_id'
)
des_paths = ('/etc/calamares/settings.conf',
'/usr/bin/install-peppermint',
'/usr/sbin/sources-final',
'/usr/sbin/bootloader-config',
'/etc/calamares/netinstall-packages',
'/usr/bin/add-calamares-desktop-icon',
'/opt/pepconf/sources.list',
'/usr/share/peppermint/pep_id'
)
# copy files to thier CHROOT Location
src_q = collections.deque(src_paths)
des_q = collections.deque(des_paths)
size_q = len(src_q)
for size_length in range(size_q):
source = src_q.popleft()
des = des_q.popleft()
shutil.copy(HOME_FOLDER + source,
HOME_FOLDER + WPCHROOT + des
)
def set_symlinks():
"""
Set the symliknks that are used for all builds.
"""
pep_info = '/usr/share/python-apt/templates/Peppermint.info'
pep_mirror = '/usr/share/python-apt/templates/Peppermint.mirrors'
pep_csv = '/usr/share/distro-info/peppermint.csv'
os.symlink('Debian.info', HOME_FOLDER + WPCHROOT + pep_info)
os.symlink('Debian.mirrors', HOME_FOLDER + WPCHROOT + pep_mirror)
os.symlink('debian.csv', HOME_FOLDER + WPCHROOT + pep_csv)
def shared_folders():
"""
This function will get the files that are shared commonly amongst
all the builds,
"""
src_paths = ('/plymouth/lines',
'/application',
'/font',
'/hooks/live',
'/issue',
'/issue',
'/polkit',
'/database',
'/user_config',
'/PepProPixMaps',
'/wallpaper',
'/menu/menus',
'/face',
'/neofetch/neofetch',
'/pmostools',
'/autostart',
'/pylibraries',
'/desktop_base/lines-theme/grub',
'/desktop_base/lines-theme/lockscreen',
'/desktop_base/lines-theme/login',
'/desktop_base/lines-theme/wallpaper'
)
des_paths =('/usr/share/plymouth/themes/lines',
'/usr/share/applications',
'/usr/share/fonts/pepconf',
'/usr/lib/live/config',
'/etc',
'/opt/pepconf',
'/usr/share/polkit-1/actions',
'/opt/pypep/dbpep',
'/etc/live/config.conf.d',
'/usr/share/pixmaps',
'/usr/share/backgrounds',
'/etc/skel/.config/menus',
'/etc/skel/',
'/etc/skel/.config/neofetch',
'/etc/skel/.local/share/pmostools',
'/etc/skel/.config/autostart',
'/usr/lib/python3/dist-packages',
'/usr/share/desktop-base/lines-theme/grub',
'/usr/share/desktop-base/lines-theme/lockscreen'
'/usr/share/desktop-base/lines-theme/login',
'/usr/share/desktop-base/lines-theme/wallpaper'
)
src_q = collections.deque(src_paths)
des_q = collections.deque(des_paths)
size_q = len(src_q)
for size_length in range(size_q):
source = src_q.popleft()
des = des_q.popleft()
shutil.copytree(HOME_FOLDER + source,
HOME_FOLDER + WPCHROOT + des,
dirs_exist_ok = True
)
def icons_themes():
"""
This function will get the icons and themse that are
for all the builds
"""
src_paths =('/theme/Marwaita?Dark?Debian ',
'/theme/Marwaita?Dark?Manjaro ',
'/theme/Marwaita?Dark?Peppermint ',
'/theme/Marwaita?Debian ',
'/theme/Marwaita?Manjaro ',
'/theme/Marwaita?Peppermint ',
'/icons/Tela-circle-blue-dark ',
'/icons/Tela-circle-green-dark ',
'/icons/Tela-circle-red-dark ',
'/icons/Tela-circle-blue ',
'/icons/Tela-circle-green ',
'/icons/Tela-circle-red ',
'/icons/Tela-circle '
)
des_paths = ('/usr/share/themes', '/usr/share/themes',
'/usr/share/themes', '/usr/share/themes',
'/usr/share/themes', '/usr/share/themes',
'/usr/share/icons', '/usr/share/icons',
'/usr/share/icons', '/usr/share/icons',
'/usr/share/icons', '/usr/share/icons',
'/usr/share/icons'
)
src_q = collections.deque(src_paths)
des_q = collections.deque(des_paths)
size_q = len(src_q)
for size_length in range(size_q):
source = src_q.popleft()
des = des_q.popleft()
shutil.copytree(HOME_FOLDER + source,
HOME_FOLDER + WPCHROOT + des,
dirs_exist_ok = True
)
def shared_files():
"""
This silll copy all specific files that a used for all
builds.
"""
src_paths = ('/aliases/bash_aliases',
'/PepProTools/xDaily',
'/PepProTools/hub',
'/PepProTools/welcome',
'/PepProTools/kumo',
'/lightdm/lightdm.conf',
'/lightdm/lightdm-gtk-greeter.conf',
'/plymouth/plymouthd.conf',
'/application/plank.desktop'
)
des_paths = ('/etc/skel/.bash_aliases',
'/usr/local/bin/xDaily',
'/usr/local/bin/hub',
'/usr/local/bin/welcome',
'/usr/local/bin/kumo',
'/etc/lightdm/lightdm.conf',
'/etc/lightdm/lightdm-gtk-greeter.conf',
'/usr/share/plymouthd.conf',
'/etc/skel/.config/autostart/plank.desktop',
)
# copy files to thier CHROOT Location
src_q = collections.deque(src_paths)
des_q = collections.deque(des_paths)
size_q = len(src_q)
for size_length in range(size_q):
source = src_q.popleft()
des = des_q.popleft()
shutil.copy(HOME_FOLDER + source,
HOME_FOLDER + WPCHROOT + des
)
def fusato_configs():
"""
Copy specific folders in the root of fusato configs
"""
src_paths = ('/hooks/normal',)
des_paths = ('/hooks/normal',)
src_q = collections.deque(src_paths)
des_q = collections.deque(des_paths)
size_q = len(src_q)
for size_length in range(size_q):
source = src_q.popleft()
des = des_q.popleft()
print("----" + HOME_FOLDER + source )
print("----" + HOME_FOLDER + FUSATOCONFIG + des )
shutil.copytree(HOME_FOLDER + source,
HOME_FOLDER + FUSATOCONFIG + des,
dirs_exist_ok = True
)
def boostrap_shared():
"""
Copy specific folders in the boostrap location
"""
src_paths = ('/issue',)
des_paths = ('/etc',)
src_q = collections.deque(src_paths)
des_q = collections.deque(des_paths)
size_q = len(src_q)
for size_length in range(size_q):
source = src_q.popleft()
des = des_q.popleft()
shutil.copytree(HOME_FOLDER + source,
HOME_FOLDER + BOOTSTRAP + des,
dirs_exist_ok = True
)
def xfce_configs():
"""
Copy the xfce files.
"""
src_xfce = '/xfce/xfce4'
des_xfce = '/etc/skel/.config/xfce4'
shutil.copytree(HOME_FOLDER + src_xfce,
HOME_FOLDER + WPCHROOT + des_xfce,
dirs_exist_ok = True
)
src_thunar = '/xfce/Thunar'
des_thunar = '/etc/skel/.config/Thunar'
shutil.copytree(HOME_FOLDER + src_thunar,
HOME_FOLDER + WPCHROOT + des_thunar,
dirs_exist_ok = True
)
def gnome_flahsbak_configs():
"""
Copy the gnome flashback files
"""
src_gnomef = '/gnome-flashback'
des_gnomef = '/etc/skel/.config/gnome-flashback'
shutil.copytree(HOME_FOLDER + src_gnomef,
HOME_FOLDER + WPCHROOT + des_gnomef,
dirs_exist_ok = True
)

View File

@ -46,295 +46,3 @@ nightly_paths = [
]
#########################################
### Associated to copy_files_specified.py
## Specified Files
#Alias things
src_alias = '/aliases/bash_aliases'
des_alias = '/etc/skel/.bash_aliases'
# Xdaily things
src_xdaily = '/PepProTools/xDaily'
des_xdaily = '/usr/local/bin/xDaily'
# Hub things
src_hub = '/PepProTools/hub'
des_hub = '/usr/local/bin/hub'
# Welcome things
src_welcome = '/PepProTools/welcome'
des_welcome = '/usr/local/bin/welcome'
# Kumo things
src_kumo = '/PepProTools/kumo'
des_kumo = '/usr/local/bin/kumo'
# Lightdm things
src_lightdm = '/lightdm/lightdm.conf'
des_lightdm = '/etc/lightdm/lightdm.conf'
src_lightdm_greeter = '/lightdm/lightdm-gtk-greeter.conf'
des_lightdm_greeter = '/fusato/config/includes.chroot/etc/lightdm/lightdm-gtk-greeter.conf'
# Plymouth things
src_ply = '/plymouth/plymouthd.conf'
des_ply = '/fusato/config/includes.chroot/usr/share/plymouthd.conf'
# Desktop-base things
src_dbase_grub = '/desktop_base/lines-theme/grub'
src_dbase_lockscreen = '/desktop_base/lines-theme/lockscreen'
src_dbase_login = '/desktop_base/lines-theme/login'
src_dbase_wallpaper = '/desktop_base/lines-theme/wallpaper'
des_dbase_grub = '/usr/share/desktop-base/lines-theme/grub'
des_dbase_lockscreen = '/usr/share/desktop-base/lines-theme/lockscreen'
des_dbase_login = '/usr/share/desktop-base/lines-theme/login'
des_dbase_wallpaper = '/usr/share/desktop-base/lines-theme/wallpaper'
# Symlinks
pep_info = '/usr/share/python-apt/templates/Peppermint.info'
pep_mirror = '/usr/share/python-apt/templates/Peppermint.mirrors'
pep_csv = '/usr/share/distro-info/peppermint.csv'
# Plank things
src_plank = '/application/plank.desktop'
des_plank = '/etc/skel/.config/autostart/plank.desktop'
### End of copy_file_specified.py
############################################
### Associated to copy_folders.py
## copy_folder_files
# Plymouth Things
src_ply_lines = '/plymouth/lines'
des_ply_lines = '/usr/share/plymouth/themes/lines'
# Application things
src_apps = '/application'
des_apps = '/usr/share/applications'
# Font things
src_font = '/font'
des_font = '/usr/share/fonts/pepconf'
# hooks things
src_hooks_live = '/hooks/live'
des_hooks_live = '/usr/lib/live/config'
src_hooks_normal = '/hooks/normal'
des_hooks_normal = '/fusato/config/hooks/normal'
# Issue things
src_issue = '/issue'
des_issue = '/fusato/config/includes.bootstrap/etc'
des_issue_etc = '/etc'
des_issues_opt = '/opt/pepconf'
# Polkit things
src_polkit = '/polkit'
des_polkit = '/usr/share/polkit-1/actions'
# Database things
src_database = '/database'
des_database = '/opt/pypep/dbpep'
# User Config things
src_user_configs = '/user_config'
des_user_configs = '/etc/live/config.conf.d'
# Pixmaps things
src_pixmaps = '/PepProPixMaps'
des_pixmaps = '/usr/share/pixmaps'
# Wallpaper things
src_wallpaper = '/wallpaper'
des_wallpaper = '/usr/share/backgrounds'
# Menu things
src_menu = '/menu/menus'
des_menu = '/etc/skel/.config/menus'
# Xfce4 things
src_xfce = '/xfce/xfce4'
des_xfce = '/etc/skel/.config/xfce4'
# user face profile things
src_face = '/face'
des_face = '/etc/skel/'
# neofecth things
src_neo_fetch = '/neofetch/neofetch'
des_neo_fetch = '/etc/skel/.config/neofetch'
# Thunar things
src_thunar = '/xfce/Thunar'
des_thunar = '/etc/skel/.config/Thunar'
# Pep Tools things
src_pmostools = '/pmostools'
des_pmostools = '/etc/skel/.local/share/pmostools'
# Autostart Things
src_auto_start = '/autostart'
des_auto_start ='/etc/skel/.config/autostart'
# Python Libs
src_pylibs = '/pylibraries'
des_pylibs = '/usr/lib/python3/dist-packages'
#Theme things
src_debian_dark = '/theme/Marwaita?Dark?Debian '
src_manjaro_dark = '/theme/Marwaita?Dark?Manjaro '
src_peppermint_dark = '/theme/Marwaita?Dark?Peppermint '
src_debian = '/theme/Marwaita?Debian '
src_manjaro = '/theme/Marwaita?Manjaro '
src_peppermint = '/theme/Marwaita?Peppermint '
des_themes = '/fusato/config/includes.chroot/usr/share/themes'
# icon things
src_tela_blue_dark = '/icons/Tela-circle-blue-dark '
src_tela_green_dark = '/icons/Tela-circle-green-dark '
src_tela_red_dark = '/icons/Tela-circle-red-dark '
src_tela_blue_base = '/icons/Tela-circle-blue '
src_tela_green_base = '/icons/Tela-circle-green '
src_tela_red_base = '/icons/Tela-circle-red '
src_tela = '/icons/Tela-circle '
des_icons = '/fusato/config/includes.chroot/usr/share/icons'
### End Copy Folders
##########################################################
### Arch Specific Paths.
# Folder
# OS Release Things
src_deb32_osrelease = '/osrelease/deb_32'
src_dev32_osrelease = '/osrelease/dev_32'
src_deb64_osrelease = '/osrelease/deb_64'
src_dev64_osrelease = '/osrelease/dev_64'
src_debarm_osrelease = '/osrelease/deb_arm'
src_devarm_osrelease = '/osrelease/dev_arm'
des_osrelease = '/usr/lib'
des_osrelease_opt = '/opt/pepconf'
# Boot Splash things
src_deb32_slpash = '/splash/deb_32/boot'
src_dev32_slpash = '/splash/dev_32/boot'
src_deb64_slpash = '/splash/deb_64/boot'
src_dev64_slpash = '/splash/dev_64/boot'
src_debarm_slpash = '/splash/deb_arm/boot'
src_devarm_slpash = '/splash/dev_arm/boot'
des_splash = '/fusato/config/includes.binary/boot'
src_deb32_isolinux = '/splash/deb_32/isolinux'
src_dev32_isolinux = '/splash/dev_32/isolinux'
src_deb64_isolinux = '/splash/deb_64/isolinux'
src_dev64_isolinux = '/splash/dev_32/isolinux'
src_debarm_isolinux = '/splash/deb_arm/isolinux'
src_devarm_isolinux = '/splash/dev_arm/isolinux'
des_isolinux = '/fusato/config/includes.binary/isolinux'
# The actual Splash images
src_deb_splash_image = '/splash/deb_splash'
src_dev_splash_image = '/splash/dev_splash'
des_splash_image_isolinux = '/fusato/config/includes.binary/isolinux'
des_splash_image_grub = '/fusato/config/includes.binary/boot/grub'
# Live Boot Theme
src_deb_live_theme = '/splash/deb_live-theme'
src_dev_live_theme = '/splash/deb_live-theme'
des_live_theme = '/fusato/config/includes.binary/boot/grub'
# MultiMedia things
src_deb32_multi = '/multimedia/deb_32'
src_dev32_multi = '/multimedia/dev_32'
src_deb64_multi = '/multimedia/deb_64'
src_dev64_multi = '/multimedia/dev_64'
src_debarm_multi = '/multimedia/deb_arm'
src_devarm_multi = '/multimedia/dev_arm'
des_archives = '/fusato/config/archives'
# Grub things
src_deb_grub_theme = '/grub/deb_themes'
src_dev_grub_theme = '/grub/dev_themes'
des_grub_theme = '/boot/grub/themes'
src_deb32_grub_etc = '/grub/deb_64/grub'
src_dev32_grub_etc = '/grub/dev_32/grub'
src_deb64_grub_etc = '/grub/deb_64/grub'
src_dev64_grub_etc = '/grub/dev_64/grub'
src_debarm_grub_etc = '/grub/deb_arm/grub'
src_devarm_grub_etc = '/grub/dev_arm/grub'
des_grub_etc = '/etc/default/grub'
# Calamares things
src_brand = '/calamares_settings/branding/peppermint'
des_brand = '/etc/calamares/branding/peppermint'
src_deb32_modules = '/calamares_settings/deb_32/calamares/modules'
src_dev32_modules = '/calamares_settings/dev_32/calamares/modules'
src_deb64_modules = '/calamares_settings/deb_64/calamares/modules'
src_dev64_modules = '/calamares_settings/dev_64/calamares/modules'
src_debarm_modules = '/calamares_settings/deb_arm/calamares/modules'
src_devarm_modules = '/calamares_settings/dev_arm/calamares/modules'
des_modules = '/etc/calamares/modules'
# Files
# Calamares Files
src_deb32_settings = '/calamares_settings/deb_32/calamares/settings.conf'
src_dev32_settings = '/calamares_settings/dev_32/calamares/settings.conf'
src_deb64_settings = '/calamares_settings/deb_64/calamares/settings.conf'
src_dev64_settings = '/calamares_settings/dev_64/calamares/settings.conf'
src_debarm_settings = '/calamares_settings/deb_arm/calamares/settings.conf'
src_devarm_settings = '/calamares_settings/dev_arm/calamares/settings.conf'
des_setttings = '/etc/calamares/settings.conf'
src_deb32_installer = '/calamares_settings/deb_32/install-peppermint'
src_dev32_installer = '/calamares_settings/dev_32/install-peppermint'
src_deb64_installer = '/calamares_settings/deb_64/install-peppermint'
src_dev64_installer = '/calamares_settings/dev_64/install-peppermint'
src_debarm_installer = '/calamares_settings/deb_arm/install-peppermint'
src_devarm_installer = '/calamares_settings/dev_arm/install-peppermint'
des_installer = '/usr/bin/install-peppermint'
src_deb32_sourcesfinal = '/calamares_settings/deb_32/sources-final'
src_dev32_sourcesfinal = '/calamares_settings/dev_32/sources-final'
src_deb64_sourcesfinal = '/calamares_settings/deb_64/sources-final'
src_dev64_sourcesfinal = '/calamares_settings/dev_64/sources-final'
src_debarm_sourcesfinal = '/calamares_settings/deb_arm/sources-final'
src_devarm_sourcesfinal = '/calamares_settings/dev_arm/sources-final'
des_sourcesfinal = '/usr/sbin/sources-final'
src_deb32_bootloader = '/calamares_settings/deb_32/bootloader-config'
src_dev32_bootloader = '/calamares_settings/dev_32/bootloader-config'
src_deb64_bootloader = '/calamares_settings/deb_64/bootloader-config'
src_dev64_bootloader = '/calamares_settings/dev_64/bootloader-config'
src_debarm_bootloader = '/calamares_settings/deb_arm/bootloader-config'
src_devarm_bootloader = '/calamares_settings/dev_arm/bootloader-config'
des_bootloader = '/usr/sbin/bootloader-config'
src_deb32_netinstall ='/calamares_settings/deb_32/calamares/netinstall-packages'
src_dev32_netinstall ='/calamares_settings/dev_32/calamares/netinstall-packages'
src_deb64_netinstall ='/calamares_settings/deb_64/calamares/netinstall-packages'
src_dev64_netinstall ='/calamares_settings/dev_64/calamares/netinstall-packages'
src_debarm_netinstall ='/calamares_settings/deb_arm/calamares/netinstall-packages'
src_devarm_netinstall ='/calamares_settings/dev_arm/calamares/netinstall-packages'
des_netinstall = '/etc/calamares/netinstall-packages'
src_icon = '/calamares_settings/adddesktopicon/add-calamares-desktop-icon'
des_icon = '/usr/bin/add-calamares-desktop-icon'
# Source things
src_deb32_sourcelist = '/sources/deb_32/sources.list'
src_dev32_sourcelist = '/sources/dev_32/sources.list'
src_deb64_sourcelist = '/sources/deb_64/sources.list'
src_dev64_sourcelist = '/sources/dev_64/sources.list'
src_debarm_sourcelist = '/sources/deb_arm/sources.list'
src_devarm_sourcelist = '/sources/dev_arm/sources.list'
des_sourcelist = '/opt/pepconf/sources.list'
# Main line ID File
src_main_line_pep_id = '/id_files/pep_id'
des_main_line_pep_id = '/usr/share/peppermint/pep_id'