base-files: stage2: add 'tail' to sysupgrade environment
authorTony Ambardar <itugrok@yahoo.com>
Sat, 3 Dec 2022 07:13:22 +0000 (23:13 -0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 1 Jan 2023 20:45:34 +0000 (21:45 +0100)
This is used to access footer data in firmare files, and is simpler and
less error-prone than using 'dd' with calculated offsets.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
(cherry picked from commit 9cbc825b30a60c4c4b466301b87e15e59b107f24)

package/base-files/files/lib/upgrade/stage2

index 5e0d73631b0c7383f271c072988a95238a234832..0c1ffb5144853a8ec0529580a98b2482a9c7702a 100755 (executable)
@@ -41,7 +41,7 @@ switch_to_ramfs() {
                pivot_root mount_root reboot sync kill sleep            \
                md5sum hexdump cat zcat dd tar                          \
                ls basename find cp mv rm mkdir rmdir mknod touch chmod \
-               '[' printf wc grep awk sed cut                          \
+               '[' printf wc grep awk sed cut tail                     \
                mtd partx losetup mkfs.ext4 nandwrite flash_erase       \
                ubiupdatevol ubiattach ubiblock ubiformat               \
                ubidetach ubirsvol ubirmvol ubimkvol                    \