Project

General

Profile

Actions

Feature #771

closed

Add auto-install capability

Added by Hammel almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
00 - Basic Build Issues
Target version:
Start date:
04 Jul 2020
Due date:
% Done:

100%

Estimated time:
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).

Actions #1

Updated by Hammel almost 4 years ago

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

Updated by Hammel over 3 years 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.

Actions #3

Updated by Hammel over 3 years 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.

Actions #4

Updated by Hammel over 3 years 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.

Actions #5

Updated by Hammel over 3 years 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.

Actions #6

Updated by Hammel over 3 years 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.

Actions #7

Updated by Hammel over 3 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

Verified working.

Committed and pushed.

Closing issue.

Actions

Also available in: Atom PDF