This commit is contained in:
debianpepper 2024-06-10 16:12:16 +09:00
parent 7c7c114ba1
commit 20f1b0646b
3 changed files with 22 additions and 7 deletions

View File

@ -35,6 +35,11 @@ def remove_packages_from_the_build():
os.system(f'apt --purge --yes autoremove {package}')
def remmove_desktop_files():
"""
Use this def to remove any .desktop files you donot need
"""
os.system('rm /usr/share/applications/btop.desktop')
def install_min_browser():
"""
@ -239,6 +244,7 @@ def start():
apt_install_packages()
remove_packages_from_the_build()
install_min_browser()
remmove_desktop_files()
setup_plymouth_theme_grub()
hblock_setup()
manage_raspi_firmware()
@ -249,6 +255,7 @@ def start():
rename_kernel()
else:
apt_install_packages()
remmove_desktop_files()
remove_packages_from_the_build()
setup_plymouth_theme_grub()
hblock_setup()

View File

@ -139,7 +139,11 @@ def other_misc_settings():
# Then recreate it with the Pep Background
os.system(makelnk)
def remmove_desktop_files():
"""
Use this def to remove any .desktop files you donot need
"""
os.system('rm /usr/share/applications/btop.desktop')
# Main execution
cmdline()
@ -147,3 +151,4 @@ init()
config()
set_plymouth()
set_installer_permissions()
remmove_desktop_files()

View File

@ -56,6 +56,7 @@ class Archive:
)
logger.info(MSG_FIN + HOME_FOLDER + FUSATOCONFIG + des)
class ChrootInstallerFiles:
"""
Copies all installer folders to CHROOT depending on the base.
@ -149,6 +150,7 @@ class ChrootInstallerFiles:
if __name__ == "__main__":
ChrootInstallerFiles.run_for_all_bases()
class BinaryFolders:
"""
Copy all the needed folders to BINARY Depending on
@ -185,6 +187,7 @@ class BinaryFolders:
)
logger.info(MSG_FIN + HOME_FOLDER + BINARYPTH + des)
class FusatoConfigs:
"""
Copy all the needed files to the hooks folders depending on
@ -210,6 +213,7 @@ class FusatoConfigs:
)
logger.info(MSG_FIN + HOME_FOLDER + FUSATOCONFIG + des)
class InstallerFiles:
"""
Copy all the needed files to the installer depending on
@ -249,6 +253,7 @@ class InstallerFiles:
)
logger.info(MSG_FIN + HOME_FOLDER + WPINSTALLER + des)
def mini_shared_installer_files():
"""
This function will get the files that are shared commonly amongst
@ -363,6 +368,7 @@ class ArchitectureFiles:
else:
logger.info(f"Successfully copied {src_path} to {des_path}")
def set_symlinks():
"""
Set the symliknks that are used for all builds.
@ -502,7 +508,7 @@ def icons_themes():
def shared_files():
"""
This silll copy all specific files that a used for all
This will copy all specific files that a used for all
builds.
"""
@ -519,9 +525,6 @@ def shared_files():
'/lightdm/lightdm.conf',
'/lightdm/lightdm-gtk-greeter.conf',
'/plymouth/plymouthd.conf',
#'/packages/deb-multimedia-keyring_2016.8.1_all.deb',
# '/repo_public_key/trusted.gpg',
)
des_paths = ('/etc/skel/.bash_aliases',
'/etc/apt/sources.list.d',
@ -534,8 +537,6 @@ def shared_files():
'/etc/lightdm/lightdm.conf',
'/etc/lightdm/lightdm-gtk-greeter.conf',
'/etc/plymouth/plymouthd.conf',
#'/opt/pepconf/deb-multimedia-keyring_2016.8.1_all.deb',
#'/etc/apt/trusted.gpg.d/trusted.gpg',
)
# copy files to thier CHROOT Location
src_q = collections.deque(src_paths)
@ -576,6 +577,7 @@ def shared_server_files():
)
logger.info(MSG_FIN + HOME_FOLDER + WPCHROOT + des)
def boostrap_shared():
"""
Copy specific folders in the boostrap location
@ -698,6 +700,7 @@ def loaded_folders():
)
logger.info(MSG_FIN + HOME_FOLDER + WPCHROOT + des)
def server_configs():
"""
Copy the server files