Skip to content
Browse files

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 <>
  • Loading branch information...
stintel committed Feb 5, 2019
1 parent c30f7f4 commit 26fcc937f7e0b8b40297c2d63ae7a17d996f30b1
Showing with 1 addition and 1 deletion.
  1. +1 −1 target/linux/brcm2708/base-files/lib/upgrade/
@@ -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
unmount /boot

0 comments on commit 26fcc93

Please sign in to comment.
You can’t perform that action at this time.