fixes and refactor
[distro-setup] / distro-end
index e07ab789b46583fdccb294eba1b7f679df651464..ce5179388e985c25805725907e76c65f319753b8 100755 (executable)
@@ -1070,6 +1070,22 @@ esac
 # dependent packages.
 pi ${pall[@]} $(apt-cache search ruby[.0-9]+-doc| awk '{print $1}') $($src/distro-pkgs)
 
+# schroot service will restart schroot sessions after reboot.
+# I dont want that.
+pi-nostart schroot
+
+# fix systemd unit failure. i dont know of any actual impact
+# other than systemd showing in degraded state. So, we dont bother
+# fixing the current state, let it fix on the next reboot.
+# https://gitlab.com/cjwatson/binfmt-support/-/commit/54f0e1af8a
+tmp=$(systemctl cat binfmt-support.service | grep ^After=)
+if [[ $tmp != *systemd-binfmt.service* ]]; then
+  s u /etc/systemd/system/binfmt-support.service.d/override.conf <<EOF
+[Unit]
+$tmp systemd-binfmt.service
+EOF
+fi
+
 
 # commented, not worth the hassle i think.
 #seru enable psd
@@ -2096,13 +2112,13 @@ EOF
 
 # in the default config, we have these definitions
 
-     # 11 define command {
-     #  2 define contact {
-     #  1 define contactgroup {
-     #  9 define host {
-     #  4 define hostgroup {
-     # 23 define service {
-     #  5 define timeperiod {
+# 11 define command {
+#  2 define contact {
+#  1 define contactgroup {
+#  9 define host {
+#  4 define hostgroup {
+# 23 define service {
+#  5 define timeperiod {
 
 
 # on klaxon