Use CONFIG as label for config partition (#56)

* Use CONFIG as label for config partition

* Update configuration.md

* Update hassos-config
This commit is contained in:
Pascal Vizeli 2018-07-01 00:28:00 +02:00 committed by Pascal Vizeli
parent f5df6e18a8
commit 0f1c8dbf56
3 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
## Automatic ## Automatic
You can format a USB stick with FAT32/EXT4 and name it with `config`. The layout could be look like: You can format a USB stick with FAT32/EXT4 and name it with `CONFIG`. The layout could be look like:
``` ```
network/ network/
modules/ modules/

View File

@ -2,7 +2,7 @@
Description=HassOS config partition Description=HassOS config partition
[Mount] [Mount]
What=LABEL=config What=LABEL=CONFIG
Where=/mnt/config Where=/mnt/config
Type=auto Type=auto
Options=ro Options=ro

View File

@ -37,7 +37,7 @@ fi
if [ -f /mnt/config/authorized_keys ]; then if [ -f /mnt/config/authorized_keys ]; then
echo "[Info] Update SSH authorized_keys!" echo "[Info] Update SSH authorized_keys!"
cp -f /mnt/config/known_hosts /root/.ssh/authorized_keys cp -f /mnt/config/authorized_keys /root/.ssh/authorized_keys
chmod 600 /root/.ssh/authorized_keys chmod 600 /root/.ssh/authorized_keys
systemctl start dropbear systemctl start dropbear
@ -52,7 +52,7 @@ if ls /mnt/config/*.raucb > /dev/null; then
echo "[Info] Performe a firmware update" echo "[Info] Performe a firmware update"
rauc_filename=$(ls /mnt/config/*.raucb | head -n 1) rauc_filename=$(ls /mnt/config/*.raucb | head -n 1)
if rauc install /mnt/config/$rauc_filename; then if rauc install ${rauc_filename}; then
echo "[Info] Firmware update success" echo "[Info] Firmware update success"
systemctl reboot systemctl reboot
else else