Add auto-install capability
|Status:||Closed||Start date:||04 Jul 2020|
|Category:||00 - Basic Build Issues|
|Target version:||2.0 - Harkonnen|
|Severity:||01 - Critical|
If pkgs are found in /media/mmcblk0p3/opkg/pkg at the end of a boot and auto-install option is enabled then install those packages.
Auto-install option is just a stamp file generated at image build time.
Need to determine if auto-install runs at the end of firstboot or at the end of the next boot (and thus requires an additional boot).
RM #771: Add opkg auto-install capability: add opkg/incoming directory to user partition in mkinstall script and add init script to check for .install stamp file in incoming directory and, if found, install any packages found there, then remove the stampfile.
#4 Updated by Hammel about 1 month ago
- % Done changed from 40 to 70
Tested. Ash doesn't like an empty function (stop()) so I had to remove that. Also, when putting the packages on the SD card I need to touch ".install" in the same directory. This should probably be a shell script to make it easy and so I don't forget the stamp file.
#5 Updated by Hammel about 1 month ago
- % Done changed from 70 to 80
This works but it would be better if the init script were symlinked to S99zzreboot which causes an automatic reboot if packages are installed.
To make this work, S21package should put a stamp file - .reboot - into /media/mmcblk0p3/opkg/incoming so S99zzreboot knows it should do the reboot.
A symlink might be problematic for a variety of reasons (how the build system works with the skeleton tree, etc.). It might be simpler to just add another init script that handles the reboot processing.