This commit is contained in:
James Barnett
2016-03-19 08:11:47 -05:00
parent f256338074
commit 59164367e7

View File

@@ -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[@]}}