Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.

postsync, how it is supposed to work

T. Küchel edited this page Apr 15, 2020 · 2 revisions

postsync

LINBO will handle a couple of modification itself on sync:

  • setting the time on the client
  • manipulating grub
  • setting the correct boot-device (?)

Then it will call the postsync-procedure

postsync on the Linux-Client

generic postsync

LINBO will call the /srv/linbo/hwclass.cloop.postsync file, which should generally be the universal postsync script, installed by linuxmuster-client-servertools or installed when linuxmuster-client is used to download a linux client package. That can be found under usr/lib/linuxmuster-client-servertools/generic.postsync

generic postsync.d/*

The universal postsync script calls itself all the postsync.d-files located in /srv/linbo/linuxmuster-client/patchclass/common/postsync.d/*. Again the linuxmuster-client-servertools installed several generic ones upon using linuxmuster-client. They can be found under /usr/lib/linuxmuster-client-servertools/generic.postsync.d/*lcst*

postsync-directory

The postsync-directory /srv/linbo/linuxmuster-client/patchclass/common/ is used to be copied to the client. The postsync and postsync.d-files will modify those if they need individual configuration.

configuration upon installation

When installed using linuxmuster-client -a auto -c hwclass the script will automatically try to replace all site-specific installations, like replaceing #SERVERIP in certain files with the IP-adress of your server.

configuration upon LINBO-postsync

The host-specific (or room-specific, or otherwise-specific) changes are made during LINBO-postsync, e.g. the /etc/hosts file should be fed the current hosts hostname.

configuration when creating an image

There are occasions when you further develop your image and e.g. the IP-address of your server or your domainname need to appear in a configuration file on the client. You can put it there and re-create an image. Obviously, you don't need any postsync-files or postsync manipulation for that. Remember, that you cannot easily transfer this image to your best friends school....

Clone this wiki locally