meta-digi/meta-digi-dey/recipes-core
Gabriel Valcazar 212448fe2d recovery-initramfs: don't format the rootfs partition unless it's necessary
By default, we generate SWU files which update both the linux and rootfs
partitions. This, along with the fact that platforms using NAND as the storage
media require a reboot for the rootfs partition's "enc" flag to take effect,
makes it safe to format the NAND's rootfs partition before performing an
update, regardless of having to encrypt the rootfs or not.

However, customers that wish to use the swupdate feature to update just the
linux partition will find that the rootfs is completely erased after the update
is finished, because a new rootfs hasn't been written in its place.

To avoid this scenario, parse the SWU package's description to verify that it
contains a rootfs image before formatting the partition.

https://jira.digi.com/browse/DEL-7067

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-07-21 09:53:14 +02:00
..
base-files base-files: fix checks done to execute resize2fs postinst function in kernel 5.4 2020-05-11 16:04:57 +02:00
busybox zeus migration: busybox: update to version 1.31.0 2020-04-27 16:01:07 +02:00
images recovery-initramfs: generalize recipe to avoid redefinitions 2020-01-10 13:36:21 +01:00
init-ifupdown br0: move the br0 interface to the bottom 2020-02-24 13:14:53 +01:00
initscripts busybox: remove busybox-static-nodes initscript 2019-02-04 14:59:46 +01:00
packagegroups machines: move common recipes to all packagegroup-dey-core 2020-05-06 17:02:28 +02:00
psplash psplash: fix init script to avoid running the app without fb 2017-01-03 12:42:10 +01:00
readline readline: allow the use of Begin/End/Del/Insert and Ctrl+arrows 2018-02-16 12:25:52 +01:00
recovery recovery-initramfs: don't format the rootfs partition unless it's necessary 2020-07-21 09:53:14 +02:00
system-monitor meta-digi-dey: fix systemd-cat not found in network scripts 2019-09-06 11:03:18 +02:00
systemd zeus migration: systemd: update recipe to v243.2 2020-04-27 16:01:07 +02:00
sysvinit meta-digi-dey: trustfence: Explicitely check for "1" for variable enable 2016-06-10 09:48:05 +02:00
trustfence trustfence-initramfs: use "busybox halt" instead of "poweroff" 2020-02-12 18:31:33 +01:00