Scripts to help Grat-OS maintainers
Find a file
2025-05-01 16:45:24 +02:00
webgit Add more CPU arches 2024-01-21 23:08:37 +01:00
archpkg.sh thunderbird is esr 2025-05-01 16:45:24 +02: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 few scripts changes 2023-11-06 20:40:45 +01:00
grat-hist Add a more flexible GITDIR in a separate file 2024-12-08 10:49:24 +01:00
make-iso few changes to make-iso 2024-12-22 12:51:06 +01:00
make-torrrents make-torrents flavours changed 2024-04-25 12:47:02 +02:00
mount_mybld.sh Add GITDIR= var in .mybld template 2024-12-08 10:47:05 +01:00
outdated Add a more flexible GITDIR in a separate file 2024-12-08 10:42:29 +01:00
README.md Actualiser README.md 2025-01-31 23:06:51 +01:00
revdeps put the file in /tmp is clearly a good place 2024-12-08 10:40:37 +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 kernel 6.14 is stable now. nvidia 560->570 2025-05-01 16:45:24 +02:00
upgrade_plasma duplicate path in sed lines 2024-12-16 13:04:47 +01:00

scripts

Scripts pour construire Grat-OS

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

enlever la fonction uptodate() des Pkgfile

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

compver dans la collection base

cd ~/Dev-Grat/base/base/
for i in * ; 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-Grat
  CHEMIN_ISO=${HOMEPATH}/VM-qemu/iso

  if [ "$VERSION" == "dev" ]; then
    cd $CHEMIN
    GIT_CLONE_HOME=$PWD VERSION=$VERSION URL=https://repo.grat-os.fr scripts/make-iso $FLAVOUR
  else
    mkdir -p /tmp/ISO/
    cd /tmp/ISO/
    GIT_CLONE_HOME=$PWD VERSION=$VERSION URL=https://repo.grat-os.fr $CHEMIN/scripts/make-iso $FLAVOUR
  fi

  mv /ISO_$FLAVOUR/Grat-OS_x86_64-$FLAVOUR.iso $PWD/
  chown 1000:1000 Grat-OS_x86_64-$FLAVOUR.iso
  if [ -z "$2" ]; then
    mv Grat-OS_x86_64-$FLAVOUR.iso $CHEMIN_ISO/Grat-OS_x86_64-$FLAVOUR_$(date '+%4Y%m%d').iso
    mv Grat-OS_x86_64-$FLAVOUR.sha256sum $CHEMIN_ISO/Grat-OS_x86_64-$FLAVOUR_$(date '+%4Y%m%d').sha256sum
  else
    mv Grat-OS_x86_64-$FLAVOUR.iso $CHEMIN_ISO/Grat-OS_x86_64-${FLAVOUR}_$2.iso
    mv Grat-OS_x86_64-$FLAVOUR.sha256sum $CHEMIN_ISO/Grat-OS_x86_64-${FLAVOUR}_$2.sha256sum
  fi
  rm -rf /ISO_$FLAVOUR/
}

redo_all_iso() {
  if [ -z "$1" ]; then
    for i in MINI XFCE4 MATE ENLIGHTENMENT PLASMA PANTHEON LXDE LXQT GNOME; do creation_iso $i; done
  else
    for i in MINI XFCE4 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 grat-os

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

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