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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1545707

Title:
  Error message "Operation failed: No such file or directory" on
  installing/reconfiguring systemd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1545707/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to