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(s) name(s)
microcode=("${GRUB_BTRFS_INTEL_UCODE[@]}") microcode=("${GRUB_BTRFS_INTEL_UCODE[@]}")
## Limit to show in menu ## Limit to show in menu
limit=("${GRUB_BTRFS_LIMIT[@]}") limit=("${GRUB_BTRFS_LIMIT[@]:-100}")
if [ -z "$limit" ]; then
limit=100
fi
######################## ########################
### variables script ### ### variables script ###
@@ -161,7 +158,7 @@ snapshots_entry()
## List of snapshots on filesystem ## List of snapshots on filesystem
snapshot_list() snapshot_list()
{ {
for snap in $(btrfs subvolume list -sa / | tac); do for snap in $(btrfs subvolume list -sa --sort=-rootid /); do
IFS=$oldIFS IFS=$oldIFS
snap=($snap) snap=($snap)
local snap_path_name=${snap[@]:13:${#snap[@]}} local snap_path_name=${snap[@]:13:${#snap[@]}}