-
-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core service autostart issues when /opt
is on a different partition
#1767
Comments
Greetings and welcome to our community! As this is the first issue you opened here, we wanted to share some useful infos with you:
|
More info. If I invoke sudo systemctl disable portmaster
(Status check after that shows this):
Then after the restart both But then, if I call |
Ok, the issue seems to be that I have It seems that all It'd be great, if the portmaster team could handle this edge case in the installers and add warning about it to the wiki page. Quickfix for those facing the similar issueYou can use the the installer script installation option. It gracefully handles this edge case by placing the real systemd service file into the |
/opt
is on a different partition
Thank you for the detailed report. Is this something that you have configured for your system? I dont think I have seen Fedora installation that organizes the file system like this. |
Yes, this is a manual setup I did so that Timeshift would exclude certain directories from being snapshoted.
Yeah, it doesn't. Standard setup is just |
Pre-Submit Checklist:
What happened:
For some unknown reason unit
portmaster.service
doesn't exist when executingsystemctl start portmaster
orsystemctl status portmaster
.But it does exist when executing
systemctl enable portmaster
. After executingsystemctl enable
, bothsystemctl start
andsystemctl status
see the unit and work as expected.After the restart, autostart doesn't happen and
portmaster.service
is once again is "gone" untilsystemctl enable
is executed.What did you expect to happen?
The core service is able to autostart as expected, without manual manipulations on each boot.
How did you reproduce it?:
Sadly, no clue. I'm completely confused by this systemd unit behavior.
System and installation info
OS: Fedora Linux 40 (Workstation Edition) x86_64
Kernel: 6.11.10-200.fc40.x86_64
Shell: zsh 5.9
DE: GNOME 46.6
Display server: Wayland
Portmaster version: 1.6.10
Installation method: rpm
Did I have portmaster before? Well, sort of. I tried installing it before using rpm and then using the script. Encountered the same issue, and then tried to removed it to the best of my ability.
Did I try to re-install: Yes, doesn't help.
Output of
❯ ls -lah /etc/systemd/system/portmaster.service lrwxrwxrwx. 1 root root 41 Dec 6 20:58 /etc/systemd/system/portmaster.service -> /opt/safing/portmaster/portmaster.service
The chain of events
After doing install I immediately restarted the system and found out that it did not autostart.
I tried executing the
and got this error
Same thing goes for
After that I tried starting portmaster UI. Upon the start, I was greeted with the message "The portmaster service is not running" and the button "START CORE SERVICE". Clicking the button didn't help, because it tries to execute this command
which obviously encounters the same "Unit can't be found" issue.
So then I attempted to execute
sudo systemctl enable portmaster
and that didn't return any error.
After that both
status
andenable
worked just fine. This screenshot shows the output of thestatus
after executingenable
, but beforestart
:And this one after executing
start
:Then, I tried rebooting my machine, but no autostart happened.
enable
didn't find the unit. So I decided to try executeenable
andstart
in one command and see if that works:sudo systemctl enable --now portmaster
it did work.
Finally, I rebooted once again, and found myself in the same situation. I tried starting the portmaster using
it did start fine as well.
Here's the output of the
journalctl -u portmaster
for the latest boot (that was performed usingsystemctl enable
). And the shutdown was imitated by the system reboot.log.txt
There has already been a similar issue #482 reported, but it was 2 years ago. I couldn't re-open it, so I'm creating a new one.
The text was updated successfully, but these errors were encountered: