Version 3 (modified by 13 years ago) (diff) | ,
---|
Changes to the Client
Previous Steps:
mkdir -p /tmp/opengnsys_installer/opengnsys/client/boot-tools; svn checkout http://www.opengnsys.es/svn/trunk/client/boot-tools /tmp/opengnsys_installer/opengnsys/client/boot-tools; source /tmp/opengnsys_installer/opengnsys/client/boot-tools/ogClientManager.lib
Generate a new initrd, with ours "locals" and save in /opt/opengnsys/tftpboot/ogclient/
#Solicitamos que se monte el sistema root (img), y configuere los locales. schroot -c IMGogclient -- /root/ReconfigureLocales.sh #Solicitamos que se monte el sistema root (img), y cree el initrd y el kernel ogClientInitrd host #almacenara el kernel y el initrd en /var/lib/tftpboot/ogclient/{ogvmlinuz oginitrd.img}
Copy new files to root system of client (ogclient.img)
Any extra file that we want to add to the root system of the client, we have the directory /tmp shared between OS and ogclient.
#Access to shell console of the root system of the client (img) schroot -c IMGogclient #Do the modifications. Directory /tmp is shared by our computer and by the root system of the client (img) cp /tmp/ficheroOGSERVER.txt /home/opengnsys/ficheroEnOGclient.txt # Quit of root system of the client (img) exit
Generate a new initrd with a new init process of OpenGnSys
schroot -c IMGogclient #edit the init process vi /etc/initramfs-tools/scripts/oginit #edit the init process functions vi /initramfs-tools/scripts/ogfunctions # or copy one updated. cp /tmp/oginit /etc/initramfs-tools/scripts/oginit # or add one init alternative cp /tmp/oginit2 /etc/initramfs-tools/scripts/oginit2 exit ogClientInitrd host
Install new tools in root system of (ogclient.img)
schroot -c IMGogclient apt-get install python3 exit
Generate a new root system in sqfs format (ogclient.sqfs)
ogClient2ndSqfs IMGogclient