Aman Gupta Karmani
a8bad54efc
automatically fsck to repair issues after an unclean shutdown ( #938 )
...
* automatically fsck to repair partitions
* add fsck.fat so rpi boot partition can be repaired
* Use Wants= instead of Requires=
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch >
* add dosfstools to all images
* run hassos-data and hassos-expand after fsck
Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch >
2020-10-30 21:52:24 +01:00
Aman Gupta Karmani
3337cd0f79
Fix var-lib-NetworkManager.mount dependencies ( #895 )
2020-10-12 21:41:12 +02:00
Stefan Agner
1708ed11b4
Fix Docker socket path ( #885 )
...
The Docker socket path is /run/docker.sock. Also only one path can be
used per property. This fixes the supervisor service, which currently
refuses to start due to missing Docker socket.
2020-10-06 12:17:39 +02:00
Pascal Vizeli
f219f239d8
Improve handling with services on supervisor ( #867 )
...
* Improve handling with services on supervisor
* add condition
* move dbus to required, since we can't start the supervisor
2020-09-24 13:40:39 +02: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
Stefan Agner
b6cfe04422
Do not attempt to resize on every boot ( #843 ) ( #848 )
...
The hassos-expand script calls sfdisk to find free disk space. It seems
that today it considers the space before the first partition as free:
$ sudo sfdisk -Fq /dev/sdi
Start End Sectors Size
2048 16383 14336 7M
This causes the script to always resize. It seems not to cause harm to
the partition table (it does not resize really). However, the call to
partx seems to confuse systemd and kill the mnt-data.mount process
(presumably because udev causes remove/add events for the by-label
device units).
Consider everything below 8MiB to not be worthy of a size change. This
avoids missdetection and resize attempts where there is no need.
2020-09-06 11:22:43 +02:00
Pascal Vizeli
0c427d0dee
Update rauc 1.4 to fix mounted boot partition issue ( #809 )
...
* Update rauc 1.4 to fix mounted boot partition issue
* applay update
* fix characters
* fix CI
* Support old format
* fix mcopy prefix
* fix lint
* fix lint
* clean style
* Fix script
* fix syntax
* Support all system
* fix shell
* Fix script
2020-08-06 19:37:52 +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
Franck Nijhof
83af2731a8
Fix Supervisor container name reference in hassos-supervisor service ( #727 )
2020-06-05 22:14:34 +02:00
Pascal Vizeli
ee13d1fb45
Add emergency Console ( #705 )
...
* Add emergency Console
* fix lint
2020-06-02 23:28:13 +02:00
Pascal Vizeli
b206787520
Fix issue with mbr partition remove on MBR ( #694 )
2020-05-27 16:30:07 +02:00
Pascal Vizeli
ce3c80641b
cleanup-device ( #681 )
2020-05-19 21:29:57 +02:00
Pascal Vizeli
4eda8a1ff3
Wait until device is exists for moving data ( #680 )
...
* Wait until device is exists for moving data
* Update hassos-data
* Update hassos-data
* Update hassos-data
2020-05-19 15:21:08 +02:00
Pascal Vizeli
b410b70814
Update the old partition layout not just partial ( #679 )
2020-05-19 10:38:27 +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
04e679798a
Fix workstation avahi handling & add NSS mdns to host ( #638 )
...
* Fix workstation avahi handling & add NSS mdns to host
* disable avahi daemon on internal
2020-04-26 11:19:28 +02:00
Pascal Vizeli
4df2ab6013
Use default CloudFlare anycast time service ( #629 )
2020-04-21 14:41: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
2c963fcd05
Add dbus config for pulseaudio ( #619 )
2020-04-03 14:53:42 +02:00
Pascal Vizeli
2e7e039899
Optimize SND kernel module handling ( #606 )
...
* Optimize SND kernel module handling
* Update alsa-base.conf
* Update alsa-base.conf
2020-03-10 10:28:45 +01:00
Pascal Vizeli
279a4c4db1
Change uptime for offline update ( #585 )
2020-02-16 11:46:41 +01: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
Franck Nijhof
6e7bbdbe63
Fix auto expand disk for GPT ( #508 )
2019-12-12 12:12:49 +01:00
Pascal Vizeli
d340e79bea
Fix RPI issues with u-boot / firmware ( #503 )
...
* Fix RPI issues with u-boot / firmware
* Cleanup bluetooth handling
* Use RC4 for u-boot on rpi4
2019-12-10 19:07:16 +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
454964877d
Add support for privileged supervisor ( #381 )
2019-03-18 12:45:15 +01: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
Pascal Vizeli
a21871f4af
OS: Disable coredump ( #365 )
2019-02-22 21:24:58 +01:00
Pascal Vizeli
7b4be3b4f7
OS: change zram swap to 25% of available memory ( #348 )
2019-02-08 11:53:31 +01:00
Bryan Berg
43828c2555
Migrate from LABEL= to /dev/disk/by-label/* ( #318 )
2019-01-28 09:58:40 +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
5835b6a683
OS: Fix unmount of busy mounts ( #319 )
...
dhclient and systemd-journald will be running during shutdown and are
only killed in the final shutdown fase. Unmounting the directories
they use will fail. Use lazy unmouting to fix this.
2019-01-13 21:04:57 +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
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
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
a2363d9a27
OS: bugfix acpid service file ( #229 )
...
* OS: bugfix acpid service file
* Update busybox-acpid.service
2018-10-29 16:00:20 +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
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
74ff13e25e
P1
2018-08-24 21:50:29 +00:00