atualizar os scripts de hook
This commit is contained in:
parent
08b8791fdd
commit
27d16f28a8
|
@ -1,23 +1,25 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
################################################################################
|
||||||
#
|
# Title: Preseed.cfg
|
||||||
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
|
# 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/non-free boolean true
|
||||||
d-i apt-setup/contrib boolean true
|
d-i apt-setup/contrib boolean true
|
||||||
d-i apt-setup/non-free-firmware 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.
|
# Values shown below are the normal defaults.
|
||||||
d-i apt-setup/services-select multiselect security, updates, backports
|
d-i apt-setup/services-select multiselect security, updates, backports
|
||||||
d-i apt-setup/security_host string security.debian.org
|
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
|
d-i apt-setup/multiarch string i386
|
||||||
|
|
||||||
# Remove popularity-contest
|
### Remove popularity-contest
|
||||||
popularity-contest popularity-contest/participate boolean false
|
popularity-contest popularity-contest/participate boolean false
|
||||||
|
|
||||||
### Account setup
|
### Account setup
|
||||||
|
@ -25,3 +27,6 @@ popularity-contest popularity-contest/participate boolean false
|
||||||
# use sudo).
|
# use sudo).
|
||||||
d-i passwd/root-login boolean false
|
d-i passwd/root-login boolean false
|
||||||
|
|
||||||
|
### Keep /etc/default/grub file
|
||||||
|
d-i grub-pc/default string keep
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
################################################################################
|
||||||
#
|
# Title: Final cleanup
|
||||||
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
|
# Description: This script removes unwanted software and files after Debian installation.
|
||||||
|
# Author: manuel rosa <manuelsilvarosa@gmail.com>
|
||||||
# This script removes unwanted software and files after Debian installation.
|
# Date: Outubro 29, 2023
|
||||||
|
# License: GPL-3.0-or-later
|
||||||
|
################################################################################
|
||||||
|
|
||||||
# Remove unwanted packages
|
# Remove unwanted packages
|
||||||
chroot /target apt purge --autoremove -y \
|
chroot /target apt purge --autoremove -y \
|
||||||
|
|
|
@ -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
|
|
@ -1,16 +1,13 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Title: build-all.sh
|
# Title: Rebuild icon caches script
|
||||||
# Description: This script updates the system after Debian installation.
|
# Description: This script rebuilds the icon caches after Debian installation.
|
||||||
# Author: manuel rosa <manuelsilvarosa@gmail.com>
|
# Author: manuel rosa <manuelsilvarosa@gmail.com>
|
||||||
# Date: Outubro 29, 2023
|
# Date: Outubro 29, 2023
|
||||||
# License: GPL-3.0-or-later
|
# License: GPL-3.0-or-later
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# Update the system
|
# Rebuild the icon caches
|
||||||
chroot /target apt update
|
chroot /target find /usr/share/icons -type d -exec gtk-update-icon-cache -f {} \;
|
||||||
chroot /target apt upgrade -y
|
|
||||||
|
|
||||||
# Clean up unnecessary packages
|
|
||||||
chroot /target apt autoremove -y
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Title: Bldhelper.sh
|
# Title: Update system
|
||||||
# Description: Script to build My-distro ISO image
|
# Description: Script to update the system after install
|
||||||
# Author: manuel rosa <manuelsilvarosa@gmail.com>
|
# Author: manuel rosa <manuelsilvarosa@gmail.com>
|
||||||
# Date: Outubro 29, 2023
|
# Date: Outubro 29, 2023
|
||||||
# License: GPL-3.0-or-later
|
# License: GPL-3.0-or-later
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
#!/bin/bash
|
#!/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..
|
# Workaround for using snapd on debian. Thank You - @stevesveryown and peppermint team..
|
||||||
[ ! -e /etc/skel/.local/share ] && mkdir -p /etc/skel/.local/share
|
[ ! -e /etc/skel/.local/share ] && mkdir -p /etc/skel/.local/share
|
||||||
[ ! -e /var/lib/snapd/desktop/applications ] &&
|
[ ! -e /var/lib/snapd/desktop/applications ] &&
|
||||||
|
|
|
@ -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/plymouth/themes
|
||||||
mkdir -p $build/build/config/includes.chroot/usr/share/desktop-base
|
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/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.chroot/boot/grub
|
||||||
mkdir -p $build/build/config/includes.installer/usr/lib/finish-install.d
|
mkdir -p $build/build/config/includes.installer/usr/lib/finish-install.d
|
||||||
mkdir -p $build/build/config/includes.installer//usr/share
|
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/install-debian/* $build/build/config/includes.chroot/usr/share/pixmaps
|
||||||
cp $build/sources-final/* $build/build/config/includes.chroot/usr/sbin
|
cp $build/sources-final/* $build/build/config/includes.chroot/usr/sbin
|
||||||
cp $build/bootloader-config/* $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/scripts/* $build/build/config/includes.installer/usr/lib/finish-install.d
|
||||||
cp $build/deb-installer/preseed/* $build/build/config/includes.installer
|
cp $build/deb-installer/preseed/* $build/build/config/includes.installer
|
||||||
|
|
||||||
|
|
|
@ -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/plymouth/themes
|
||||||
mkdir -p $build/build/config/includes.chroot/usr/share/desktop-base
|
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/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.chroot/boot/grub
|
||||||
mkdir -p $build/build/config/includes.installer/usr/lib/finish-install.d
|
mkdir -p $build/build/config/includes.installer/usr/lib/finish-install.d
|
||||||
mkdir -p $build/build/config/includes.installer//usr/share
|
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/install-debian/* $build/build/config/includes.chroot/usr/share/pixmaps
|
||||||
cp $build/sources-final/* $build/build/config/includes.chroot/usr/sbin
|
cp $build/sources-final/* $build/build/config/includes.chroot/usr/sbin
|
||||||
cp $build/bootloader-config/* $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/scripts/* $build/build/config/includes.installer/usr/lib/finish-install.d
|
||||||
cp $build/deb-installer/preseed/* $build/build/config/includes.installer
|
cp $build/deb-installer/preseed/* $build/build/config/includes.installer
|
||||||
|
|
||||||
|
|
|
@ -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/plymouth/themes
|
||||||
mkdir -p $build/build/config/includes.chroot/usr/share/desktop-base
|
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/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.chroot/boot/grub
|
||||||
mkdir -p $build/build/config/includes.installer/usr/lib/finish-install.d
|
mkdir -p $build/build/config/includes.installer/usr/lib/finish-install.d
|
||||||
mkdir -p $build/build/config/includes.installer//usr/share
|
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/hooks/normal/* $build/build/config/hooks/normal
|
||||||
cp $build/install-debian/* $build/build/config/includes.chroot/usr/share/pixmaps
|
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/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/scripts/* $build/build/config/includes.installer/usr/lib/finish-install.d
|
||||||
cp $build/deb-installer/preseed/* $build/build/config/includes.installer
|
cp $build/deb-installer/preseed/* $build/build/config/includes.installer
|
||||||
|
|
||||||
|
|
|
@ -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/plymouth/themes
|
||||||
mkdir -p $build/build/config/includes.chroot/usr/share/desktop-base
|
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/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.chroot/boot/grub/themes
|
||||||
mkdir -p $build/build/config/includes.installer/usr/lib/finish-install.d
|
mkdir -p $build/build/config/includes.installer/usr/lib/finish-install.d
|
||||||
mkdir -p $build/build/config/includes.installer//usr/share
|
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/install-debian/* $build/build/config/includes.chroot/usr/share/pixmaps
|
||||||
cp $build/sources-final/* $build/build/config/includes.chroot/usr/sbin
|
cp $build/sources-final/* $build/build/config/includes.chroot/usr/sbin
|
||||||
cp $build/bootloader-config/* $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/scripts/* $build/build/config/includes.installer/usr/lib/finish-install.d
|
||||||
cp $build/deb-installer/preseed/* $build/build/config/includes.installer
|
cp $build/deb-installer/preseed/* $build/build/config/includes.installer
|
||||||
|
|
||||||
|
|
|
@ -1,23 +1,25 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
################################################################################
|
||||||
#
|
# Title: Preseed.cfg
|
||||||
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
|
# 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/non-free boolean true
|
||||||
d-i apt-setup/contrib boolean true
|
d-i apt-setup/contrib boolean true
|
||||||
d-i apt-setup/non-free-firmware 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.
|
# Values shown below are the normal defaults.
|
||||||
d-i apt-setup/services-select multiselect security, updates, backports
|
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
|
d-i apt-setup/multiarch string i386
|
||||||
|
|
||||||
# Remove popularity-contest
|
### Remove popularity-contest
|
||||||
popularity-contest popularity-contest/participate boolean false
|
popularity-contest popularity-contest/participate boolean false
|
||||||
|
|
||||||
### Account setup
|
### Account setup
|
||||||
|
@ -25,3 +27,6 @@ popularity-contest popularity-contest/participate boolean false
|
||||||
# use sudo).
|
# use sudo).
|
||||||
d-i passwd/root-login boolean false
|
d-i passwd/root-login boolean false
|
||||||
|
|
||||||
|
### Keep /etc/default/grub file
|
||||||
|
d-i grub-pc/default string keep
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
################################################################################
|
||||||
#
|
# Title: Final cleanup
|
||||||
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
|
# Description: This script removes unwanted software and files after Debian installation.
|
||||||
|
# Author: manuel rosa <manuelsilvarosa@gmail.com>
|
||||||
# This script removes unwanted software and files after Debian installation.
|
# Date: Outubro 29, 2023
|
||||||
|
# License: GPL-3.0-or-later
|
||||||
|
################################################################################
|
||||||
|
|
||||||
# Remove unwanted packages
|
# Remove unwanted packages
|
||||||
chroot /target apt purge --autoremove -y \
|
chroot /target apt purge --autoremove -y \
|
||||||
|
|
|
@ -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
|
|
@ -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 {} \;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Title: Bldhelper.sh
|
# Title: Update system
|
||||||
# Description: Script to build My-distro ISO image
|
# Description: Script to update the system after install
|
||||||
# Author: manuel rosa <manuelsilvarosa@gmail.com>
|
# Author: manuel rosa <manuelsilvarosa@gmail.com>
|
||||||
# Date: Outubro 29, 2023
|
# Date: Outubro 29, 2023
|
||||||
# License: GPL-3.0-or-later
|
# License: GPL-3.0-or-later
|
||||||
|
|
|
@ -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/plymouth/themes
|
||||||
mkdir -p $build/build/config/includes.chroot/usr/share/desktop-base
|
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/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.chroot/boot/grub/themes
|
||||||
mkdir -p $build/build/config/includes.installer/usr/lib/finish-install.d
|
mkdir -p $build/build/config/includes.installer/usr/lib/finish-install.d
|
||||||
mkdir -p $build/build/config/includes.installer//usr/share
|
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/install-debian/* $build/build/config/includes.chroot/usr/share/pixmaps
|
||||||
cp $build/sources-final/* $build/build/config/includes.chroot/usr/sbin
|
cp $build/sources-final/* $build/build/config/includes.chroot/usr/sbin
|
||||||
cp $build/bootloader-config/* $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/scripts/* $build/build/config/includes.installer/usr/lib/finish-install.d
|
||||||
cp $build/deb-installer/preseed/* $build/build/config/includes.installer
|
cp $build/deb-installer/preseed/* $build/build/config/includes.installer
|
||||||
|
|
||||||
|
|
|
@ -1,23 +1,25 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
################################################################################
|
||||||
#
|
# Title: Preseed.cfg
|
||||||
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
|
# 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/non-free boolean true
|
||||||
d-i apt-setup/contrib boolean true
|
d-i apt-setup/contrib boolean true
|
||||||
d-i apt-setup/non-free-firmware 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.
|
# Values shown below are the normal defaults.
|
||||||
d-i apt-setup/services-select multiselect security, updates, backports
|
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
|
d-i apt-setup/multiarch string i386
|
||||||
|
|
||||||
# Remove popularity-contest
|
### Remove popularity-contest
|
||||||
popularity-contest popularity-contest/participate boolean false
|
popularity-contest popularity-contest/participate boolean false
|
||||||
|
|
||||||
### Account setup
|
### Account setup
|
||||||
|
@ -25,3 +27,6 @@ popularity-contest popularity-contest/participate boolean false
|
||||||
# use sudo).
|
# use sudo).
|
||||||
d-i passwd/root-login boolean false
|
d-i passwd/root-login boolean false
|
||||||
|
|
||||||
|
### Keep /etc/default/grub file
|
||||||
|
d-i grub-pc/default string keep
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
################################################################################
|
||||||
#
|
# Title: Final cleanup
|
||||||
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
|
# Description: This script removes unwanted software and files after Debian installation.
|
||||||
|
# Author: manuel rosa <manuelsilvarosa@gmail.com>
|
||||||
# This script removes unwanted software and files after Debian installation.
|
# Date: Outubro 29, 2023
|
||||||
|
# License: GPL-3.0-or-later
|
||||||
|
################################################################################
|
||||||
|
|
||||||
# Remove unwanted packages
|
# Remove unwanted packages
|
||||||
chroot /target apt purge --autoremove -y \
|
chroot /target apt purge --autoremove -y \
|
||||||
|
|
|
@ -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
|
|
@ -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 {} \;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Title: Bldhelper.sh
|
# Title: Update system
|
||||||
# Description: Script to build My-distro ISO image
|
# Description: Script to update the system after install
|
||||||
# Author: manuel rosa <manuelsilvarosa@gmail.com>
|
# Author: manuel rosa <manuelsilvarosa@gmail.com>
|
||||||
# Date: Outubro 29, 2023
|
# Date: Outubro 29, 2023
|
||||||
# License: GPL-3.0-or-later
|
# License: GPL-3.0-or-later
|
||||||
|
|
|
@ -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/plymouth/themes
|
||||||
mkdir -p $build/build/config/includes.chroot/usr/share/desktop-base
|
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/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.chroot/boot/grub/themes
|
||||||
mkdir -p $build/build/config/includes.installer/usr/lib/finish-install.d
|
mkdir -p $build/build/config/includes.installer/usr/lib/finish-install.d
|
||||||
mkdir -p $build/build/config/includes.installer//usr/share
|
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/hooks/normal/* $build/build/config/hooks/normal
|
||||||
cp $build/install-debian/* $build/build/config/includes.chroot/usr/share/pixmaps
|
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/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/scripts/* $build/build/config/includes.installer/usr/lib/finish-install.d
|
||||||
cp $build/deb-installer/preseed/* $build/build/config/includes.installer
|
cp $build/deb-installer/preseed/* $build/build/config/includes.installer
|
||||||
|
|
||||||
|
|
|
@ -1,23 +1,25 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
################################################################################
|
||||||
#
|
# Title: Preseed.cfg
|
||||||
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
|
# 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/non-free boolean true
|
||||||
d-i apt-setup/contrib boolean true
|
d-i apt-setup/contrib boolean true
|
||||||
d-i apt-setup/non-free-firmware 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.
|
# Values shown below are the normal defaults.
|
||||||
d-i apt-setup/services-select multiselect security, updates, backports
|
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
|
d-i apt-setup/multiarch string i386
|
||||||
|
|
||||||
# Remove popularity-contest
|
### Remove popularity-contest
|
||||||
popularity-contest popularity-contest/participate boolean false
|
popularity-contest popularity-contest/participate boolean false
|
||||||
|
|
||||||
### Account setup
|
### Account setup
|
||||||
|
@ -25,3 +27,6 @@ popularity-contest popularity-contest/participate boolean false
|
||||||
# use sudo).
|
# use sudo).
|
||||||
d-i passwd/root-login boolean false
|
d-i passwd/root-login boolean false
|
||||||
|
|
||||||
|
### Keep /etc/default/grub file
|
||||||
|
d-i grub-pc/default string keep
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
################################################################################
|
||||||
#
|
# Title: Final cleanup
|
||||||
# SPDX-FileCopyrightText: 2023 PeppermintOS Team (peppermintosteam@proton.me)
|
# Description: This script removes unwanted software and files after Debian installation.
|
||||||
|
# Author: manuel rosa <manuelsilvarosa@gmail.com>
|
||||||
# This script removes unwanted software and files after Debian installation.
|
# Date: Outubro 29, 2023
|
||||||
|
# License: GPL-3.0-or-later
|
||||||
|
################################################################################
|
||||||
|
|
||||||
# Remove unwanted packages
|
# Remove unwanted packages
|
||||||
chroot /target apt purge --autoremove -y \
|
chroot /target apt purge --autoremove -y \
|
||||||
|
|
|
@ -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
|
|
@ -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 {} \;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Title: Bldhelper.sh
|
# Title: Update system
|
||||||
# Description: Script to build My-distro ISO image
|
# Description: Script to update the system after install
|
||||||
# Author: manuel rosa <manuelsilvarosa@gmail.com>
|
# Author: manuel rosa <manuelsilvarosa@gmail.com>
|
||||||
# Date: Outubro 29, 2023
|
# Date: Outubro 29, 2023
|
||||||
# License: GPL-3.0-or-later
|
# License: GPL-3.0-or-later
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in New Issue