forked from eliasbakken/Kamikaze2
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug/update device tree link after upgrade (#392)
* After an upgrade, relink the hardware revisions device tree binary * Add revisoin binaries * Do not fail on AWS servers * Correct the bash statement * Disable system updates for the end user. There are too many unknowns at this point. It can still be done from the command line for expert users.
- Loading branch information
1 parent
796a64a
commit c54a15a
Showing
11 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
DPkg::Pre-Invoke {"mount -o remount,rw /boot";}; | ||
DPkg::Post-Invoke {"mount -o remount,ro /boot";}; | ||
DPkg::Post-Invoke {"mount -o remount,ro /boot; /usr/local/bin/update-recore-revision";}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
OUTFILE="/dev/"`lsblk -n -o NAME | grep 'mmcblk[0-2]$'` | ||
|
||
if ! test -b ${OUTFILE}boot0p1; then | ||
partx -a ${OUTFILE}boot0 | ||
fi | ||
|
||
mkdir -p /mnt/config | ||
if ! grep -qs '/mnt/config ' /proc/mounts; then | ||
mount -r ${OUTFILE}boot0p1 /mnt/config/ | ||
fi | ||
|
||
CONFIG=`ls /mnt/config/*.json` | ||
REVISION=`cat "$CONFIG" | jq -r ".Revision" | tr '[:upper:]' '[:lower:]'` | ||
|
||
echo $REVISION |
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
if ! lscpu | grep -q Cortex-A53; then | ||
exit 0 | ||
fi | ||
|
||
REVISION=`get-recore-revision` | ||
set-recore-revision $REVISION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters