mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-08-24 01:03:15 +08:00
cleanup
This commit is contained in:
@@ -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[@]}}
|
||||||
|
|||||||
Reference in New Issue
Block a user