mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-03-10 08:15:30 +08:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73a2bd3d32 | ||
|
|
3eb7eb7861 |
@@ -98,18 +98,18 @@ export TEXTDOMAIN=grub-btrfs-git
|
|||||||
export TEXTDOMAINDIR="/usr/share/locale"
|
export TEXTDOMAINDIR="/usr/share/locale"
|
||||||
## Probe info "Boot partition"
|
## Probe info "Boot partition"
|
||||||
# Boot device
|
# Boot device
|
||||||
boot_device=$(${grub_probe} --target=device "/boot")
|
boot_device=$(${grub_probe} --target=device /boot)
|
||||||
# hints string
|
# hints string
|
||||||
boot_hs=$(${grub_probe} --device "${boot_device}" --target="hints_string" 2>/dev/null)
|
boot_hs=$(${grub_probe} --device ${boot_device} --target="hints_string" 2>/dev/null)
|
||||||
# UUID of the boot partition
|
# UUID of the boot partition
|
||||||
boot_uuid=$(${grub_probe} --device "${boot_device}" --target="fs_uuid" 2>/dev/null)
|
boot_uuid=$(${grub_probe} --device ${boot_device} --target="fs_uuid" 2>/dev/null)
|
||||||
# Type filesystem of boot partition
|
# Type filesystem of boot partition
|
||||||
boot_fs=$(${grub_probe} --target="fs" "/boot" 2>/dev/null)
|
boot_fs=$(${grub_probe} --target="fs" /boot 2>/dev/null)
|
||||||
## Probe info "Root partition"
|
## Probe info "Root partition"
|
||||||
# Root device
|
# Root device
|
||||||
root_device=$(${grub_probe} --target=device "/")
|
root_device=$(${grub_probe} --target=device /)
|
||||||
# UUID of the root partition
|
# UUID of the root partition
|
||||||
root_uuid=$(${grub_probe} --device "${root_device}" --target="fs_uuid" 2>/dev/null)
|
root_uuid=$(${grub_probe} --device ${root_device} --target="fs_uuid" 2>/dev/null)
|
||||||
## Parameters passed to the kernel
|
## Parameters passed to the kernel
|
||||||
kernel_parameters="$GRUB_CMDLINE_LINUX $GRUB_CMDLINE_LINUX_DEFAULT"
|
kernel_parameters="$GRUB_CMDLINE_LINUX $GRUB_CMDLINE_LINUX_DEFAULT"
|
||||||
## Mount point location
|
## Mount point location
|
||||||
@@ -237,8 +237,8 @@ snapshot_list()
|
|||||||
# Query info from snapper if it is installed
|
# Query info from snapper if it is installed
|
||||||
type snapper >/dev/null 2>&1
|
type snapper >/dev/null 2>&1
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
local snapper_ids=($(snapper -t 0 -c "$snapper_config" list | tail -n +3 | cut -d'|' -f 2))
|
local snapper_ids=($(snapper -t 0 -c "$snapper_config" list | tail -n +3 | cut -d'|' -f 1))
|
||||||
local snapper_types=($(snapper -t 0 -c "$snapper_config" list | tail -n +3 | cut -d'|' -f 1))
|
local snapper_types=($(snapper -t 0 -c "$snapper_config" list | tail -n +3 | cut -d'|' -f 2))
|
||||||
|
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
local snapper_descriptions=($(snapper -t 0 -c "$snapper_config" list | tail -n +3 | cut -d'|' -f 7))
|
local snapper_descriptions=($(snapper -t 0 -c "$snapper_config" list | tail -n +3 | cut -d'|' -f 7))
|
||||||
|
|||||||
Reference in New Issue
Block a user