From 26fcc937f7e0b8b40297c2d63ae7a17d996f30b1 Mon Sep 17 00:00:00 2001 From: Stijn Tintel Date: Tue, 5 Feb 2019 04:34:01 +0200 Subject: [PATCH] brcm2708: fix early bootloader config restore Restoring the bootloader config before rebooting fails: tar: invalid tar magic Add the -z option to the tar command to fix this. Signed-off-by: Stijn Tintel --- target/linux/brcm2708/base-files/lib/upgrade/platform.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/brcm2708/base-files/lib/upgrade/platform.sh b/target/linux/brcm2708/base-files/lib/upgrade/platform.sh index f01df3b025d..62eede53d32 100644 --- a/target/linux/brcm2708/base-files/lib/upgrade/platform.sh +++ b/target/linux/brcm2708/base-files/lib/upgrade/platform.sh @@ -97,7 +97,7 @@ platform_copy_config() { mkdir -p /boot [ -f /boot/kernel.img ] || mount -t vfat -o rw,noatime "/dev/$partdev" /boot cp -af "$CONF_TAR" /boot/ - tar -C / -xvf "$CONF_TAR" boot/config.txt + tar -C / -zxvf "$CONF_TAR" boot/config.txt sync unmount /boot fi -- 2.30.2