From 37e825dea772aadc4f726f31bd6bf08737f40a83 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 16 Nov 2023 13:26:50 -0100 Subject: [PATCH] new commit --- my-distro-debian-32-pae/scripts | 1 - my-distro-debian-32/scripts | 1 - my-distro-debian-64/scripts | 1 - my-distro-devuan-32-pae/scripts | 1 - my-distro-devuan-32/scripts | 1 - my-distro-devuan-64/scripts | 1 - scripts/07final-cleanup | 18 ------------------ scripts/07grub-config | 33 --------------------------------- scripts/07rebuild-icon-caches | 13 ------------- scripts/07update-system | 16 ---------------- 10 files changed, 86 deletions(-) delete mode 120000 my-distro-debian-32-pae/scripts delete mode 120000 my-distro-debian-32/scripts delete mode 120000 my-distro-debian-64/scripts delete mode 120000 my-distro-devuan-32-pae/scripts delete mode 120000 my-distro-devuan-32/scripts delete mode 120000 my-distro-devuan-64/scripts delete mode 100755 scripts/07final-cleanup delete mode 100755 scripts/07grub-config delete mode 100755 scripts/07rebuild-icon-caches delete mode 100755 scripts/07update-system diff --git a/my-distro-debian-32-pae/scripts b/my-distro-debian-32-pae/scripts deleted file mode 120000 index a339954d..00000000 --- a/my-distro-debian-32-pae/scripts +++ /dev/null @@ -1 +0,0 @@ -../scripts \ No newline at end of file diff --git a/my-distro-debian-32/scripts b/my-distro-debian-32/scripts deleted file mode 120000 index a339954d..00000000 --- a/my-distro-debian-32/scripts +++ /dev/null @@ -1 +0,0 @@ -../scripts \ No newline at end of file diff --git a/my-distro-debian-64/scripts b/my-distro-debian-64/scripts deleted file mode 120000 index a339954d..00000000 --- a/my-distro-debian-64/scripts +++ /dev/null @@ -1 +0,0 @@ -../scripts \ No newline at end of file diff --git a/my-distro-devuan-32-pae/scripts b/my-distro-devuan-32-pae/scripts deleted file mode 120000 index a339954d..00000000 --- a/my-distro-devuan-32-pae/scripts +++ /dev/null @@ -1 +0,0 @@ -../scripts \ No newline at end of file diff --git a/my-distro-devuan-32/scripts b/my-distro-devuan-32/scripts deleted file mode 120000 index a339954d..00000000 --- a/my-distro-devuan-32/scripts +++ /dev/null @@ -1 +0,0 @@ -../scripts \ No newline at end of file diff --git a/my-distro-devuan-64/scripts b/my-distro-devuan-64/scripts deleted file mode 120000 index a339954d..00000000 --- a/my-distro-devuan-64/scripts +++ /dev/null @@ -1 +0,0 @@ -../scripts \ No newline at end of file diff --git a/scripts/07final-cleanup b/scripts/07final-cleanup deleted file mode 100755 index b94fa562..00000000 --- a/scripts/07final-cleanup +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -e - -################################################################################ -# Title: build-all.sh -# Description: This script removes unwanted software and files after Debian installation. -# Author: manuel rosa -# Date: Outubro 29, 2023 -# License: GPL-3.0-or-later -################################################################################ - -# Remove unwanted packages -chroot /target apt purge --autoremove -y \ - raspi-firmware \ - calamares \ - calamares-settings* - -# Clean unnecessary files -rm -r /target/boot/firmware diff --git a/scripts/07grub-config b/scripts/07grub-config deleted file mode 100755 index e72ac5fc..00000000 --- a/scripts/07grub-config +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh -e - -################################################################################ -# Title: Grub-config -# Description: This script configures grub defaults after Debian installation. -# Author: manuel rosa -# Date: Outubro 29, 2023 -# License: GPL-3.0-or-later -################################################################################ - -# Defines the variables -GRUB_DEFAULT=0 -GRUB_TIMEOUT=5 -GRUB_DISTRIBUTOR="My-distro" -GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" -GRUB_CMDLINE_LINUX="" -GRUB_GFXMODE=1440x900 -GRUB_DISABLE_OS_PROBER=false - -# GRUB configuration file path -GRUB_CONFIG_FILE="/target/etc/default/grub" - -# Modify the GRUB file -sed -i "s/^GRUB_DEFAULT=.*/GRUB_DEFAULT=$GRUB_DEFAULT/" $GRUB_CONFIG_FILE -sed -i "s/^GRUB_TIMEOUT=.*/GRUB_TIMEOUT=$GRUB_TIMEOUT/" $GRUB_CONFIG_FILE -sed -i "s/^GRUB_DISTRIBUTOR=.*/GRUB_DISTRIBUTOR=\"$GRUB_DISTRIBUTOR\"/" $GRUB_CONFIG_FILE -sed -i "s/^GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT=\"$GRUB_CMDLINE_LINUX_DEFAULT\"/" $GRUB_CONFIG_FILE -sed -i "s/^GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"$GRUB_CMDLINE_LINUX\"/" $GRUB_CONFIG_FILE -sed -i "s/^#GRUB_GFXMODE=.*/GRUB_GFXMODE=$GRUB_GFXMODE/" $GRUB_CONFIG_FILE -sed -i "s/^#GRUB_DISABLE_OS_PROBER=.*/GRUB_DISABLE_OS_PROBER=$GRUB_DISABLE_OS_PROBER/" $GRUB_CONFIG_FILE - -# Run update-grub after modifying the file -chroot /target update-grub diff --git a/scripts/07rebuild-icon-caches b/scripts/07rebuild-icon-caches deleted file mode 100755 index 52f0abef..00000000 --- a/scripts/07rebuild-icon-caches +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -e - -################################################################################ -# Title: rebuild-icon-caches -# Description: This script rebuilds the icon caches after Debian installation. -# Author: manuel rosa -# Date: Outubro 29, 2023 -# License: GPL-3.0-or-later -################################################################################ - -# Rebuild the icon caches -chroot /target find /usr/share/icons -type d -exec gtk-update-icon-cache -f {} \; - diff --git a/scripts/07update-system b/scripts/07update-system deleted file mode 100755 index c2dc42e6..00000000 --- a/scripts/07update-system +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -e - -################################################################################ -# Title: build-all.sh -# Description: This script updates the system after Debian installation. -# Author: manuel rosa -# Date: Outubro 29, 2023 -# License: GPL-3.0-or-later -################################################################################ - -# Update the system -chroot /target apt update -chroot /target apt upgrade -y - -# Clean up unnecessary packages -chroot /target apt autoremove -y