alexparser 0 Posted September 5, 2017 Share Posted September 5, 2017 Hi all! I need to install other packages and make a custom configuration of OS. Can I do at image building time: - Remove Armbian packages - Add other packages - Save configs at location /etc/ - Setup user name + password and Bash profiles Link to post Share on other sites More sharing options...
debianxfce 10 Posted September 5, 2017 Share Posted September 5, 2017 Just inspect and edit lib/*.sh files. https://github.com/armbian/build/tree/master/lib Link to post Share on other sites More sharing options...
tkaiser 1642 Posted September 5, 2017 Share Posted September 5, 2017 1 hour ago, alexparser said: Can I do at image building time Sure. Don't try to 'edit lib/*.sh files' but use the established mechanisms: Documentation: https://docs.armbian.com/Developer-Guide_User-Configurations/#user-provided-image-customization-script Example: https://github.com/armbian/build/blob/master/config/templates/customize-image.sh.template Be smart and search: https://www.google.com/search?rls=en&dcr=0&q=Armbian+Customization+site%3Aarmbian.com&oq=Armbian+Customization+site%3Aarmbian.com Link to post Share on other sites More sharing options...
debianxfce 10 Posted September 5, 2017 Share Posted September 5, 2017 5 hours ago, tkaiser said: Sure. Don't try to 'edit lib/*.sh files' but use the established mechanisms: Documentation: https://docs.armbian.com/Developer-Guide_User-Configurations/#user-provided-image-customization-script Example: https://github.com/armbian/build/blob/master/config/templates/customize-image.sh.template Be smart and search: https://www.google.com/search?rls=en&dcr=0&q=Armbian+Customization+site%3Aarmbian.com&oq=Armbian+Customization+site%3Aarmbian.com Do not use external hooks, only gods know how well they work If you plan to maintain your on distro for a specific device, just remove whatever unneeded code from .sh files to make them simpler and more readable. Link to post Share on other sites More sharing options...
alexparser 0 Posted September 6, 2017 Author Share Posted September 6, 2017 23 hours ago, debianxfce said: Just inspect and edit lib/*.sh files. https://github.com/armbian/build/tree/master/lib This will work with old kernel 3.4.xxx? What order of *.sh files execution? BR, Link to post Share on other sites More sharing options...
debianxfce 10 Posted September 7, 2017 Share Posted September 7, 2017 10 hours ago, alexparser said: This will work with old kernel 3.4.xxx? What order of *.sh files execution? BR, Armbian uses old kernels. The build process starts with the ../compile.sh file. Packages to install is defined in the configuration.sh file. Additional files are written in the distributions.sh file. 1 Link to post Share on other sites More sharing options...
Recommended Posts