mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-10-20 02:42:03 +08:00
Update description
Add few comments
This commit is contained in:
+8
-5
@@ -8,6 +8,7 @@
|
|||||||
# #
|
# #
|
||||||
# What this script does: #
|
# What this script does: #
|
||||||
# - Automatically List snapshots existing on root partition (btrfs). #
|
# - Automatically List snapshots existing on root partition (btrfs). #
|
||||||
|
# - Automatically Detect if "/boot" is in separate partition. #
|
||||||
# - Automatically Detect kernel, initramfs and intel microcode in "/boot" directory on snapshots. (For custon name, see below.) #
|
# - Automatically Detect kernel, initramfs and intel microcode in "/boot" directory on snapshots. (For custon name, see below.) #
|
||||||
# - Automatically Create corresponding "menuentry" in grub.cfg , which ensures a very easy rollback. #
|
# - Automatically Create corresponding "menuentry" in grub.cfg , which ensures a very easy rollback. #
|
||||||
# #
|
# #
|
||||||
@@ -20,15 +21,13 @@
|
|||||||
# * GRUB_BTRFS_NINIT=("initramfs-linux.img" "initramfs-linux-fallback.img") (Use only if you have custom initramfs name or auto-detect failed.) #
|
# * GRUB_BTRFS_NINIT=("initramfs-linux.img" "initramfs-linux-fallback.img") (Use only if you have custom initramfs name or auto-detect failed.) #
|
||||||
# * GRUB_BTRFS_INTEL_UCODE=("intel-ucode.img") (Use only if you have custom intel-ucode or auto-detect failed.) #
|
# * GRUB_BTRFS_INTEL_UCODE=("intel-ucode.img") (Use only if you have custom intel-ucode or auto-detect failed.) #
|
||||||
# #
|
# #
|
||||||
# - Generate grub.cfg (on Archlinux use grub-mkconfig -o /boot/grub/grub.cfg ) #
|
# - Generate grub.cfg (on Archlinux use grub-mkconfig -o /boot/grub/grub.cfg) #
|
||||||
# #
|
# #
|
||||||
# - grub-btrfs automatically generates snapshots entries. #
|
# - grub-btrfs automatically generates snapshots entries. #
|
||||||
# - You will see it appear different entries (e.g : Snapshot: my snapshot name overkill [2014-02-12 11:24:37]) #
|
# - You will see it appear different entries (e.g : Snapshot: my snapshot name overkill [2014-02-12 11:24:37]) #
|
||||||
# #
|
# #
|
||||||
# Warning: #
|
|
||||||
# #
|
# #
|
||||||
# Script in progress #
|
# To do: #
|
||||||
# to do : #
|
|
||||||
# # #
|
# # #
|
||||||
# * verify compatibility with manjaro and snapper (but I don't use them, so it will take some time) #
|
# * verify compatibility with manjaro and snapper (but I don't use them, so it will take some time) #
|
||||||
# #
|
# #
|
||||||
@@ -152,6 +151,7 @@ snapshot_list()
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## Detect kernels in "/boot"
|
||||||
detect_kernel()
|
detect_kernel()
|
||||||
{
|
{
|
||||||
## Arch original kernel (auto-detect)
|
## Arch original kernel (auto-detect)
|
||||||
@@ -168,6 +168,7 @@ detect_kernel()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## Detect initramfs in "/boot"
|
||||||
detect_initramfs()
|
detect_initramfs()
|
||||||
{
|
{
|
||||||
## Arch original initramfs (auto-detect)
|
## Arch original initramfs (auto-detect)
|
||||||
@@ -184,6 +185,7 @@ detect_initramfs()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## Detect microcode in "/boot"
|
||||||
detect_microcode()
|
detect_microcode()
|
||||||
{
|
{
|
||||||
## Arch original intel microcode
|
## Arch original intel microcode
|
||||||
@@ -199,6 +201,7 @@ detect_microcode()
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
## List of kernels, initramfs and microcode in snapshots
|
## List of kernels, initramfs and microcode in snapshots
|
||||||
list_kernels_initramfs()
|
list_kernels_initramfs()
|
||||||
{
|
{
|
||||||
@@ -241,4 +244,4 @@ if [ ${choise_of_method} = "1" ] ; then
|
|||||||
umount $gbgmp
|
umount $gbgmp
|
||||||
gettext_printf "###### - Grub-btrfs: Auto-detect - ######\n" >&2 ;
|
gettext_printf "###### - Grub-btrfs: Auto-detect - ######\n" >&2 ;
|
||||||
fi
|
fi
|
||||||
### End choice of method ###
|
### End choice of method ###
|
||||||
Reference in New Issue
Block a user