Stefan Agner
2d3119ef22
Delay Supervisor start until time has been sychronized ( #1360 )
...
* Enable systemd-time-wait-sync.service by default
Enable the systemd-time-wait-sync.service by default. This allows to use
the time-sync.target which allows to make sure services only get started
once the time is synchronized.
* Make sure time is synchronized when starting hassos-supervisor.service
Use the time-sync.target to make sure that the Supervisor gets stsarted
after the time has been synchronized.
* Set timeout for systemd-time-wait-sync.service
Don't delay startup forever in case time synchronization doesn't work.
This allows to boot the system even without Internet connection.
2021-05-12 17:47:42 +02:00
Stefan Agner
82db02756c
Make D-Bus and udisks2 available early ( #1291 )
...
* Disable systemd-logind support for udisks2
Currently udisks2 uses systemd-logind to prevent the system from
rebooting or similar operations while udisks operations are ongoing.
Unfortunately this stops us from using udisks2 during early boot since
systemd-logind is not ready at this point. Make the dependency
configureable so we can opt-out of using systemd-logind.
* Make dbus.service/socket and udisks2.service/socket available early
Disable default dependencies. This avoids those services to be ordered
after sysinit.target, and makes them available before local-fs.target
is reached. All mounts like mnt-data.mount are ordered before
local-fs.target, so breaking this dependency allows to use D-Bus before
mounting local file systems.
This seems fine when using the system bus directly from /run (instead of
/var/run, which is anyway a symlink to /run normally). It seems that
udisks misses /var/lib/udisks2 but it seems not to be required for the
features used so far.
2021-03-31 21:46:02 +02:00
Stefan Agner
ab19c8c6cf
Improve dropbear.service to avoid failed state after stop ( #1286 )
...
So far the exit code has been evaluated, which seems to be non-zero even
with a regular term signal. With that systemd assumed the service is in
a failed state, when in fact this seems the regular behavior of dropbear
when shutting it down.
2021-03-24 19:13:43 +01:00
Stefan Agner
a15671a530
Remove unnecessary avahi-daemon.service configs ( #1279 )
...
The avahi-daemon.service has been removed a while ago, this extra
systemd configurations are no longer necessary.
2021-03-18 16:06:51 +01:00
Stefan Agner
82a40de894
Add --cpu-rt-runtime to allow Docker allocate real-time CPU time ( #1235 ) ( #1236 )
...
* Add --cpu-rt-runtime to allow Docker allocate real-time CPU time (#1235 )
* Enable Supervisor's CPU bandwith allocation feature (#1235 )
Since we have CONFIG_RT_GROUP_SCHED enabled in the Home Assistant OS
kernel the Supervisor needs to enable CPU bandwith allocation for
Add-Ons which need real-time scheduling. Set the appropriate environment
variable.
2021-02-25 18:40:24 +01: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
b3530d1ce1
Allow easy move data partition ( #651 )
...
* Allow easy move data partition
* Cleanup handling systemd
* Improve handling
* fix pipeline
* pipeline
* fix shell handling
* fix scripts
* Add bin folder
* fix lint
* Fix service handling
* Fix loading
* hide output
* Fix handling
2020-05-06 00:00:28 +02:00
Pascal Vizeli
db184bf5d3
Make machine-id persist ( #649 )
...
* Make machine-id persist
* update
* Adjustments
* cleanup
* fix cleanups
* small cleanup
2020-05-04 15:11:43 +02:00
Pascal Vizeli
febc4473d3
New supervisor / Adjust rauc handling ( #530 )
...
* OS: Update supervisor 194
* Remove old rauc mark code
* OS: Update supervisor 195
* Adjust dockerd
2020-01-09 23:02:46 +01:00
Pascal Vizeli
41d3f59002
Update Buildroot to 2019.02.3 ( #415 )
...
* Update Buildroot to 2019-02.3
* Fix enter script
* Update ova_defconfig
* Fix network manager
* Remove runc patches
* Use same docker version
* Fix build
* Fix vmtools
* Fix depens
* Fix handling with tempfiles
* Fix permission handling
* Fix cp
* Cleanup
* Fix mounts
2019-06-27 11:58:50 +02: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
1d40ffd4f9
OS: Fix boot problem ( #370 )
...
* OS: Fix boot problem
* Update var-lib-docker.mount
* Update var-lib-docker.mount
* Update var-lib-docker.mount
2019-03-18 09:53:22 +01:00
Bryan Berg
43828c2555
Migrate from LABEL= to /dev/disk/by-label/* ( #318 )
2019-01-28 09:58:40 +01:00
Pascal Vizeli
bc3cc20629
Don't use a bind mount for docker data ( #266 )
2018-11-29 15:20:58 +01: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
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
Johannes Truschnigg
faa371191f
Implement basic ACPI shutdown support via busybox acpid ( #209 )
...
On systems where ACPI support is present as inidcated by the presence of
/proc/acpi (e.g. on OVA compatible hypervisors), we want to properly
shut down the system when the power button is pressed (or the hypervisor
simulates this kind of event to the guest machine that executes hassos).
This changeset provides the following basic infrastructure for this
feature to work as expected:
* a systemd service to start acpid, if ACPI support can be assumed
* an acpid configuration directory
* a trivial shutdown script to invoke when a PWR event is registered
2018-10-10 11:34:06 +02:00
Pascal Vizeli
7cffb1f45b
Native bluetooth support ( #91 )
...
* Add bluez
* rpi firmware
* add rpi support
* Make packages from rpi
* Fix build
* Fix target
* persistent
* fix package
* Auto enable
* Fix parameter
* Fix rpi
* Fix done
2018-07-10 01:14:07 +02:00
Pascal Vizeli
38c1df36c0
Fix time on overlay ( #88 )
...
* Fix time on overlay
* Fix rights
* Fix timesync
2018-07-08 00:43:46 +02:00
Pascal Vizeli
c6d0fef0b4
Some cleanup ( #84 )
2018-07-06 21:04:48 +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
bf59b7744d
Use dhcp client / avahi after NM ( #75 )
...
* Use dhcp client / avahi after NM
* Store networkmanager
* Add default connection
* cleanup
* cleanup lease
* faster boot
* Cleanup
* Fix permission
2018-07-05 20:00:56 +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
6aa8e61d88
Add lost persistent ssh folder ( #58 )
...
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
2018-07-01 00:38:30 +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
26d7a4cb23
Update hassos.conf
2018-06-25 08:58:26 +02:00
Pascal Vizeli
8434f3ee55
Create docker.conf
2018-06-25 08:51:22 +02:00
Pascal Vizeli
ddde16216c
Rename hassos.conf to docker.conf
2018-06-25 08:50:39 +02:00
Pascal Vizeli
fa44e0a7fd
cleanup
2018-06-17 01:25:47 +02:00
Pascal Vizeli
49df049f2c
Change rauc mark handling
2018-06-16 09:06:07 +00:00
Pascal Vizeli
9f6a339ec7
fix old bootstate
...
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
2018-06-12 14:31:50 +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
cb80bb725c
Generalize getty handling
...
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
2018-06-03 09:43:28 +00:00
Pascal Vizeli
24082ba3a6
Move getty to barebox for support serial
...
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch >
2018-06-01 14:50:48 +00:00
Pascal Vizeli
8ef36c928f
Fix expand after rename
2018-05-18 23:05:41 +02:00
Pascal Vizeli
e3645e22df
Active module load
2018-05-18 15:24:40 +02:00
Pascal Vizeli
a940b5c084
Create hassos.conf
2018-05-18 15:22:40 +02:00
Pascal Vizeli
3a5d2de705
Rename OS ( #16 )
...
Rename OS
2018-05-14 22:37:39 +02:00
Pascal Vizeli
b0825e17d5
Cleanup old stuff
2018-05-13 09:52:01 +02:00
Pascal Vizeli
18f4706285
Enable Timer + disable system1
2018-05-12 22:37:46 +02:00
Pascal Vizeli
c507e70641
Create rauc.conf
2018-05-12 11:37:54 +02:00
Pascal Vizeli
9dd46dd486
Enable rauc on start
2018-05-12 00:27:40 +02:00
Pascal Vizeli
4424f5ab6b
Barebox Update ( #12 )
...
* Create hassio-rauc.service
* Update hassio-supervisor.service
* Update hassio-rauc.service
* Update hassio-supervisor.service
* Update and rename hassio-rauc.service to rauc-good.service
* Update rauc-good.service
* Create rauc-bad.service
* Update rauc-bad.service
* Update rauc-good.service
* Update hassio-supervisor.service
* Fix barebox recovery
* Create title
* Create title
* Create action
* Create title
* Create action
* Create 20-boot-system1
* Rename buildroot-external/barebox-env/menu/20-boot-system1/title to buildroot-external/barebox-env/menu/20-boot-system2title
* Update and rename buildroot-external/barebox-env/menu/20-boot-system2title to buildroot-external/barebox-env/menu/20-boot-system1/title
* Create title
* Create action
* Create action
* Delete autoboot_timeout
* Create editcmd
* Update init
* Update init
* Fix barebox config
* Update init
* Update system0
* Update system1
* Barebox cleanups
* Update init
* Update init
* Create 0001-get-devicetree-from-file.patch
* Update ova_defconfig
* Update system0
* Update system1
* Create 0001-add-i-argument-to.patch
* Update barebox.config
* Update rauc
* Rename buildroot-external/board/ova/patches/dt-util/0001-get-devicetree-from-file.patch to buildroot-external/board/ova/patches/dt-utils/0001-get-devicetree-from-file.patch
* Add script
* fix barebox-state
2018-05-10 01:11:07 +02:00
Pascal Vizeli
b0212beec3
Apparmor hassio ( #10 )
...
* Delete 0001-Autostart.patch
* Update apparmor.mk
* Update Config.in
* Create hassio-apparmor
* Update hassio-apparmor
* Update data.conf
* Delete etc-apparmor.d-containers.mount
* Delete etc-apparmor.d-containers.mount
* Delete hassio.conf
* Update hassio-apparmor
* Update Config.in
* Update Config.in
* Update hassio.mk
* Update hostapp.sh
* Update Config.in
* Update hassio.mk
* Update hassio.mk
* Create hassio-supervisor
* Update hassio-apparmor
* Update hassio-apparmor
* Update hassio-apparmor
* Update hassio-supervisor
* Update hassio-cli
* Update hassio-apparmor
* Update hassio-apparmor
* Create hassio-apparmor.service
* Update hassio-apparmor.service
* Delete apparmor.service
* Update local stuff
* Profile for CLI
* Update hassio.mk
* Update hassio.mk
* Update hassio-supervisor
* Update hassio-apparmor
2018-05-01 22:39:30 +02:00
Pascal Vizeli
aafaf2b8ef
Autostart
2018-04-30 13:46:07 +02:00
Pascal Vizeli
69db31ba2e
Extend AppArmor / hassio
2018-04-30 00:09:43 +02:00
Pascal Vizeli
e544c14d3d
Layering hostname/hosts ( #5 )
...
* Layering hostname/hosts
* Fix build
* Use origin files on new overlay
2018-04-27 18:20:06 +02:00
Pascal Vizeli
77293f58ca
expand working
2018-04-18 00:18:53 +02:00
Pascal Vizeli
45c9bdac01
Finish expander
2018-04-17 11:27:17 +02:00