atualizar os scripts de hook

This commit is contained in:
manuel 2023-11-16 12:32:50 -01:00
parent 08b8791fdd
commit 27d16f28a8
28 changed files with 298 additions and 104 deletions

View File

@ -1,23 +1,25 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
################################################################################
# Title: Preseed.cfg
# Description: This preseed file includes configuration settings for a custom debian-installer iso.
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later
################################################################################
#This preseed file includes configuration settings for a custom debian-installer iso.
# You can choose to install non-free and contrib software.
### You can choose to install non-free and contrib software.
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
d-i apt-setup/non-free-firmware boolean true
# Select which update services to use; define the mirrors to be used.
### Select which update services to use; define the mirrors to be used.
# Values shown below are the normal defaults.
d-i apt-setup/services-select multiselect security, updates, backports
d-i apt-setup/security_host string security.debian.org
# Uncomment this to add multiarch configuration for i386
### Uncomment this to add multiarch configuration for i386
d-i apt-setup/multiarch string i386
# Remove popularity-contest
### Remove popularity-contest
popularity-contest popularity-contest/participate boolean false
### Account setup
@ -25,3 +27,6 @@ popularity-contest popularity-contest/participate boolean false
# use sudo).
d-i passwd/root-login boolean false
### Keep /etc/default/grub file
d-i grub-pc/default string keep

View File

@ -1,10 +1,12 @@
#!/bin/sh -e
# SPDX-License-Identifier: GPL-3.0-or-later
#
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
# This script removes unwanted software and files after Debian installation.
################################################################################
# Title: Final cleanup
# Description: This script removes unwanted software and files after Debian installation.
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later
################################################################################
# Remove unwanted packages
chroot /target apt purge --autoremove -y \

View File

@ -0,0 +1,35 @@
#!/bin/sh -e
################################################################################
# Title: Grub-config script
# Description: script to configure thr grub defaults
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later
################################################################################
# This script configures grub defaults after Debian installation.
# 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

View File

@ -1,16 +1,13 @@
#!/bin/sh -e
################################################################################
# Title: build-all.sh
# Description: This script updates the system after Debian installation.
# Title: Rebuild icon caches script
# Description: This script rebuilds the icon caches after Debian installation.
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later
################################################################################
# Update the system
chroot /target apt update
chroot /target apt upgrade -y
# Rebuild the icon caches
chroot /target find /usr/share/icons -type d -exec gtk-update-icon-cache -f {} \;
# Clean up unnecessary packages
chroot /target apt autoremove -y

View File

@ -1,8 +1,8 @@
#!/bin/sh -e
################################################################################
# Title: Bldhelper.sh
# Description: Script to build My-distro ISO image
# Title: Update system
# Description: Script to update the system after install
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later

View File

@ -1,5 +1,13 @@
#!/bin/bash
################################################################################
# Title: 0600-snap-show-menu-fix.hook.chroot
# Description: Workaround for using snapd on debian. Thank You - @stevesveryown and peppermint team..
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later
################################################################################
# Workaround for using snapd on debian. Thank You - @stevesveryown and peppermint team..
[ ! -e /etc/skel/.local/share ] && mkdir -p /etc/skel/.local/share
[ ! -e /var/lib/snapd/desktop/applications ] &&

View File

@ -249,7 +249,7 @@ mkdir -p $build/build/config/includes.chroot/usr/share/pixmaps
mkdir -p $build/build/config/includes.chroot/usr/share/plymouth/themes
mkdir -p $build/build/config/includes.chroot/usr/share/desktop-base
mkdir -p $build/build/config/includes.chroot/etc/skel/Desktop
#mkdir -p $build/build/config/includes.chroot/etc/default
mkdir -p $build/build/config/includes.chroot/etc/default
mkdir -p $build/build/config/includes.chroot/boot/grub
mkdir -p $build/build/config/includes.installer/usr/lib/finish-install.d
mkdir -p $build/build/config/includes.installer//usr/share
@ -262,7 +262,7 @@ cp $build/hooks/normal/* $build/build/config/hooks/normal
cp $build/install-debian/* $build/build/config/includes.chroot/usr/share/pixmaps
cp $build/sources-final/* $build/build/config/includes.chroot/usr/sbin
cp $build/bootloader-config/* $build/build/config/includes.chroot/usr/sbin
#cp $build/grub/grub $build/build/config/includes.chroot/etc/default
cp $build/grub/grub $build/build/config/includes.chroot/etc/default
cp $build/deb-installer/scripts/* $build/build/config/includes.installer/usr/lib/finish-install.d
cp $build/deb-installer/preseed/* $build/build/config/includes.installer

View File

@ -250,7 +250,7 @@ mkdir -p $build/build/config/includes.chroot/usr/share/pixmaps
mkdir -p $build/build/config/includes.chroot/usr/share/plymouth/themes
mkdir -p $build/build/config/includes.chroot/usr/share/desktop-base
mkdir -p $build/build/config/includes.chroot/etc/skel/Desktop
#mkdir -p $build/build/config/includes.chroot/etc/default
mkdir -p $build/build/config/includes.chroot/etc/default
mkdir -p $build/build/config/includes.chroot/boot/grub
mkdir -p $build/build/config/includes.installer/usr/lib/finish-install.d
mkdir -p $build/build/config/includes.installer//usr/share
@ -263,7 +263,7 @@ cp $build/hooks/normal/* $build/build/config/hooks/normal
cp $build/install-debian/* $build/build/config/includes.chroot/usr/share/pixmaps
cp $build/sources-final/* $build/build/config/includes.chroot/usr/sbin
cp $build/bootloader-config/* $build/build/config/includes.chroot/usr/sbin
#cp $build/grub/grub $build/build/config/includes.chroot/etc/default
cp $build/grub/grub $build/build/config/includes.chroot/etc/default
cp $build/deb-installer/scripts/* $build/build/config/includes.installer/usr/lib/finish-install.d
cp $build/deb-installer/preseed/* $build/build/config/includes.installer

View File

@ -250,7 +250,7 @@ mkdir -p $build/build/config/includes.chroot/usr/share/pixmaps
mkdir -p $build/build/config/includes.chroot/usr/share/plymouth/themes
mkdir -p $build/build/config/includes.chroot/usr/share/desktop-base
mkdir -p $build/build/config/includes.chroot/etc/skel/Desktop
#mkdir -p $build/build/config/includes.chroot/etc/default
mkdir -p $build/build/config/includes.chroot/etc/default
mkdir -p $build/build/config/includes.chroot/boot/grub
mkdir -p $build/build/config/includes.installer/usr/lib/finish-install.d
mkdir -p $build/build/config/includes.installer//usr/share
@ -262,7 +262,7 @@ cp $build/hooks/live/* $build/build/config/hooks/live
cp $build/hooks/normal/* $build/build/config/hooks/normal
cp $build/install-debian/* $build/build/config/includes.chroot/usr/share/pixmaps
cp $build/sources-final/* $build/build/config/includes.chroot/usr/sbin
#cp $build/grub/grub $build/build/config/includes.chroot/etc/default
cp $build/grub/grub $build/build/config/includes.chroot/etc/default
cp $build/deb-installer/scripts/* $build/build/config/includes.installer/usr/lib/finish-install.d
cp $build/deb-installer/preseed/* $build/build/config/includes.installer

View File

@ -250,7 +250,7 @@ mkdir -p $build/build/config/includes.chroot/usr/share/pixmaps
mkdir -p $build/build/config/includes.chroot/usr/share/plymouth/themes
mkdir -p $build/build/config/includes.chroot/usr/share/desktop-base
mkdir -p $build/build/config/includes.chroot/etc/skel/Desktop
#mkdir -p $build/build/config/includes.chroot/etc/default
mkdir -p $build/build/config/includes.chroot/etc/default
mkdir -p $build/build/config/includes.chroot/boot/grub/themes
mkdir -p $build/build/config/includes.installer/usr/lib/finish-install.d
mkdir -p $build/build/config/includes.installer//usr/share
@ -264,7 +264,7 @@ cp $build/hooks/normal/* $build/build/config/hooks/normal
cp $build/install-debian/* $build/build/config/includes.chroot/usr/share/pixmaps
cp $build/sources-final/* $build/build/config/includes.chroot/usr/sbin
cp $build/bootloader-config/* $build/build/config/includes.chroot/usr/sbin
#cp $build/grub/grub $build/build/config/includes.chroot/etc/default
cp $build/grub/grub $build/build/config/includes.chroot/etc/default
cp $build/deb-installer/scripts/* $build/build/config/includes.installer/usr/lib/finish-install.d
cp $build/deb-installer/preseed/* $build/build/config/includes.installer

View File

@ -1,23 +1,25 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
################################################################################
# Title: Preseed.cfg
# Description: This preseed file includes configuration settings for a custom debian-installer iso.
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later
################################################################################
#This preseed file includes configuration settings for a custom debian-installer iso.
# You can choose to install non-free and contrib software.
### You can choose to install non-free and contrib software.
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
d-i apt-setup/non-free-firmware boolean true
# Select which update services to use; define the mirrors to be used.
### Select which update services to use; define the mirrors to be used.
# Values shown below are the normal defaults.
d-i apt-setup/services-select multiselect security, updates, backports
d-i apt-setup/security_host string deb.devuan.org/merged
d-i apt-setup/security_host string security.debian.org
# Uncomment this to add multiarch configuration for i386
### Uncomment this to add multiarch configuration for i386
d-i apt-setup/multiarch string i386
# Remove popularity-contest
### Remove popularity-contest
popularity-contest popularity-contest/participate boolean false
### Account setup
@ -25,3 +27,6 @@ popularity-contest popularity-contest/participate boolean false
# use sudo).
d-i passwd/root-login boolean false
### Keep /etc/default/grub file
d-i grub-pc/default string keep

View File

@ -1,10 +1,12 @@
#!/bin/sh -e
# SPDX-License-Identifier: GPL-3.0-or-later
#
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
# This script removes unwanted software and files after Debian installation.
################################################################################
# Title: Final cleanup
# Description: This script removes unwanted software and files after Debian installation.
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later
################################################################################
# Remove unwanted packages
chroot /target apt purge --autoremove -y \

View File

@ -0,0 +1,35 @@
#!/bin/sh -e
################################################################################
# Title: Grub-config script
# Description: script to configure thr grub defaults
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later
################################################################################
# This script configures grub defaults after Debian installation.
# 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

View File

@ -0,0 +1,13 @@
#!/bin/sh -e
################################################################################
# Title: Rebuild icon caches script
# Description: This script rebuilds the icon caches after Debian installation.
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# 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 {} \;

View File

@ -1,8 +1,8 @@
#!/bin/sh -e
################################################################################
# Title: Bldhelper.sh
# Description: Script to build My-distro ISO image
# Title: Update system
# Description: Script to update the system after install
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later

View File

@ -251,7 +251,7 @@ mkdir -p $build/build/config/includes.chroot/usr/share/pixmaps
mkdir -p $build/build/config/includes.chroot/usr/share/plymouth/themes
mkdir -p $build/build/config/includes.chroot/usr/share/desktop-base
mkdir -p $build/build/config/includes.chroot/etc/skel/Desktop
#mkdir -p $build/build/config/includes.chroot/etc/default
mkdir -p $build/build/config/includes.chroot/etc/default
mkdir -p $build/build/config/includes.chroot/boot/grub/themes
mkdir -p $build/build/config/includes.installer/usr/lib/finish-install.d
mkdir -p $build/build/config/includes.installer//usr/share
@ -265,7 +265,7 @@ cp $build/hooks/normal/* $build/build/config/hooks/normal
cp $build/install-debian/* $build/build/config/includes.chroot/usr/share/pixmaps
cp $build/sources-final/* $build/build/config/includes.chroot/usr/sbin
cp $build/bootloader-config/* $build/build/config/includes.chroot/usr/sbin
#cp $build/grub/grub $build/build/config/includes.chroot/etc/default
cp $build/grub/grub $build/build/config/includes.chroot/etc/default
cp $build/deb-installer/scripts/* $build/build/config/includes.installer/usr/lib/finish-install.d
cp $build/deb-installer/preseed/* $build/build/config/includes.installer

View File

@ -1,23 +1,25 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
################################################################################
# Title: Preseed.cfg
# Description: This preseed file includes configuration settings for a custom debian-installer iso.
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later
################################################################################
#This preseed file includes configuration settings for a custom debian-installer iso.
# You can choose to install non-free and contrib software.
### You can choose to install non-free and contrib software.
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
d-i apt-setup/non-free-firmware boolean true
# Select which update services to use; define the mirrors to be used.
### Select which update services to use; define the mirrors to be used.
# Values shown below are the normal defaults.
d-i apt-setup/services-select multiselect security, updates, backports
d-i apt-setup/security_host string deb.devuan.org/merged
d-i apt-setup/security_host string security.debian.org
# Uncomment this to add multiarch configuration for i386
### Uncomment this to add multiarch configuration for i386
d-i apt-setup/multiarch string i386
# Remove popularity-contest
### Remove popularity-contest
popularity-contest popularity-contest/participate boolean false
### Account setup
@ -25,3 +27,6 @@ popularity-contest popularity-contest/participate boolean false
# use sudo).
d-i passwd/root-login boolean false
### Keep /etc/default/grub file
d-i grub-pc/default string keep

View File

@ -1,10 +1,12 @@
#!/bin/sh -e
# SPDX-License-Identifier: GPL-3.0-or-later
#
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
# This script removes unwanted software and files after Debian installation.
################################################################################
# Title: Final cleanup
# Description: This script removes unwanted software and files after Debian installation.
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later
################################################################################
# Remove unwanted packages
chroot /target apt purge --autoremove -y \

View File

@ -0,0 +1,35 @@
#!/bin/sh -e
################################################################################
# Title: Grub-config script
# Description: script to configure thr grub defaults
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later
################################################################################
# This script configures grub defaults after Debian installation.
# 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

View File

@ -0,0 +1,13 @@
#!/bin/sh -e
################################################################################
# Title: Rebuild icon caches script
# Description: This script rebuilds the icon caches after Debian installation.
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# 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 {} \;

View File

@ -1,8 +1,8 @@
#!/bin/sh -e
################################################################################
# Title: Bldhelper.sh
# Description: Script to build My-distro ISO image
# Title: Update system
# Description: Script to update the system after install
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later

View File

@ -251,7 +251,7 @@ mkdir -p $build/build/config/includes.chroot/usr/share/pixmaps
mkdir -p $build/build/config/includes.chroot/usr/share/plymouth/themes
mkdir -p $build/build/config/includes.chroot/usr/share/desktop-base
mkdir -p $build/build/config/includes.chroot/etc/skel/Desktop
#mkdir -p $build/build/config/includes.chroot/etc/default
mkdir -p $build/build/config/includes.chroot/etc/default
mkdir -p $build/build/config/includes.chroot/boot/grub/themes
mkdir -p $build/build/config/includes.installer/usr/lib/finish-install.d
mkdir -p $build/build/config/includes.installer//usr/share
@ -264,7 +264,7 @@ cp $build/hooks/live/* $build/build/config/hooks/live
cp $build/hooks/normal/* $build/build/config/hooks/normal
cp $build/install-debian/* $build/build/config/includes.chroot/usr/share/pixmaps
cp $build/sources-final/* $build/build/config/includes.chroot/usr/sbin
#cp $build/grub/grub $build/build/config/includes.chroot/etc/default
cp $build/grub/grub $build/build/config/includes.chroot/etc/default
cp $build/deb-installer/scripts/* $build/build/config/includes.installer/usr/lib/finish-install.d
cp $build/deb-installer/preseed/* $build/build/config/includes.installer

View File

@ -1,23 +1,25 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
################################################################################
# Title: Preseed.cfg
# Description: This preseed file includes configuration settings for a custom debian-installer iso.
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later
################################################################################
#This preseed file includes configuration settings for a custom debian-installer iso.
# You can choose to install non-free and contrib software.
### You can choose to install non-free and contrib software.
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
d-i apt-setup/non-free-firmware boolean true
# Select which update services to use; define the mirrors to be used.
### Select which update services to use; define the mirrors to be used.
# Values shown below are the normal defaults.
d-i apt-setup/services-select multiselect security, updates, backports
d-i apt-setup/security_host string deb.devuan.org/merged
d-i apt-setup/security_host string security.debian.org
# Uncomment this to add multiarch configuration for i386
### Uncomment this to add multiarch configuration for i386
d-i apt-setup/multiarch string i386
# Remove popularity-contest
### Remove popularity-contest
popularity-contest popularity-contest/participate boolean false
### Account setup
@ -25,3 +27,6 @@ popularity-contest popularity-contest/participate boolean false
# use sudo).
d-i passwd/root-login boolean false
### Keep /etc/default/grub file
d-i grub-pc/default string keep

View File

@ -1,10 +1,12 @@
#!/bin/sh -e
# SPDX-License-Identifier: GPL-3.0-or-later
#
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
# This script removes unwanted software and files after Debian installation.
################################################################################
# Title: Final cleanup
# Description: This script removes unwanted software and files after Debian installation.
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later
################################################################################
# Remove unwanted packages
chroot /target apt purge --autoremove -y \

View File

@ -0,0 +1,35 @@
#!/bin/sh -e
################################################################################
# Title: Grub-config script
# Description: script to configure thr grub defaults
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later
################################################################################
# This script configures grub defaults after Debian installation.
# 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

View File

@ -0,0 +1,13 @@
#!/bin/sh -e
################################################################################
# Title: Rebuild icon caches script
# Description: This script rebuilds the icon caches after Debian installation.
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# 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 {} \;

View File

@ -1,8 +1,8 @@
#!/bin/sh -e
################################################################################
# Title: Bldhelper.sh
# Description: Script to build My-distro ISO image
# Title: Update system
# Description: Script to update the system after install
# Author: manuel rosa <manuelsilvarosa@gmail.com>
# Date: Outubro 29, 2023
# License: GPL-3.0-or-later

View File

@ -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 <manuelsilvarosa@gmail.com>
# 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