<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/ansuel/package/base-files, branch master</title>
<subtitle>Staging tree of Christian Marangi</subtitle>
<id>https://git.openwrt.org/openwrt/staging/ansuel/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/ansuel/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ansuel/'/>
<updated>2022-06-19T10:40:30Z</updated>
<entry>
<title>failsafe: run on all consoles listed in /proc/cmdline</title>
<updated>2022-06-19T10:40:30Z</updated>
<author>
<name>Mark Mentovai</name>
</author>
<published>2022-06-06T04:59:14Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ansuel/commit/?id=c9725d4fb62062b42197ff181b87874be336d39f'/>
<id>urn:sha1:c9725d4fb62062b42197ff181b87874be336d39f</id>
<content type='text'>
On x86, when both CONFIG_GRUB_CONSOLE and CONFIG_GRUB_SERIAL are set (as
they are by default), the kernel command line will have two console=
entries, such as

    console=tty0 console=ttyS0,115200n8

Failsafe was only running a shell on the first defined console, the VGA
console. This is a problem for devices like apu2, where there is only a
serial console and it appears on ttyS0.

Moreover, the console prompt to enter failsafe during boot was delivered
to, and its input read from, the last console= on the kernel command
line. So while the failsafe shell was on the first defined console, only
the last defined console could be used to enter failsafe during boot.

In contrast, the x86 bootloader (GRUB) operates on both the serial
console and the VGA console by virtue of "terminal_{input,output}
console serial". GRUB also provided an alternate means to enter failsafe
from either console. The presence of two console= kernel command line
parameters causes kernel messages to be delivered to both. Under normal
operation (not failsafe), procd runs login in accordance with inittab,
which on x86 specifies ttyS0, hvc0, and tty1, allowing login through any
of serial, hypervisor, or VGA console. Thus, serial access was
consistently available on x86 devices with serial consoles under normal
operation, except for shell access in failsafe mode (without editing the
kernel command line).

By presenting the failsafe prompt, reading failsafe prompt input, and
running failsafe shells on all consoles listed in /proc/cmdline,
failsafe mode will work correctly on devices with a serial console (like
apu2), and the same image without any need for reconfiguration can be
shared by devices with the more traditional (for x86) VGA console. This
improvement should benefit any system with multiple console= arguments,
including x86 and bcm27xx (Raspberry Pi).

Signed-off-by: Mark Mentovai &lt;mark at moxienet.com&gt;
</content>
</entry>
<entry>
<title>base-files: allow ignoring minor compat-version check</title>
<updated>2022-06-18T20:11:04Z</updated>
<author>
<name>David Bauer</name>
</author>
<published>2022-05-13T23:26:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/ansuel/commit/?id=34437af88867c4435add8a144417290b7fd4362a'/>
<id>urn:sha1:34437af88867c4435add8a144417290b7fd4362a</id>
<content type='text'>
Downstream projects might re-generate device-specific configuration
based on OpenWrt's defaults on each upgrade, thus being unaffected by
forward- as well as backwards-breaking configuration.

Add a new sysupgrade parameter, which allows sysupgrades between minor
compat-versions. Upgrades will still fail upon mismatching major compat
versions.

Signed-off-by: David Bauer &lt;mail@david-bauer.net&gt;
</content>
</entry>
<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/ansuel/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/ansuel/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/ansuel/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/ansuel/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/ansuel/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/ansuel/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/ansuel/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/ansuel/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>
</feed>
