Skip to content

UUID of the root subvolume is not available on Debian 13 #409

@ahmetaksit

Description

@ahmetaksit

https://github.com/Antynea/grub-btrfs/blob/master/41_snapshots-btrfs

awk -F':' '/^\s*UUID/ {gsub(/^[ \t]+/, "", $2); print $2}')"

Changed => awk '$1=="UUID:" {print $2}')"

It's not reading the UUID code and the snapshot list isn't appearing in the GRUB menu. I made changes after compiling on Debian 13 and now it's working. Here's the necessary change.
Root subvolume UUID
AA aksit ERROR => root_uuid_subvolume="$(btrfs subvolume show / 2>/dev/null |
AA aksit ERROR => awk -F':' '/^\s*UUID/ {gsub(/^[ \t]+/, "", $2); print $2}')"
root_uuid_subvolume="$(btrfs subvolume show / 2>/dev/null |
awk '$1=="UUID:" {print $2}')"
[ -z "$root_uuid_subvolume" ] && print_error "UUID of the root subvolume is not available"

AA thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions