Merge pull request 'Angleichung der Post-install skripte' (#63) from B3rtl/Ubuntu-Setup-Skripte:postinstallfix into main

Reviewed-on: https://codeberg.org/Computertruhe/Setup-Skripte/pulls/63
Reviewed-by: Mac <mac@noreply.codeberg.org>
Reviewed-by: Valentin Bachem <hdvalentin@noreply.codeberg.org>
This commit is contained in:
B3rtl 2022-09-12 09:29:57 +02:00
commit cb9a2ae2dc
3 changed files with 4 additions and 36 deletions

View File

@ -27,7 +27,6 @@ packages=(
keepassxc
# Games
#0ad
beneath-a-steel-sky
billard-gl
blobby
@ -141,6 +140,7 @@ handle_signal() {
handle_exit() {
e "Finales Cleanup wird durchgeführt …"
rm -f "$DPKG_CFG_FRAGMENT"
rm -f /etc/apt/apt.conf.d/01aptproxy
}
trap handle_signal SIGINT SIGTERM
@ -219,8 +219,6 @@ apt autoremove --yes --quiet
###
# Finalisation
###
e "Apt proxy wieder entfernen..."
rm /etc/apt/apt.conf.d/01aptproxy
e "Initiales Setup beendet."
oem-config-prepare

View File

@ -1,32 +0,0 @@
#!/bin/bash
IMG="$1"
DEV="$2"
if [ -z "$(command -v growpart)" ]; then
echo "growpart fehlt! Installiere cloud-guest-utils..."
sudo apt update
sudo apt install -y cloud-guest-utils
fi
if [ -z "$IMG" ] ; then
echo "Image-File angeben!"
exit 1
fi
if [ -z "$DEV" ] ; then
echo "HDD dev angeben! z. B. /dev/hdc"
exit 1
fi
echo "Warte 1 Sekunden vor dem löschen, abbrechen mit strg + c..."
sleep 1
echo "Achtung - vorbei, ich mache jetzt alles platt auf" "${DEV}"
sudo dd if="$IMG" of=$DEV bs=1M status=progress
sync
sudo growpart $DEV 3
sudo mount ${DEV}3 /mnt
sudo btrfs filesystem resize max /mnt
sudo umount /mnt
sync

View File

@ -27,7 +27,6 @@ packages=(
keepassxc
# Games
0ad
beneath-a-steel-sky
billard-gl
blobby
@ -212,7 +211,10 @@ pkg "${packages[@]}"
e "Sprachunterstützung vervollständigen …"
pkg $(check-language-support)
e "Arabische Schrift"
pkg fonts-arabeyes
e "Kyrillische Schrift"
pkg xfonts-cyrillic
# These packages have to be installed after "$(check-language-support)".
pkg hunspell-de-at hunspell-de-ch hunspell-de-de hunspell-uk hunspell-ru