And this one additionally solves the second syntax error, i.e. it completely removes:
-# let the console output settle down
-ExecStartPre=-/bin/sh -e 'while systemctl list-jobs | grep -v friendly-recovery | grep -q running; do sleep 0.2; done'
The first problem there is that "sh -e" should be "sh -c".
The second problem is that if we make it "sh -c", then sometimes it hangs because it matches "No services running."
So I propose we completely remove those 2 lines instead.
And this one additionally solves the second syntax error, i.e. it completely removes: -/bin/sh -e 'while systemctl list-jobs | grep -v friendly-recovery | grep -q running; do sleep 0.2; done'
-# let the console output settle down
-ExecStartPre=
The first problem there is that "sh -e" should be "sh -c".
The second problem is that if we make it "sh -c", then sometimes it hangs because it matches "No services running."
So I propose we completely remove those 2 lines instead.