No longer mask systemd-machine-id-commit.service
authorMichael Prokop <mika@grml.org>
Fri, 12 May 2017 14:35:23 +0000 (16:35 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 12 May 2017 14:35:23 +0000 (16:35 +0200)
Masking the systemd-machine-id-commit.service causes
all kinds of problems with logins (local as well as via
ssh, causing sloooooow logins). Nowadays the overlayfs
bug also doesn't seem to be present anymore.

Closes grml/grml#27

etc/grml/fai/config/scripts/GRMLBASE/15-initsetup

index cabf19b..1e8a824 100755 (executable)
@@ -16,14 +16,7 @@ systemd_setup() {
   echo "Enabling user '$USERNAME' for autologin"
   sed -i "s/\$USERNAME/$USERNAME/" "$target"/etc/systemd/system/getty@tty*.service.d/override.conf
 
-  # FIXME - ssh-bootoption is currently broken
-  # $ROOTCMD systemctl enable ssh-bootoption.service || echo "failed to enable ssh-bootoption.service"
-
-  # fails on overlayfs with
-  # "Failed to unmount transient /etc/machine-id file in our private namespace: Invalid argument"
-  $ROOTCMD systemctl mask systemd-machine-id-commit.service || echo "failed to mask $systemd-machine-id-commit.service"
   $ROOTCMD systemctl preset-all
-
   $ROOTCMD systemctl set-default grml-boot.target
 }