Skip to content
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

Unit file grub-btrfsd.service does not exist. #225

Closed
Mossy93 opened this issue Nov 12, 2022 · 16 comments · Fixed by #231
Closed

Unit file grub-btrfsd.service does not exist. #225

Mossy93 opened this issue Nov 12, 2022 · 16 comments · Fixed by #231

Comments

@Mossy93
Copy link

Mossy93 commented Nov 12, 2022

When I try to enable the grub-btrfsd service on a fresh install on Arch Linux, I get the error message: Unit file grub-btrfsd.service does not exist.

@Schievel1
Copy link
Collaborator

Schievel1 commented Nov 12, 2022

What version did you install? Git version or 4.11?

/ sorry, I see there is only one version on the AUR.
// and one in the official tree. The one in the official tree is versioned to 4.11

@Schievel1
Copy link
Collaborator

Schievel1 commented Nov 12, 2022

Well I am not quite sure which version Arch installs. The Readme should come with the package I guess. But have you tried with the old instructions from the 4.11? https://github.com/Antynea/grub-btrfs/tree/v4.11

so try systemctl enable grub-btrfs.path instead I mean

@Mossy93
Copy link
Author

Mossy93 commented Nov 12, 2022

Yes, the Arch version should be 4.11 according to the Arch package database

I will try that and let you know

@Schievel1
Copy link
Collaborator

Schievel1 commented Nov 12, 2022

I am not very familiar with Arch's pkgbuild format.
So the -git version from the AUR is fetching HEAD of master branch isn't it?
This one https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=grub-btrfs-git

It just wonder because the version says 4.11.r4.g3dc1d89, and this is not the commit SHA of the last commit on master.

If so you could actually try this one, I am happy if some people would test the new daemon before we make a new release.

@Mossy93
Copy link
Author

Mossy93 commented Nov 12, 2022

pacman -Q confirms that I have grub-btrfs 4.11-2.

I ran sudo systemctl enable grub-btrfs.path and I got:
Created symlink /etc/systemd/system/\x2esnapshots.mount.wants/grub-btrfs.path → /usr/lib/systemd/system/grub-btrfs.path. Unit /usr/lib/systemd/system/grub-btrfs.path is added as a dependency to a non-existent unit \x2esnapshots.mount.

@Schievel1
Copy link
Collaborator

Right, place follow the readme from 4.11. originally this is set up for snapshots to be mounted on /.snapshots like snapper does it. If you don't have snapshots there yet or you don't use snapper you will have to edit the service file accordingly

@Mossy93
Copy link
Author

Mossy93 commented Nov 12, 2022

Okay. I'll have to take a look later on, but I'm using Snapper and my snapshots are saved to /.snapshots

@Mossy93
Copy link
Author

Mossy93 commented Nov 12, 2022

It just wonder because the version says 4.11.r4.g3dc1d89, and this is not the commit SHA of the last commit on master.

It appears to be flagged out of date, and has no maintainer listed
https://aur.archlinux.org/packages/grub-btrfs-git

@maetthew
Copy link

maetthew commented Nov 18, 2022

Experiencing what seems to be exactly the same issue as @Mossy93.

@Mossy93
Copy link
Author

Mossy93 commented Nov 18, 2022

I installed the -git version from the AUR, and was able to follow the instructions on the main GitHub page

@Schievel1
Copy link
Collaborator

Hey, thanks for trying that out.

Does it work well?

@Mossy93
Copy link
Author

Mossy93 commented Nov 19, 2022

Hey, thanks for trying that out.

Does it work well?

Once I updated it worked right out of the box

@LorenzoBettini
Copy link

I don't think the AUR package will be updated until there's a new release of grub-btrfs (the latest one is 4.11, dated Nov 29, 2021).

In any case, do you suggest we simply install it from the master branch of grub-btrfs? I mean, is the master branch to be considered stable to install it from there?

@Schievel1
Copy link
Collaborator

Schievel1 commented Nov 19, 2022

Well judging from your other issue it isn’t, but then again, I was waiting for some people to install the git package or manually “from source” so to speak and the issue to come up before I make a release. So please, install the git package or the master branch :)

/ The AUR package IS the current head from master on github btw.

@Schievel1
Copy link
Collaborator

I think it is save to assume this is a version mismatch and no issue of grub-btfs

@Schievel1
Copy link
Collaborator

Speaking of versions, let’s have a new feature to print the version when the script is called with —version.
I reopen so I can remember it.

@Schievel1 Schievel1 reopened this Nov 21, 2022
Schievel1 added a commit that referenced this issue Nov 21, 2022
Close #225

Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
Schievel1 added a commit that referenced this issue Nov 21, 2022
Close #225

Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
Schievel1 added a commit that referenced this issue Nov 21, 2022
Close #225

Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
Schievel1 added a commit that referenced this issue Nov 21, 2022
Close #225

Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
Schievel1 added a commit that referenced this issue Nov 21, 2022
Close #225

Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants