Feature #771
closed
Add auto-install capability
Added by Hammel over 4 years ago.
Updated almost 4 years ago.
Category:
00 - Basic Build Issues
Description
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).
- Priority changed from High to Immediate
- Severity changed from 03 - Medium to 01 - Critical
- Status changed from New to In Progress
- % Done changed from 0 to 30
This required a new init script (S21package) and a mod to the mkinstall script to add a new directory under opkg - opkg/incoming.
It's in my sandbox for rpi2 but needs testing.
- % Done changed from 30 to 40
I've rebuilt the rootfs and packaging scripts. The updates for this issue should show up on the next image I generate with the packaging scripts.
- % 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.
- % 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.
- % Done changed from 80 to 90
This is ready for one final test. Just build the sd image and add the media system packages, then boot. The reboot after install should be automatic.
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
Verified working.
Committed and pushed.
Closing issue.
Also available in: Atom
PDF