Stefan Agner
4f28a284be
Make self healing capabilities more robust ( #960 )
...
In case a container image is corrupted `docker inspect` might fail:
# docker inspect --format='{{.Id}}' "${SUPERVISOR_IMAGE}"
Error response from daemon: readlink /mnt/data/docker/overlay2: invalid argument
In that same state the `docker images` command still shows the images.
Since `docker inspect` returns an error SUPERVISOR_IMAGE_ID will be empty
and a simple `docker pull` will be attempted. That does not suffice to
recover from a corrupted container image.
Use `docker images` to get the image ids and make sure to delete all
image ids found by that command.
Also don't use RuntimeDirectory since it deletes the runtime directory
between the service start attempts which defeats the purpose.
2020-11-09 13:05:54 +01:00
Stefan Agner
2d257bd671
Simplify self healing capabilities of Supervisor service ( #952 )
...
* Simplify self healing capabilities of Supervisor service
Instead of relying on time based information on how long the container
has been running use a startup marker file to infer if the last startup
has been successful.
* Update buildroot-external/rootfs-overlay/usr/sbin/hassos-supervisor
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch >
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch >
2020-11-04 10:05:38 +01:00
Stefan Agner
31fc13cf03
Resize serial terminal on login ( #860 ) ( #863 )
...
The new readline utilty used by the CLI add-on requires the size of the
terminal to be set. Use the resize command to initialize terminal size
on login if we are running on a serial terminal.
2020-09-12 09:07:03 +02:00
Pascal Vizeli
22f7777099
Make getty for serial/tty same ( #850 )
...
* Make getty for serial/tty same
* adjust log output
2020-09-06 22:18:19 +02:00
Pascal Vizeli
50176a0e3b
Add support for snapshots/restore on OS level ( #801 )
2020-08-03 16:28:08 +02:00
Pascal Vizeli
4bcba322ff
Fix jitters during first update/boot ( #742 )
...
* Fix jitters during first update/boot
* Address comments
* fix lint
2020-06-15 14:48:58 +02:00
Pascal Vizeli
0991cc1c25
Fix version json name if image is missing ( #741 )
...
* Fix version json name if image is missing
* Update hassos-supervisor
2020-06-15 14:48:02 +02:00
Franck Nijhof
2706b4d866
Improve self healing capabilities of Supervisor service ( #726 )
...
* Improve self healing capabilities of Supervisor service
* Fixes shellcheck linter warnings
2020-06-05 23:28:05 +02:00
Pascal Vizeli
ee13d1fb45
Add emergency Console ( #705 )
...
* Add emergency Console
* fix lint
2020-06-02 23:28:13 +02:00
Pascal Vizeli
45c62716cb
New way to install/run supervisor + plugins ( #620 )
...
* Use new layout for CLI/Supervisor
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* Fix install script
* Fix config
* Add docs
* Fix shellcheck
* Fix issue
* rename package
* Fix build
* Fix apparmor
2020-04-21 14:37:25 +02:00
Pascal Vizeli
279a4c4db1
Change uptime for offline update ( #585 )
2020-02-16 11:46:41 +01:00
Maël Kimmerlin
5e82060124
Adding /etc/modprobe.d folder for module configuration ( #397 )
...
* Add a /etc/modprobe.d folder
populated using a config USB stick with folder modprobe
* Add the documentation for the modprobe folder
2019-05-08 13:15:48 +02:00
Pascal Vizeli
454964877d
Add support for privileged supervisor ( #381 )
2019-03-18 12:45:15 +01:00
Simon Holzmayer
73a875c263
Fix modules import from USB-Stick ( #331 )
2019-01-25 14:27:02 +01:00
Jasper van der Neut - Stulen
5fc32d2eb7
OS: Run ash as login shell, so $PATH is set correctly. ( #305 )
2019-01-04 22:00:03 +01:00
Pascal Vizeli
60c9013535
Travis ( #269 )
...
* Update build-all.sh
* Delete ovf-create.sh
* Update patches.sh
* Update hdd-image.sh
* Create .travis.yml
* Update hdd-image.sh
* Update hdd-image.sh
* Update hdd-image.sh
* Update hdd-image.sh
* Update ota.sh
* Update post-build.sh
* Update post-image.sh
* Update rauc.sh
* Update rootfs-layer.sh
* Update hassos-cli
* Update hassos-supervisor
* Update hassos-config
* Update hassos-apparmor
* Update hassos-expand
* Update hassos-persists-journald
* Update hassos-rate
* Update hassos-hook.sh
* Update hassos-hook.sh
* Rename uboot-boot.sh to uboot-boot.ush
* Rename uboot-boot.sh to uboot-boot.ush
* Update hassos-hook.sh
* Rename uboot-boot.sh to uboot-boot.ush
* Rename uboot-boot.sh to uboot-boot.ush
* Update hassos-hook.sh
* Update odroid_c2_defconfig
* Update rpi0_w_defconfig
* Update rpi2_defconfig
* Update rpi3_64_defconfig
* Update rpi3_defconfig
* Update rpi_defconfig
* Update tinker_defconfig
* Update enter.sh
* Update .travis.yml
2018-11-30 16:22:04 +01:00
Pascal Vizeli
ae0a2fe264
OS: move service scripts into libexec
2018-11-29 16:01:16 +00:00
Pascal Vizeli
dc35208efe
OS: allow set NTP ( #252 )
...
* OS: allow set NTP
* Create etc-systemd-timesyncd.conf.mount
* Update hassos-config
* Update configuration.md
* add link
* Update Documentation/configuration.md
Co-Authored-By: pvizeli <pascal.vizeli@syshack.ch >
2018-11-21 00:28:40 +01:00
Simon Holzmayer
809abbfde2
Fixed keeping name of udev rules after usb import ( #232 )
...
Closes #231
2018-10-29 16:01:29 +01:00
Pascal Vizeli
2291e8599e
OS: Config importer support now also boot partition ( #212 )
...
* OS: Config importer support now also boot partition
* Update configuration.md
* Cleanup config after import
* Update hassos-config
2018-10-25 21:59:58 +02:00
Pascal Vizeli
005cbc0b89
OS: use newer docker run command ( #217 )
...
* OS: use newer docker run command
* Update hassos-supervisor
2018-10-16 16:32:00 +02:00
Pascal Vizeli
dac76b1632
Allow udev rules & make it persistent ( #210 )
...
* Install default to lib
* Create hmip-rfusb.rules
* Create etc-udev-rules.d.mount
* Update hassos-config
* Update configuration.md
* Update rauc.sh
* Add ln
2018-10-11 20:49:20 +02:00
Pascal Vizeli
74ff13e25e
P1
2018-08-24 21:50:29 +00:00
Ryan Bray
11088580c5
odroid-c2: Initial Support
...
Working:
* Ethernet
* Resize of Data
* RAUC boot marking/fetching
* CMD Line into HASSOS and Linux
Partially working:
* USB (requires 1+ devices in at boot. Seems to be a kernel/dt issue.)
Untested:
* RAUC Update
* HDMI
Not working:
* Homeassistant
** We see:
hassio > ha info
The HTTP request failed with the error: Get http://hassio/homeassistant/info : dial tcp 172.30.32.2:80: getsockopt: connection refused
2018-08-16 22:24:11 -06:00
Pascal Vizeli
6ab6cd7ff4
os: revert gpt fix / not needed
2018-08-11 10:35:43 +00:00
Pascal Vizeli
a2c6107685
os: fix GPT alligne with SPL images
2018-08-11 08:56:46 +00:00
Pascal Vizeli
fbb45e1544
tinker: Initial support ( #140 )
...
* tinker: initial support
* Fix info
* Fix uboot defconfig
* Split kernel config
* Fix name
* Add post-image
* Init different boot
* Add SPL images
* Dynamic rauc config
* Support SPL for OTA
* Fix expand script style
* Fix SPL
* Bump build u-boot
* Cleanup
* Add cmd for scritps
* Use kernel from armbian
* Fix u-boot
* Add bluetooth support
* Fix bt
* Fix env
* Change uart debug like rpi
* move config
2018-08-03 13:21:55 +02:00
Pascal Vizeli
14833a110f
Use wait on network to delay the startup ( #81 )
...
* Use wait on network to delay the startup
* Update nm.conf
* Create nm.conf
* Update hassos-supervisor.service
* Rename hassos.conf to docker.conf
* Create hassos.conf
* Create hassos.conf
* Update hassos.conf
* aply patch
* Mark only failed
* Fix start order
2018-07-06 18:21:19 +02:00
Pascal Vizeli
7e665a7b42
Fix persistent log ( #70 )
2018-07-02 23:53:07 +02:00
Pascal Vizeli
c860229130
Change chmod of network connection files from fat32 ( #69 )
2018-07-02 23:03:13 +02:00
Pascal Vizeli
32ab05bd2e
Fix update script with uptime ( #68 )
2018-07-02 22:51:54 +02:00
Pascal Vizeli
414b59ac4a
Fix label name in test script ( #66 )
...
* Fix label name in test script
* Update hassos-config
2018-07-02 21:24:05 +02:00
Pascal Vizeli
f8fa170e2a
Fix spell in journald script ( #65 )
2018-07-02 19:58:00 +02:00
Pascal Vizeli
11b1946cd7
Make logs persistent over reboot and cleanup ( #61 )
...
* Create hassos-persists-journald
* Create hassos-persists-journald.service
* Set ln & permission
* Enable persists journald
* Update hassos-persists-journald
2018-07-02 01:05:21 +02:00
Pascal Vizeli
7d4b424d2f
Map /etc/machine-id into supervisor/cli ( #60 )
...
* Map /etc/machine-id into supervisor/cli
* Update hassos-cli
* Update hassos-supervisor
2018-07-01 15:15:54 +02:00
Pascal Vizeli
2614ffce40
Use CONFIG as label for config partition ( #56 )
...
* Use CONFIG as label for config partition
* Update configuration.md
* Update hassos-config
2018-07-01 00:28:00 +02:00
Pascal Vizeli
dde6d8f806
Set hassos supervisor to rauc ( #55 )
...
* Set hassos supervisor to rauc
* Update post-install
* Update hassos-config
2018-06-29 15:23:49 +02:00
Pascal Vizeli
8dd8816e4e
Fix authorized_keys keys ( #53 )
...
* Fix authorized_keys keys
* Update hassos.conf
* Update configuration.md
* Update hassos-config
* Update hassos-config
2018-06-28 22:21:50 +02:00
Pascal Vizeli
27cd425f5b
Use systemd for config mount ( #37 )
...
* Create mnt-config.mount
* Update hassos-config
* Update mnt-config.mount
* Update hassos-config
2018-06-26 10:18:16 +02:00
Pascal Vizeli
cc80265997
Run dropbear only if they have a known_hosts
2018-06-25 08:55:16 +02:00
Pascal Vizeli
e30e15dc53
fix rauc name
2018-06-21 15:49:37 +02:00
Pascal Vizeli
1a3d063fec
Reboot after mark partition as bad
2018-06-16 22:24:36 +02:00
Pascal Vizeli
49df049f2c
Change rauc mark handling
2018-06-16 09:06:07 +00:00
Pascal Vizeli
6a05718235
Fix expander on SD cards
...
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
2018-06-13 19:12:57 +00:00
Pascal Vizeli
a426046bcc
Support dual bootloader ( #27 )
...
* Support dual bootloader
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* Make ova running
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* fix uboot
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* Update supervisor
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
* Support all rpi
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
2018-06-11 11:34:31 +00:00
Pascal Vizeli
d8b808c8b3
Add token to CLI
2018-06-03 14:51:32 +02:00
Pascal Vizeli
50e0149d37
Parse machine id to supervisor for token
2018-06-03 14:50:22 +02:00
Pascal Vizeli
42f195e91c
Add support for new config shema
2018-06-03 14:29:25 +02:00
Pascal Vizeli
3a5d2de705
Rename OS ( #16 )
...
Rename OS
2018-05-14 22:37:39 +02:00
Pascal Vizeli
404e861a27
some cleanups
2018-05-10 22:33:18 +02:00