Feature #771

Add auto-install capability

Added by Hammel 7 months ago. Updated about 1 month ago.

Status:ClosedStart date:04 Jul 2020
Priority:ImmediateDue date:
Assignee:Hammel% Done:

100%

Category:00 - Basic Build Issues
Target version:2.0 - Harkonnen
Severity:01 - Critical

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).

Associated revisions

Revision e2e138e6
Added by Hammel about 1 month ago

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.

Revision feb216ba
Added by Hammel about 1 month ago

RM #771: Add reboot init script in support of automated package installation.

History

#1 Updated by Hammel 6 months ago

  • Priority changed from High to Immediate
  • Severity changed from 03 - Medium to 01 - Critical

#2 Updated by Hammel 3 months ago

  • 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.

#3 Updated by Hammel about 1 month ago

  • % 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.

#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.

#6 Updated by Hammel about 1 month ago

  • % 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.

#7 Updated by Hammel about 1 month ago

  • 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