Scripts to help Grat-OS maintainers
Find a file
2026-01-17 01:40:56 +01:00
webgit Add more CPU arches 2024-01-21 23:08:37 +01:00
archpkg.sh added cosmic pkg in archpkg 2026-01-13 13:51:32 +01:00
build-lfs10.sh Some fixes done by Dania/Rems 2021-11-05 14:21:41 +01:00
chsource few scripts changes 2023-11-06 20:40:45 +01:00
compver Not mandatory to be in the collection subfolder 2023-12-28 00:25:30 +01:00
configvm Some missing =on on new qemu behavior 2025-01-01 18:45:42 +01:00
cyclicdeps also check in run dependencies in cyclicdeps 2025-05-01 16:45:24 +02:00
getarchpkg packager and maintainer in getarchpkg script 2025-12-23 14:24:59 +01:00
great-hist grat-os => great-os 2025-12-24 20:23:34 +01:00
inc1 added some increments scripts 2025-12-19 12:33:27 +01:00
increment added some increments scripts 2025-12-19 12:33:27 +01:00
make-iso adding xwayland to cosmic iso 2026-01-17 01:40:56 +01:00
make-torrrents updating some stuff in scripts :) 2025-12-13 14:13:55 +01:00
mount_mybld.sh xfce is now the xfce4 repo 2025-12-28 17:54:14 +01:00
outdated added cosmic to outdated 2026-01-13 12:49:39 +01:00
README.md updated README 2026-01-04 14:39:07 +01:00
revdeps revdeps modifié par @Rems 2025-12-12 18:38:55 +01:00
rsync-gratos fixed -a argument in rsync-gratos 2024-12-12 20:35:53 +00:00
searchdeps searchdeps go into dev/ repo 2023-03-19 17:17:26 +01:00
sources-test some corex since --spider wget option is introduced 2021-11-11 19:11:12 +01:00
startvm To be Ok with configvm changes 2024-11-26 22:17:04 +01:00
upgrade_kernels Adjust packages in upgrade_kernels script 2025-12-22 18:57:01 +01:00
upgrade_plasma duplicate path in sed lines 2024-12-16 13:04:47 +01:00

scripts

Scripts pour construire Great-OS

A noter que les scripts sont à appeler depuis le dossier de la collection.

enlever la fonction uptodate() des Pkgfile

cd ~/Dev/core/cli/
sed -i '/uptodate()/,/}/d' **/Pkgfile

compver dans la collection base

cd ~/Dev/base/
for i in base/* ; do compver $i; done

sources-test

for i in * ; do sources-test $i; done

refaire une ISO MINI et la déplacer dans le $HOME de l'utilisateur non root.

La fonction suivante est à ajouter dans le /root/.bashrc

creation_iso() {
  if [ -z "$1" ]; then
    FLAVOUR=MINI
  else
    FLAVOUR=$1
  fi
  echo "==================================="
  echo $FLAVOUR;
  echo "==================================="

  VERSION="${VERSION:-dev}"

  HOMEPATH=$(getent passwd "1000" | cut -d: -f6)
  CHEMIN=${HOMEPATH}/Dev
  CHEMIN_ISO=${HOMEPATH}/VM-qemu/iso

  if [ "$VERSION" == "dev" ]; then
    cd $CHEMIN
    GIT_CLONE_HOME=$PWD VERSION=$VERSION URL=https://repo.g-os.org scripts/make-iso $FLAVOUR
  else
    mkdir -p /tmp/ISO/
    cd /tmp/ISO/
    GIT_CLONE_HOME=$PWD VERSION=$VERSION URL=https://repo.great-os.org $CHEMIN/scripts/make-iso $FLAVOUR
  fi
 
  mv /ISO_$FLAVOUR/Great-OS_x86_64-$FLAVOUR.iso $PWD/
  mv /ISO_$FLAVOUR/Great-OS_x86_64-$FLAVOUR.sha256sum $PWD/
  chown 1000:1000 Great-OS_x86_64-$FLAVOUR.iso
  chown 1000:1000 Great-OS_x86_64-$FLAVOUR.sha256sum
  if [ -z "$2" ]; then
    mv Great-OS_x86_64-$FLAVOUR.iso $CHEMIN_ISO/Great-OS_x86_64-$FLAVOUR_$(date '+%4Y%m%d').iso
    mv Great-OS_x86_64-$FLAVOUR.sha256sum $CHEMIN_ISO/Great-OS_x86_64-$FLAVOUR_$(date '+%4Y%m%d').sha256sum
  else
    mv Great-OS_x86_64-$FLAVOUR.iso $CHEMIN_ISO/Great-OS_x86_64-${FLAVOUR}_$2.iso
    mv Great-OS_x86_64-$FLAVOUR.sha256sum $CHEMIN_ISO/Great-OS_x86_64-${FLAVOUR}_$2.sha256sum
  fi
  rm -rf /ISO_$FLAVOUR/
}

redo_all_iso() {
  if [ -z "$1" ]; then
    for i in MINI XFCE MATE ENLIGHTENMENT PLASMA PANTHEON LXDE LXQT GNOME; do creation_iso $i; done
  else
    for i in MINI XFCE MATE ENLIGHTENMENT PLASMA PANTHEON LXDE LXQT GNOME; do creation_iso $i $1; done
  fi
}

redo_all_stable_iso() {
  if [ -z "$1" ]; then
    VERSION=stable redo_all_iso
  else
    VERSION=stable redo_all_iso $1
  fi
}

Créer une ISO MINI:

sudo -i
creation_iso MINI

Ou toutes les ISO en une commande:

sudo -i
redo_all_iso 2022.05

refaire un container great-os

KERNEL=none ou avec quelques paquets de base: KERNEL=container

VERSION=dev KERNEL=container LFS=/var/lib/machines/testgratos install-great-os

recalculer les sommes de contrôle

for i in *.iso; do sha256sum $i > $i.sha256sum; done

for f in *.sha256sum; do mv "$f" "$(echo "$f" | sed s/.iso//)"; done