update boot

This commit is contained in:
Mikaël Cluseau 2019-03-29 19:49:31 +11:00
parent c21b07572d
commit 663b42ed47
1 changed files with 12 additions and 0 deletions

12
update-boot.sh Executable file
View File

@ -0,0 +1,12 @@
#! /bin/bash
dls_url="$1"
set -ex
mount -o remount,rw /boot
rm -fr /boot/previous ||true
mv /boot/current /boot/previous
curl $dls_url/me/boot.tar |tar xv -C /boot
sync