<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/package/base-files, branch master</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2025-06-23T07:39:12Z</updated>
<entry>
<title>base-files: handle packages alternatives when apk removes packages</title>
<updated>2025-06-23T07:39:12Z</updated>
<author>
<name>Mario Andrés Pérez</name>
</author>
<published>2025-06-12T13:49:59Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=47b6b9de1a6c37b877be250fdd759a64337c9ecc'/>
<id>urn:sha1:47b6b9de1a6c37b877be250fdd759a64337c9ecc</id>
<content type='text'>
On commit 3010ab8 ("base-files: add update_alternatives function") was
implemented the function to handle ALTERNATIVES when using APK (OPKG
handle it internally) but in commit bcc6415 ("base-files: add
compatibility for APK and OPKG") was only called when adding a package,
so call it also when removing packages.

While we are here, check for a more specific *.alternatives files instead
of *.list, and remove redundant "filelist" variable definition.

Fixes: bcc6415 ("base-files: add compatibility for APK and OPKG")
Fixes: https://github.com/openwrt/openwrt/issues/19090
Fixes: https://github.com/openwrt/openwrt/issues/16991
Reported-and-tested-by: Eric Fahlgren &lt;ericfahlgren@gmail.com&gt;
Signed-off-by: Mario Andrés Pérez &lt;mapb_@outlook.com&gt;
Link: https://github.com/openwrt/openwrt/pull/19093
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: add dtb support to emmc_upgrade_tar()</title>
<updated>2025-06-22T20:17:20Z</updated>
<author>
<name>INAGAKI Hiroshi</name>
</author>
<published>2024-04-08T11:24:47Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=f9743c5190cea4589a117b2fbccd67a761069ec4'/>
<id>urn:sha1:f9743c5190cea4589a117b2fbccd67a761069ec4</id>
<content type='text'>
Add dtb support for emmc_upgrade_tar() to update dtb separately.

Signed-off-by: INAGAKI Hiroshi &lt;musashino.open@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/16904
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>base-files: add gzip-compressed tar support to emmc_upgrade_tar()</title>
<updated>2025-06-22T20:17:19Z</updated>
<author>
<name>INAGAKI Hiroshi</name>
</author>
<published>2024-08-04T09:14:43Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=21347caf7efb2a32c55c80612eae71cc4118bafc'/>
<id>urn:sha1:21347caf7efb2a32c55c80612eae71cc4118bafc</id>
<content type='text'>
Add support for the tar archive compressed by gzip to emmc_upgrade_tar()
function.

Signed-off-by: INAGAKI Hiroshi &lt;musashino.open@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/16904
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>base-files: ignore initscript output in sysupgrade</title>
<updated>2025-06-22T18:45:02Z</updated>
<author>
<name>Niall McGee</name>
</author>
<published>2025-05-30T21:55:35Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=07dfb9b710a91d544f4e0011118a30fff5eb0d82'/>
<id>urn:sha1:07dfb9b710a91d544f4e0011118a30fff5eb0d82</id>
<content type='text'>
Suppress output from `/etc/init.d/service enabled` to avoid corrupting
of the sysupgrade tarball.

Fixes: 0ad062a21b ("base-files: sysupgrade: add uci-defaults script disabling services #2")
Signed-off-by: Niall McGee &lt;niall.mcgee@bt.com&gt;
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>sysupgrade: create 10_disable_services w/ fixed modified time</title>
<updated>2025-05-31T17:18:50Z</updated>
<author>
<name>Philip Prindeville</name>
</author>
<published>2024-08-11T21:28:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=c6c29d7b3837f41797c4bbaafad05c6487166d25'/>
<id>urn:sha1:c6c29d7b3837f41797c4bbaafad05c6487166d25</id>
<content type='text'>
Every time "sysupgrade -b -" runs it would generate a new
(synthetic) "/etc/uci-defaults/10_disable_services" file with
the current time as the modified time.  This unfortunately
creates a non-deterministic tarball, so if you run a cron job
to save your state, you don't have a trivial way of seeing if
it changed or not without unpacking the archive, deleting this
file, and comparing the entire directory tree to the previous
backup.

Fixes: #16145
Fixes: 0ad062a21b ("base-files: sysupgrade: include uci-defaults script disabling services #2")
Signed-off-by: Philip Prindeville &lt;philipp@redfish-solutions.com&gt;
</content>
</entry>
<entry>
<title>base-files: use cidr for config_generate</title>
<updated>2025-05-30T20:55:27Z</updated>
<author>
<name>Vladislav Grigoryev</name>
</author>
<published>2023-10-24T17:33:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=d989d9a8ec4c94bd2185cac45ad9f3272ce100ac'/>
<id>urn:sha1:d989d9a8ec4c94bd2185cac45ad9f3272ce100ac</id>
<content type='text'>
Generate network configuration replacing netmask with CIDR.

Depends on:
https://github.com/openwrt/openwrt/pull/13765

Using CIDR provides the following advantages:
* Consolidate notation for IPv4 and IPv6 addresses.
* Consolidate notation for IP addresses and routing targets.
* Simplify network configuration and troubleshooting.
* Follow the transition from net-tools to iproute2.

Resulting configuration example:
```
config interface 'loopback'
	option device 'lo'
	option proto 'static'
	list ipaddr '127.0.0.1/8'

config interface 'lan'
	option device 'br-lan'
	option proto 'static'
	list ipaddr '192.168.1.1/24'
```

Signed-off-by: Vladislav Grigoryev &lt;vg.aetera@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/13780
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: treat 'ipaddr is inside range' as warning again</title>
<updated>2025-05-29T21:54:18Z</updated>
<author>
<name>Florian Eckert</name>
</author>
<published>2025-04-30T10:25:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=32ed3db1a0c36aeecd027ee585669ab0a390ac22'/>
<id>urn:sha1:32ed3db1a0c36aeecd027ee585669ab0a390ac22</id>
<content type='text'>
The call to 'ipcalc' is used in 'dnsmasq' init script to create the
configuration. If the 'ipaddr' is in the configured range then 'ipcalc' exited
with an error whereby the START/STOP variables are unavailable.

This behaviour has changed during 'ipcalc' refactoring and now leads to a
problem when starting 'dnsmasq' if the 'ipaddr' is inside this range. To
restore the old behaviour, only a warning is issued as before and the
required variables for the 'dnsmasq' are still set.

Fixes: 854739b32c7f (base-files: ipcalc.sh: Rewrite in pure shell)

Signed-off-by: Florian Eckert &lt;fe@dev.tdt.de&gt;
Link: https://github.com/openwrt/openwrt/pull/18641
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>package: basefiles: add oem image dectection to fwtool.sh</title>
<updated>2025-04-30T11:15:42Z</updated>
<author>
<name>Scott Mercer</name>
</author>
<published>2025-04-21T15:23:07Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=8266ff6591b11fd293718640a6a69d2407c9b022'/>
<id>urn:sha1:8266ff6591b11fd293718640a6a69d2407c9b022</id>
<content type='text'>
with more new device, now able to flash oem
images from luci, fwtools erroneously marks
firmware as incompatible and does not warn
across keeping configs during update.

this patch aims to add both oem detection
and a warning msg advising firmware is compatible
(OpenWrt -&gt; OEM) but configuration is not

tested on ipq5018: gl-b3000

Signed-off-by: Scott Mercer &lt;TheRootEd24@gmail.com&gt;

package: basefiles: add oem image dectection to fwtool

    some new devices are now able to flash oem
    images from luci, fwtools erroneously marks
    firmware as incompatible and does not warn
    of keeping configs during update for this condition.

    this patch aims to add both oem detection
    and trigger the existing warning msg, advising firmware is compatible
    (OpenWrt -&gt; OEM) but configuration is not

tested on ipq5018: gl-b3000

Signed-off-by: Scott Mercer &lt;TheRootEd24@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/18554
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: allow platform_check_image to prevent --force</title>
<updated>2025-04-21T15:12:42Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2025-03-30T23:32:50Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=5175d0a62301ebb2fec6fa83b04946026ce91475'/>
<id>urn:sha1:5175d0a62301ebb2fec6fa83b04946026ce91475</id>
<content type='text'>
Introduce special handling for return code 74 (EBADMSG) of
platform_check_image which will mark the image as broken and hence
not allow the user to override the check using the --force option.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>base-files: add support for creating a provisioning partition on sysupgrade</title>
<updated>2025-03-17T12:17:52Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2025-03-13T12:33:54Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=5f0f8d23a13a0801dda31bd39947ce5c728ce756'/>
<id>urn:sha1:5f0f8d23a13a0801dda31bd39947ce5c728ce756</id>
<content type='text'>
This partition can be used to store sensitive config items (e.g. keys/certificates)
across factory resets.

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
</feed>
