mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-03-04 13:05:00 +08:00
cleanup
This commit is contained in:
@@ -73,10 +73,7 @@ ninit=("${GRUB_BTRFS_NINIT[@]}")
|
||||
## Microcode(s) name(s)
|
||||
microcode=("${GRUB_BTRFS_INTEL_UCODE[@]}")
|
||||
## Limit to show in menu
|
||||
limit=("${GRUB_BTRFS_LIMIT[@]}")
|
||||
if [ -z "$limit" ]; then
|
||||
limit=100
|
||||
fi
|
||||
limit=("${GRUB_BTRFS_LIMIT[@]:-100}")
|
||||
|
||||
########################
|
||||
### variables script ###
|
||||
@@ -161,7 +158,7 @@ snapshots_entry()
|
||||
## List of snapshots on filesystem
|
||||
snapshot_list()
|
||||
{
|
||||
for snap in $(btrfs subvolume list -sa / | tac); do
|
||||
for snap in $(btrfs subvolume list -sa --sort=-rootid /); do
|
||||
IFS=$oldIFS
|
||||
snap=($snap)
|
||||
local snap_path_name=${snap[@]:13:${#snap[@]}}
|
||||
|
||||
Reference in New Issue
Block a user