Comment 15 for bug 1545707

Revision history for this message
Martin Pitt (pitti) wrote :

So this isn't the code path of "Do a one-time migration of the RAMTMP setting", but the code path of "Re-run systemctl enable for any service that was enabled when preinst was run", as per the trace in comment 7.

+ read UNIT
+ [ tmp.mount = tmp.mount ]
+ dpkg --compare-versions 229-1ubuntu2 lt-nl 220-6~
+ systemctl enable tmp.mount
Operation failed: No such file or directory
+ true

Obviously $2 is greater than 220-6~, it's "229-1ubuntu2" (see beginning of the trace), so the if failed on that condition. But as it's in /run/systemd/was-enabled, it must have been added by "save_is_enabled tmp.mount" in systemd.preinst.

Can you please give me the output of

  systemctl is-enabled tmp.mount ; echo $?
  sudo systemctl status tmp.mount
  ls -l /etc/systemd/system/tmp.mount

? I think what happens is that tmp.mount is enabled in /run only, not in /etc/, so this cannot be enabled like that.