Odd Reboot Command in DNF-Automatic Discovered
-
We found this line added to the systemd file of a dnf-automatic today (F32.)
[Service] ExecStartPost=/bin/sh -ec "if systemctl status --no-pager --lines=100 dnf-automatic-install.service| grep -q ===========$$; then shutdown -r +5 rebooting after applying package updates; fi"
This doesn't appear normal and was rebooting the system every day with prejudice. We've removed it, obviously, but we don't recognize it and wondering if anyone knows what the source of this might be. It doesn't feel malicious, just misguided. But we have no idea where it came from.
-
If it's open source, can't you review the code to find it?
-
@Obsolesce said in Odd Reboot Command in DNF-Automatic Discovered:
If it's open source, can't you review the code to find it?
The question is more "does anyone know where this dnf-automatic change might have come from?"
Of course he can look at the code,doesn't mean it'll be easy to track down.
-
@scottalanmiller What file specifically?I've not had any system experience unplanned reboots.
-
@scottalanmiller said in Odd Reboot Command in DNF-Automatic Discovered:
ExecStartPost
The file dates are the same across multiple systems. June 2 and March 31, and that text is not found
-
@Obsolesce said in Odd Reboot Command in DNF-Automatic Discovered:
If it's open source, can't you review the code to find it?
We did. We found it. How can you tell where it came from from that? I posted it, so obviously found it.
-
@JaredBusch said in Odd Reboot Command in DNF-Automatic Discovered:
@scottalanmiller said in Odd Reboot Command in DNF-Automatic Discovered:
ExecStartPost
The file dates are the same across multiple systems. June 2 and March 31, and that text is not found
Yeah. We have never seen it before.
-
I was setting up dnf-automatic on a new system today and recalled this post. I changed the reboot option and it made the systemd file as noted, which is what you report. So are you sure someone did not change your config from
never
towhen-changed
?