FAQ
Question:
I have created a new Matrix42 PreOS package, but I cannot create any directories or add files on the “Files” tab. The buttons are grayed out and the tree structure is empty. Why is that?
Answer:
You cannot add additional files until you have saved your newly created Matrix42 PreOS package. As soon as you save the package, the file structure is created for the mass data of the package and you can then add additional files and directories.
Question:
I get the warning message “The renaming of the folder was not successful ... Folder with name ... does not exist.” when I try to rename an additional directory via the “Files” tab. What is the reason for this?
Answer:
When an attempt was made to rename an additional directory, the system determined that the original directory no longer exists. The open Matrix42 PreOS package may have been adjusted in the background and the directory removed. In this case, open the Matrix42 PreOS package again. The current directory structure will then be re-read and any removed directories will be deleted from the view.
Question:
My new PreOS package displays error messages in the PEAgent log file, but the execution of the package is reported as being successful. Why does it not state that the execution failed?
Answer:
A PreOS package is displayed as failed if the executed PowerShell script ended with an exit code (not equal to 0). Only then is the package considered to have failed. If errors occur in the Error output during execution, the errors are then also displayed in the log file of the PEAgent, however, these outputs do not yet cause the package to be displayed as failed.
For this purpose, errors must be caught with TRY-CATCHblocks and a corresponding Exit-Code must be set.