improve update-boot.sh

This commit is contained in:
Mikaël Cluseau 2019-03-29 19:51:23 +11:00
parent 663b42ed47
commit 024fcdd35c

View File

@ -5,8 +5,15 @@ dls_url="$1"
set -ex
mount -o remount,rw /boot
rm -fr /boot/previous ||true
if [ -e /boot/previous ]; then
rm -fr /boot/previous
fi
if [ -e /boot/current ]; then
mv /boot/current /boot/previous
fi
curl $dls_url/me/boot.tar |tar xv -C /boot
sync