I copied my custom keyboard layout into
/Library/Keyboard Layouts. After that, I can easily choose from
System Preferences → Keyboard → Input Sources, and it just works fine. But whenever I restart the computer, the previously added keyboard layout is deleted automatically and has to be added again The computer does not delete the files inside the
/Library/Keyboard Layouts directory, it only deletes the entry in System Preferences.
How do I resolve this issue?