<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/981213/package/base-files, branch main</title>
<subtitle>Staging tree of Chuanhong Guo</subtitle>
<id>https://git.openwrt.org/openwrt/staging/981213/atom?h=main</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/981213/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/981213/'/>
<updated>2024-03-05T10:54:55Z</updated>
<entry>
<title>base-files: sysupgrade: handle errors when generating backup</title>
<updated>2024-03-05T10:54:55Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2024-03-04T14:18:13Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/981213/commit/?id=4efbfcd996abd351547203cf5d51d53564ada5fb'/>
<id>urn:sha1:4efbfcd996abd351547203cf5d51d53564ada5fb</id>
<content type='text'>
1. Return error if any step of generating tar file fails
2. Use pipefail to avoid calling "gzip" if tar failed

Fixes: e36cc530927c ("base-files: sysupgrade: use tar helper to include installed_packages.txt")
Reported-by: Luiz Angelo Daros de Luca &lt;luizluca@gmail.com&gt;
Cc: Luiz Angelo Daros de Luca &lt;luizluca@gmail.com&gt;
Cc: Jo-Philipp Wich &lt;jo@mein.io&gt;
Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
</entry>
<entry>
<title>base-files: sysupgrade: allow overriding config restore</title>
<updated>2024-03-04T15:27:39Z</updated>
<author>
<name>Álvaro Fernández Rojas</name>
</author>
<published>2024-01-31T10:43:55Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/981213/commit/?id=4b3c1251a4b511c36b6fdbb6f249ccd3114b00c5'/>
<id>urn:sha1:4b3c1251a4b511c36b6fdbb6f249ccd3114b00c5</id>
<content type='text'>
Some platforms like Raspberry Pi require patching some backup files like
cmdline.txt in order to set the correct root PARTUUID.

Signed-off-by: Álvaro Fernández Rojas &lt;noltari@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: sysupgrade: fix streaming backup archives to stdout</title>
<updated>2024-03-04T13:58:10Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2024-03-04T13:50:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/981213/commit/?id=6f6406a1321b4ead1d61abdea450d7c76bd5a927'/>
<id>urn:sha1:6f6406a1321b4ead1d61abdea450d7c76bd5a927</id>
<content type='text'>
Due to previous refactoring in sysupgrade, writing backup archives to
stdout became impossible since the hardcoded gzip output redirection
did not account for the `-` special case filename.

Fix this issue by substituting `-` with `/proc/self/fd/1` in the tar
archive output path variable.

Also remove a redundant `rm -f` of the target file path that occurs
before the file could've possibly been written.

Fixes: #14773
Fixes: https://github.com/openwrt/luci/issues/6961
Fixes: e36cc53092 ("base-files: sysupgrade: use tar helper to include installed_packages.txt")
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>base-files: sysupgrade: add uci-defaults script disabling services #2</title>
<updated>2024-02-29T15:12:06Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2024-02-28T10:51:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/981213/commit/?id=0ad062a21ba3962a4532a9a209a16d0755688076'/>
<id>urn:sha1:0ad062a21ba3962a4532a9a209a16d0755688076</id>
<content type='text'>
Disabled services should be kept disabled after sysupgrade. This can be
easily handled using a proper uci-defaults script.

Extend sysupgrade to check for disabled services, generate uci-defaults
script disabling them and include it in backup.

Cc: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
Cc: Jo-Philipp Wich &lt;jo@mein.io&gt;
Cc: Jonas Gorski &lt;jonas.gorski@gmail.com&gt;
Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
Acked-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>base-files: sysupgrade: use tar helper to include installed_packages.txt</title>
<updated>2024-02-29T15:12:06Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2024-02-28T10:51:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/981213/commit/?id=e36cc530927c4294c1510d7cdf89f0b9739e6cde'/>
<id>urn:sha1:e36cc530927c4294c1510d7cdf89f0b9739e6cde</id>
<content type='text'>
Replace mount + overlay with manually built tar archive that gets
prepended to the actual config files backup. This allows more
flexibility with including extra backup files. They can be included at
any paths and don't require writing to flash or mounting an overlay
which has its own limitations (mount points).

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
Acked-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>base-files: sysupgrade: add tar.sh with helpers for building archives</title>
<updated>2024-02-29T15:11:47Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2024-02-28T10:51:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/981213/commit/?id=08495b7f2474801c0b80a7b5335a51f108e76be2'/>
<id>urn:sha1:08495b7f2474801c0b80a7b5335a51f108e76be2</id>
<content type='text'>
This allows building uncompressed tar archives from shell scripts (and
compressing them later if needed)

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
[rmilecki: adapt to sysupgrade needs]
Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
</entry>
<entry>
<title>base-files: export whole disk of fitblk backing partition</title>
<updated>2024-02-26T04:01:10Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2024-02-26T03:56:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/981213/commit/?id=0c18c5679ad3f68f5e02aea20da36aa2d1d759d5'/>
<id>urn:sha1:0c18c5679ad3f68f5e02aea20da36aa2d1d759d5</id>
<content type='text'>
After commit ad62247800 ("base-files: improve lib/upgrade/common.sh")
behavior of export_bootdevice has been made consistent in such way that
always the whole disk device is exported (as that was the case already
when matching via UUID) rather than the partition device.
Do the same for the device holding the fitblk backing partition.

Fixes: 5992f976b3 ("base-files: recognize bootdevice on devices using fitblk")
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>base-files: recognize bootdevice on devices using fitblk</title>
<updated>2024-02-26T01:29:22Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2024-02-25T21:01:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/981213/commit/?id=5992f976b39a0a0a79e5b9656279186cd471e353'/>
<id>urn:sha1:5992f976b39a0a0a79e5b9656279186cd471e353</id>
<content type='text'>
Boards using the fitblk driver need special treatment when it comes to
detecting the actual block device used to store the image used to boot
from. Transparently handle this in 'export_bootdevice' and provide new
'fitblk_get_bootdev' function to replace implementations in
/lib/upgrade/platform.sh.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>base-files: sysupgrade: rename add_*files() functions</title>
<updated>2024-02-22T21:19:13Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2024-02-12T10:57:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/981213/commit/?id=788122cc12f923b3b93bda2fb64930e5ad7c3518'/>
<id>urn:sha1:788122cc12f923b3b93bda2fb64930e5ad7c3518</id>
<content type='text'>
Usage of word "add" was somehow misleading in those functions:
1. They don't really add (as in: append) anything. Result files are
   created from scratch.
2. It wasn't clear what adding files means. It could be understood as
   adding actual files somewhere (to existing archive?).

Also the word "add" was also a bit ambiguous.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
</entry>
<entry>
<title>base-files: sysupgrade: s/do_save_conffiles/create_backup_archive/</title>
<updated>2024-02-22T21:19:01Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2024-02-12T10:57:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/981213/commit/?id=4a1b94adba1a1de0e388c58508b2d78bd788729b'/>
<id>urn:sha1:4a1b94adba1a1de0e388c58508b2d78bd788729b</id>
<content type='text'>
Rename function to more accurate and self-explanatory name:
1. Use "archive" in name as this functions creates tar archive
2. Avoid "conffiles" as this function may archive more than that

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
</entry>
</feed>
