<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/mkresin/package/base-files, branch master</title>
<subtitle>Staging tree of Mathias Kresin</subtitle>
<id>https://git.openwrt.org/openwrt/staging/mkresin/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/mkresin/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/mkresin/'/>
<updated>2022-05-02T20:11:05Z</updated>
<entry>
<title>base-files: simplify restorecon logic</title>
<updated>2022-05-02T20:11:05Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2022-05-02T20:07:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/mkresin/commit/?id=7b07c3cff57f057d6780d34adeb23c06123732db'/>
<id>urn:sha1:7b07c3cff57f057d6780d34adeb23c06123732db</id>
<content type='text'>
Remove forgotten redundant selinuxenabled call and skip the whole
thing in case $IPKG_INSTROOT is set as labels are anyway applied only
later on in fakeroot when squashfs is created.

Fixes: 6d7272852e ("base-files: add missing $IPKG_INSTROOT to restorecon call")
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>base-files: add missing $IPKG_INSTROOT to restorecon call</title>
<updated>2022-05-02T18:59:58Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2022-05-02T18:58:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/mkresin/commit/?id=6d7272852e0b2634b2fa93a131ea8659ec87f079'/>
<id>urn:sha1:6d7272852e0b2634b2fa93a131ea8659ec87f079</id>
<content type='text'>
Update to overlooked v2 version of Dominick Grift's patch.

Fixes: 5109bd164c ("base-files: address sed in-place without SELinux awareness")
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>base-files: address sed in-place without SELinux awareness</title>
<updated>2022-05-02T17:56:02Z</updated>
<author>
<name>Dominick Grift</name>
</author>
<published>2022-05-01T17:54:04Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/mkresin/commit/?id=5109bd164c8f2273329483f990188fb36cf3ad68'/>
<id>urn:sha1:5109bd164c8f2273329483f990188fb36cf3ad68</id>
<content type='text'>
sed(1) in busybox does not support this functionality:
https://git.savannah.gnu.org/cgit/sed.git/tree/sed/execute.c#n598

This causes /etc/group to become mislabeled when a package requests
that a uid/gid be added on OpenWrt with SELinux

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
[move restorecon inside lock]
Signed-off-by: Dominick Grift &lt;dominick.grift@defensec.nl&gt;
</content>
</entry>
<entry>
<title>base-files: fix sysupgrade for kernel-out-of-UBI</title>
<updated>2022-05-02T11:42:15Z</updated>
<author>
<name>Rodrigo Balerdi</name>
</author>
<published>2022-05-02T08:33:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/mkresin/commit/?id=7d02fc0951ffcff3ba885374b108d20de92eddbe'/>
<id>urn:sha1:7d02fc0951ffcff3ba885374b108d20de92eddbe</id>
<content type='text'>
Commit ecbcc0b59551 bricks devices on which the raw kernel and UBI mtd
partitions overlap.

This is the case of the ZyXEL NR7101 for example. Its OEM bootloader has
no UBI support. OpenWrt splits the stock kernel mtd partition into a raw
kernel part used by the bootloader and a UBI part used to store rootfs
and rootfs_data. Running mtd erase on the complete partition during
sysupgrade erases the UBI part and results in a soft brick.

Arguably the best solution would be to fix the partition layouts so that
kernel and UBI partitions do not overlap, also including a stock_kernel
partition to help reverting to stock firmware. This would have the added
benefit of protecting UBI from kernel images that are excessively large.

Fixes: ecbcc0b59551 ("base-files: safer sysupgrade.tar for kernel-out-of-UBI")
Reported-by: Bjørn Mork &lt;bjorn@mork.no&gt;
Signed-off-by: Rodrigo Balerdi &lt;lanchon@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: minimize critical time in sysupgrade</title>
<updated>2022-04-19T15:28:25Z</updated>
<author>
<name>Rodrigo Balerdi</name>
</author>
<published>2022-04-15T10:20:28Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/mkresin/commit/?id=9ba28f978c76692876f4f5bc7ad66e8fc73084fb'/>
<id>urn:sha1:9ba28f978c76692876f4f5bc7ad66e8fc73084fb</id>
<content type='text'>
Attempt to minimize the time during which an interrupted nand sysupgrade
can lead to a non-functional device by flushing caches before starting
the upgrade procedure.

Signed-off-by: Rodrigo Balerdi &lt;lanchon@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: trim unnecessary nand sysupgrade code</title>
<updated>2022-04-19T15:28:25Z</updated>
<author>
<name>Rodrigo Balerdi</name>
</author>
<published>2022-04-15T13:15:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/mkresin/commit/?id=9a2f08f6e704d733fea88b6b511f2fa06b8039f4'/>
<id>urn:sha1:9a2f08f6e704d733fea88b6b511f2fa06b8039f4</id>
<content type='text'>
Remove unnecessary sync commands during nand sysupgrade.

Signed-off-by: Rodrigo Balerdi &lt;lanchon@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: fix issues in nand sysupgrade</title>
<updated>2022-04-19T15:28:25Z</updated>
<author>
<name>Rodrigo Balerdi</name>
</author>
<published>2022-04-15T13:11:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/mkresin/commit/?id=bfd9afc38dc8a5e158aea11f89c43980396cceff'/>
<id>urn:sha1:bfd9afc38dc8a5e158aea11f89c43980396cceff</id>
<content type='text'>
Fix issues while retaining configuration during nand sysupgrade:
- abort configuration saving if data partition is not found
- generate diagnostics if saving fails (eg, because of lack of space)
- do not output "sysupgrade successful" in case of errors

Signed-off-by: Rodrigo Balerdi &lt;lanchon@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: clean up nand sysupgrade code</title>
<updated>2022-04-19T15:28:25Z</updated>
<author>
<name>Rodrigo Balerdi</name>
</author>
<published>2022-04-15T10:18:22Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/mkresin/commit/?id=f8351d65bb32f07a6362b136d66153073f601acb'/>
<id>urn:sha1:f8351d65bb32f07a6362b136d66153073f601acb</id>
<content type='text'>
Fix some inconsistent quoting in nand sysupgrade code.

Signed-off-by: Rodrigo Balerdi &lt;lanchon@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: clean up ubinized sysupgrade code</title>
<updated>2022-04-19T15:28:25Z</updated>
<author>
<name>Rodrigo Balerdi</name>
</author>
<published>2022-04-15T09:42:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/mkresin/commit/?id=de4b65a793f8b7222d19f7507e7d3d93a0677597'/>
<id>urn:sha1:de4b65a793f8b7222d19f7507e7d3d93a0677597</id>
<content type='text'>
Remove redundant check from nand ubinized sysupgrade code. This check
has already been done in the only caller of the affected function:
nand_do_upgrade.

Signed-off-by: Rodrigo Balerdi &lt;lanchon@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: clean up nand tar sysupgrade code</title>
<updated>2022-04-19T15:28:25Z</updated>
<author>
<name>Rodrigo Balerdi</name>
</author>
<published>2022-04-15T09:31:24Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/mkresin/commit/?id=264d9483025c9604709879094810f25e6c9fac38'/>
<id>urn:sha1:264d9483025c9604709879094810f25e6c9fac38</id>
<content type='text'>
Prepares code for ubirename-based safe sysupgrade implementation.

Fixes several issues:
- the special CI_KERNPART value "none" is ignored if an MTD partition
  named "none" exists
- misleading variable names (such as has_kernel to mean "tar has kernel
  and it should not be written to an MTD partition but a UBI volume")
- inconsistent treatment of zero-length tar member files
- inconsistent meaning of "0" and "" variable values
- redundant operations (unneeded untaring, repeated untaring, unneeded
  partition lookups)
- inconsistent variable quoting

Signed-off-by: Rodrigo Balerdi &lt;lanchon@gmail.com&gt;
</content>
</entry>
</feed>
