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
f5df6e18a8
commit
0f1c8dbf56
@ -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/
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user