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

The installation package version does not match the actual version on Archlinux #354

Open
SJFCS opened this issue Oct 3, 2024 · 1 comment

Comments

@SJFCS
Copy link

SJFCS commented Oct 3, 2024

The installed version of the archlinux package is the latest, But the actual version is old.

pacman -Scc
pacman -S grub-btrfs
paru -Q |grep grub-btrfs 
grub-btrfs 4.13-2
# but
sudo /usr/bin/grub-btrfsd -h
...
Version 4.12-master-2023-04-28T16:26:00+00:00

I discovered that this old version does not include support for yabsnap:

# Parse Snapper & timeshift & yabsnap information
local type_snapshot="N/A"
local description_snapshot="N/A"
# path to yabsnap snapshot meta data
local yabsnap_info="$grub_btrfs_mount_point/${path_snapshot%"/"*}/$(echo "${snap[13]}" | awk -F'/' '{print $3 "-meta.json"}')"
if [[ -s "$grub_btrfs_mount_point/${path_snapshot%"/"*}/$snapper_info" ]] ; then
type_snapshot=$(awk -F"<|>" 'match($2, /^type/) {print $3}' "$grub_btrfs_mount_point/${path_snapshot%"/"*}/$snapper_info") # search matching string beginning "type"
description_snapshot=$(awk -F"<|>" 'match($2, /^description/) {print $3}' "$grub_btrfs_mount_point/${path_snapshot%"/"*}/$snapper_info") # search matching string beginning "description"
elif [[ -s "$grub_btrfs_mount_point/${path_snapshot%"/"*}/$timeshift_info" ]] ; then
type_snapshot=$(awk -F" : " 'match($1, /^[ \t]+"tags"/) {gsub(/"|,/,"");print $2}' "$grub_btrfs_mount_point/${path_snapshot%"/"*}/$timeshift_info") # search matching string beginning "tags"
description_snapshot=$(awk -F" : " 'match($1, /^[ \t]+"comments"/) {gsub(/"|,/,"");print $2}' "$grub_btrfs_mount_point/${path_snapshot%"/"*}/$timeshift_info") # search matching string beginning "comments" fix '
elif [[ -s $yabsnap_info ]] ; then
type_snapshot=$(grep -P '^\s*"trigger"' $yabsnap_info | awk -F'"' '{print $4}') # search matching string beginning "trigger"
description_snapshot=$(grep -P '^\s*"comment"' $yabsnap_info | awk -F'"' '{print $4}') # search matching string beginning "comment"
fi

The actual version number and the package name version number don't match. Looking forward to version update

Forgive me for not being very good at English

@bkmo
Copy link
Contributor

bkmo commented Oct 8, 2024

The Arch package is built directly from the latest release in the repo. Yes there is an issue with conflicting versions in this realease, but has nothing to do with Arch. This should be addressed by creating a new release which would also include other fixes and keep these questions from being repeated. Build it from grub-btrfs-git in the AUR for an up to date version.

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

No branches or pull requests

2 participants