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.
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 $? system/ tmp.mount
sudo systemctl status tmp.mount
ls -l /etc/systemd/
? I think what happens is that tmp.mount is enabled in /run only, not in /etc/, so this cannot be enabled like that.