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 <stijn@linux-ipv6.be>
This commit is contained in:
parent
c30f7f402f
commit
26fcc937f7
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ platform_copy_config() {
|
||||||
mkdir -p /boot
|
mkdir -p /boot
|
||||||
[ -f /boot/kernel.img ] || mount -t vfat -o rw,noatime "/dev/$partdev" /boot
|
[ -f /boot/kernel.img ] || mount -t vfat -o rw,noatime "/dev/$partdev" /boot
|
||||||
cp -af "$CONF_TAR" /boot/
|
cp -af "$CONF_TAR" /boot/
|
||||||
tar -C / -xvf "$CONF_TAR" boot/config.txt
|
tar -C / -zxvf "$CONF_TAR" boot/config.txt
|
||||||
sync
|
sync
|
||||||
unmount /boot
|
unmount /boot
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue