openwrt/package
Daniel Golle 2baded9ecc
base-files: make sure tools are present in sysupgrade ramdisk
Not all targets create /var/lock or touch /var/lock/fw_printenv.lock in
their platform.sh. This is problematic as fw_printenv then fails in
case /var/lock/fw_printenv.lock has not been created by previous calls
to fw_printenv/fw_setenv before sysupgrade is run.

Targets using fw_printenv/fw_setenv during sysupgrade:
 * ath79/*
 * ipq40xx/*
 * ipq806x/*
 * kirkwood/*
 * layerscape/*
 * mediatek/mt7622
 * mvebu/*
 * ramips/*
 * realtek/*

Targets currently using additional steps in /lib/upgrade/platform.sh
to make sure /var/lock/fw_printenv.lock (or at least /var/lock)
actually exists:
 * ath79/* (openmesh devices)
 * ipq40xx/* (linksys devices)
 * ipq806x/* (linksys devices)
 * kirkwood/* (linksys devices)
 * layerscape/*
 * mvebu/cortexa9 (linksys devices)

Given that accessing the U-Boot environment during sysupgrade is not
uncommon and the situation across targets is currently quite diverse,
just make sure both tools as well fw_env.config are always copied to
the ramdisk used for sysupgrade. Also make sure /var/lock always
exists.

This now allows to remove copying of fw_printenv/fw_setenv as well as
fw_env.config, creation of /var/lock or even /var/lock/fw_printenv.lock
from lib/upgrade/platform.sh or files included there.

As the same applies also to 'fwtool' which is used by generic eMMC
sysupgrade, also always copy that to ramdisk.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-02-22 19:16:03 +00:00
..
base-files base-files: make sure tools are present in sysupgrade ramdisk 2022-02-22 19:16:03 +00:00
boot uboot-mvebu: backport pending patches for Marvell A38x 2022-02-20 14:26:42 +01:00
devel strace: Update to version 5.16 2022-02-01 21:25:02 +01:00
firmware wireless-regdb: update to version 2022.02.18 2022-02-20 13:47:57 +09:00
kernel mac80211: add debug compile option for rtw88 devices 2022-02-20 14:26:40 +01:00
libs openssl: configure engines with uci 2022-02-22 16:37:23 +01:00
network qosify: update to the latest version 2022-02-20 18:13:14 +01:00
system procd: update to git HEAD 2022-02-19 00:11:55 +00:00
utils ucode: update to latest Git HEAD 2022-02-12 20:51:22 +01:00
Makefile build: fix opkg install step for large package selection 2021-05-12 11:13:53 +02:00