mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-28 07:26:28 +00:00
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:
parent
dde6d8f806
commit
2614ffce40
@ -2,7 +2,7 @@
|
||||
|
||||
## 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/
|
||||
modules/
|
||||
|
@ -2,7 +2,7 @@
|
||||
Description=HassOS config partition
|
||||
|
||||
[Mount]
|
||||
What=LABEL=config
|
||||
What=LABEL=CONFIG
|
||||
Where=/mnt/config
|
||||
Type=auto
|
||||
Options=ro
|
||||
|
@ -37,7 +37,7 @@ fi
|
||||
if [ -f /mnt/config/authorized_keys ]; then
|
||||
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
|
||||
|
||||
systemctl start dropbear
|
||||
@ -52,7 +52,7 @@ if ls /mnt/config/*.raucb > /dev/null; then
|
||||
echo "[Info] Performe a firmware update"
|
||||
|
||||
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"
|
||||
systemctl reboot
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user