I found this project extremely useful and start customization process in the following directions:
customize packet set for deploying into A20-Olinuxino-Lime2-4GB based server box
use read only Root FS on NAND and SD with overlayfs and USB automount capability
fully configurable by scripts in userpatches and up-gradable by web interface only
completely none interactive (no tty1, ttyS0, ssh etc.) and controllable via web interface only
Armbian project usage is a must in later maintenance so the customization has to be done by userpatches only. Final project has to be ready for automated builds.
On the first step while trying to remove changing root password and adding user account at the first login a problem was reached adding to customize-image.sh following staff in Jessie case:
chage -m 0 -M 99999 -I -1 -E -1 root # disable root password change at next login rm -f $HOME/.not_logged_in_yet # disable execution of the staff in check_first_login.sh
Both actions cannot not be disabled while previous lines for configuring network in hostapd mode works fine. To overcome the problem distributions.sh was changed by commenting corresponding lines which is not acceptable.
The other problem reached was at hostname change by adding in lib.config of:
HOST=newhostname
The new name is applied at first boot but it is changed again to board name by firstrun script.
How to disable / change above staff without modifying Armbian code base?
One more problem was reached at trying to mount final raw SD card image on a loop device. It is failed probably because of shrinking so the inspecting of written staff become harder by using SD mounted on other Linux system.
Is it possible to leave final image before shrinking for verification and testing purposes without modifying Armbian code base?
Question
chradev
Hi to All,
I found this project extremely useful and start customization process in the following directions:
Armbian project usage is a must in later maintenance so the customization has to be done by userpatches only. Final project has to be ready for automated builds.
On the first step while trying to remove changing root password and adding user account at the first login a problem was reached adding to customize-image.sh following staff in Jessie case:
chage -m 0 -M 99999 -I -1 -E -1 root # disable root password change at next login
rm -f $HOME/.not_logged_in_yet # disable execution of the staff in check_first_login.sh
Both actions cannot not be disabled while previous lines for configuring network in hostapd mode works fine. To overcome the problem distributions.sh was changed by commenting corresponding lines which is not acceptable.
The other problem reached was at hostname change by adding in lib.config of:
HOST=newhostname
The new name is applied at first boot but it is changed again to board name by firstrun script.
How to disable / change above staff without modifying Armbian code base?
One more problem was reached at trying to mount final raw SD card image on a loop device. It is failed probably because of shrinking so the inspecting of written staff become harder by using SD mounted on other Linux system.
Is it possible to leave final image before shrinking for verification and testing purposes without modifying Armbian code base?
Best regards
Chris
Link to comment
Share on other sites
242 answers to this question
Recommended Posts