improve update-boot.sh
This commit is contained in:
parent
663b42ed47
commit
024fcdd35c
@ -5,8 +5,15 @@ dls_url="$1"
|
|||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
mount -o remount,rw /boot
|
mount -o remount,rw /boot
|
||||||
rm -fr /boot/previous ||true
|
|
||||||
mv /boot/current /boot/previous
|
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
|
curl $dls_url/me/boot.tar |tar xv -C /boot
|
||||||
sync
|
sync
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user