Creating a Custom Full Reg Screen
DJslimD1k last edited by
Hello everyone! I’ve looked through several documents to see how to create custom full inventory process, but I’m not getting anywhere. We are wanting to remove the questions about product keys, primary user, and service tag one and two. Is this possible to do? We are running CentOS8 and FOG version 126.96.36.199. Any advice?
@DJslimD1k Yes there are two ways of achieving this. The first one is kind of static where you modify the
init.xzfile. You need to re-do the modification as soon as you update to a new version of FOG. Find instructions on how to do that in the wiki: https://wiki.fogproject.org/wiki/index.php?title=Modifying_the_Init_Image
But as you seem to use the latest
dev-branchversion (great!) I would suggest you use the more dynamic way of “patching” the inits on the fly while it boots up. George posted instructions on this in the forums: https://forums.fogproject.org/topic/13500/dynamically-patching-fos-using-a-postinit-script
In your case you want to edit
fog.reg.man.fixand delete lines 286-294 as well as 250-268 (note I am listing the lines numbers in reverse because when you start deleting in line 250 the later line numbers will change).
As well I suggest you keep an eye on the commit history of this particular file on github (https://github.com/FOGProject/fos/commits/master/Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.man.reg) - whenever we commit a change I suggest you re-download and modify your
fog.reg.man.fixagain. Last change was March 2018, so changes to this file are kind of rare but you never know.