mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-03-04 04:35:00 +08:00
[DATALAD RUNCMD] run codespell throughout fixing typo automagically
=== Do not change lines below ===
{
"chain": [],
"cmd": "codespell -w",
"exit": 0,
"extra_inputs": [],
"inputs": [],
"outputs": [],
"pwd": "."
}
^^^ Do not change lines above ^^^
This commit is contained in:
@@ -108,7 +108,7 @@ if [ -n "${GRUB_BTRFS_PROTECTION_AUTHORIZED_USERS}" ] ; then
|
||||
protection_authorized_users="--users ${GRUB_BTRFS_PROTECTION_AUTHORIZED_USERS} "
|
||||
fi
|
||||
|
||||
## Probe informations of Root and Boot devices
|
||||
## Probe information of Root and Boot devices
|
||||
# Probe info "Root partition"
|
||||
root_device=$(${grub_probe} --target=device /) # Root device
|
||||
root_uuid=$(${grub_probe} --device ${root_device} --target="fs_uuid" 2>/dev/null) # UUID of the root device
|
||||
@@ -174,7 +174,7 @@ if [[ -d "$grub_btrfs_mount_point" ]]; then
|
||||
done
|
||||
if [[ "$wait" != true ]]; then
|
||||
if ! rm -d "$grub_btrfs_mount_point" >/dev/null 2>&1; then
|
||||
printf "Unable to delete %s: Device or ressource is busy\n" "$grub_btrfs_mount_point" >&2;
|
||||
printf "Unable to delete %s: Device or resource is busy\n" "$grub_btrfs_mount_point" >&2;
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
@@ -315,7 +315,7 @@ snapshot_list()
|
||||
fi
|
||||
[[ ! -d "$grub_btrfs_mount_point/$path_snapshot/boot" ]] && continue; # Discard snapshots without /boot folder
|
||||
|
||||
# Parse Snapper & timeshift informations
|
||||
# Parse Snapper & timeshift information
|
||||
local type_snapshot="N/A"
|
||||
local description_snapshot="N/A"
|
||||
if [[ -s "$grub_btrfs_mount_point/${path_snapshot%"/"*}/$snapper_info" ]] ; then
|
||||
|
||||
2
Makefile
2
Makefile
@@ -147,7 +147,7 @@ help:
|
||||
@echo " BOOT_DIR_FEDORA | path | boot data location (Fedora, RHEL, CentOS, Rocky...) | '/boot/grub2'"
|
||||
@echo " SHARE_DIR | path | shared data location | '\$$(DESTDIR)\$$(PREFIX)/share'"
|
||||
@echo " LIB_DIR | path | system libraries location | '\$$(DESTDIR)\$$(PREFIX)/lib'"
|
||||
@echo " PKGNAME | name | name of the ditributed package | 'grub-btrfs'"
|
||||
@echo " PKGNAME | name | name of the distributed package | 'grub-btrfs'"
|
||||
@echo " INITCPIO | bool | include mkinitcpio hook | false"
|
||||
@echo " SYSTEMD | bool | include unit files | true"
|
||||
@echo " OPENRC | bool | include OpenRc daemon | false"
|
||||
|
||||
@@ -75,7 +75,7 @@ To manually generate grub snapshot entries you can run `sudo /etc/grub.d/41_snap
|
||||
* On **Fedora** use `grub2-mkconfig -o /boot/grub2/grub.cfg`
|
||||
* On **Debian and Ubuntu based** distributions `update-grub` is a script that runs `grub-mkconfig ...`
|
||||
|
||||
This process can be automated to occur whenever you create or delete snaphots but this process is slightly different depending upon your distributions choice on init system. See the relevant instructions for your init system below.
|
||||
This process can be automated to occur whenever you create or delete snapshots but this process is slightly different depending upon your distributions choice on init system. See the relevant instructions for your init system below.
|
||||
|
||||
### ⚙️ Customization:
|
||||
|
||||
|
||||
8
config
8
config
@@ -49,14 +49,14 @@ GRUB_BTRFS_VERSION=4.12-master-2023-04-28T16:26:00+00:00
|
||||
# Default: ("")
|
||||
#GRUB_BTRFS_CUSTOM_MICROCODE=("custom-ucode.img" "custom-uc.img "custom_ucode.cpio")
|
||||
|
||||
# Additonal kernel command line parameters that should be passed to the kernel
|
||||
# Additional kernel command line parameters that should be passed to the kernel
|
||||
# when booting a snapshot.
|
||||
# For dracut based distros this could be useful to pass "rd.live.overlay.overlayfs=1"
|
||||
# or "rd.live.overlay.readonly=1" to the Kernel for booting snapshots read only.
|
||||
# Default: ""
|
||||
#GRUB_BTRFS_SNAPSHOT_KERNEL_PARAMETERS="rd.live.overlay.overlayfs=1"
|
||||
|
||||
# Comma seperated mount options to be used when booting a snapshot.
|
||||
# Comma separated mount options to be used when booting a snapshot.
|
||||
# They can be defined here as well as in the "/" line inside the respective snapshots'
|
||||
# "/etc/fstab" files. Mount options found in both places are combined, and this variable
|
||||
# takes priority over `fstab` entries.
|
||||
@@ -107,14 +107,14 @@ GRUB_BTRFS_IGNORE_PREFIX_PATH=("var/lib/docker" "@var/lib/docker" "@/var/lib/doc
|
||||
|
||||
# Location where grub-btrfs.cfg should be saved.
|
||||
# Some distributions (like OpenSuSE) store those files at the snapshot directory
|
||||
# instead of boot. Be aware that this direcory must be available for grub during
|
||||
# instead of boot. Be aware that this directory must be available for grub during
|
||||
# startup of the system.
|
||||
# Default: $GRUB_BTRFS_GRUB_DIRNAME
|
||||
#GRUB_BTRFS_GBTRFS_DIRNAME="/boot/grub"
|
||||
|
||||
# Location of the directory where Grub searches for the grub-btrfs.cfg file.
|
||||
# Some distributions (like OpenSuSE) store those file at the snapshot directory
|
||||
# instead of boot. Be aware that this direcory must be available for grub during
|
||||
# instead of boot. Be aware that this directory must be available for grub during
|
||||
# startup of the system.
|
||||
# Default: "\${prefix}" # This is a grub variable that resolves to where grub is
|
||||
# installed. (like /boot/grub, /boot/efi/grub)
|
||||
|
||||
@@ -82,7 +82,7 @@ Example: \fCGRUB_BTRFS_SHOW_SNAPSHOTS_FOUND="false"\fP
|
||||
|
||||
.SS "\fCGRUB_BTRFS_ROOTFLAGS\fP"
|
||||
.PP
|
||||
Comma seperated mount options to be used when booting a snapshot.
|
||||
Comma separated mount options to be used when booting a snapshot.
|
||||
They can be defined here as well as in the “/” line inside the respective snapshots’
|
||||
“/etc/fstab” files. Mount options found in both places are combined, and this variable
|
||||
takes priority over `fstab` entries.
|
||||
@@ -116,7 +116,7 @@ Example: \fCGRUB_BTRFS_NKERNEL=("kernel\-5.19.4\-custom" "vmlinux\-5.19.4\-custo
|
||||
|
||||
.SS "\fCGRUB_BTRFS_SNAPSHOT_KERNEL_PARAMETERS\fP"
|
||||
.PP
|
||||
Additonal kernel command line parameters that should be passed to the kernelwhen
|
||||
Additional kernel command line parameters that should be passed to the kernelwhen
|
||||
booting a snapshot.
|
||||
For dracut based distros this could be useful to pass “rd.live.overlay.overlayfs=1”
|
||||
or “rd.live.overlay.readonly=1” to the Kernel for booting read only snapshots.
|
||||
@@ -190,7 +190,7 @@ Example: \fCGRUB_BTRFS_GRUB_DIRNAME="/boot/grub2"\fP
|
||||
.PP
|
||||
Location where grub-btrfs.cfg should be saved.
|
||||
Some distributions (like OpenSuSE) store those file at the snapshot directory
|
||||
instead of boot. Be aware that this direcory must be available for grub during
|
||||
instead of boot. Be aware that this directory must be available for grub during
|
||||
startup of the system.
|
||||
.IP \(em 4
|
||||
Default: \fC$GRUB_BTRFS_GRUB_DIRNAME\fP
|
||||
@@ -201,7 +201,7 @@ Example: \fCGRUB_BTRFS_GBTRFS_DIRNAME="/.snapshots"\fP
|
||||
.PP
|
||||
Location of the directory where Grub searches for the grub-btrfs.cfg file.
|
||||
Some distributions (like OpenSuSE) store those file at the snapshot directory
|
||||
instead of boot. Be aware that this direcory must be available for grub during
|
||||
instead of boot. Be aware that this directory must be available for grub during
|
||||
startup of the system.
|
||||
.IP \(em 4
|
||||
Default: “\${prefix}” (This is a grub variable that resolves to where grub is
|
||||
|
||||
@@ -58,7 +58,7 @@ Show snapshots found during run "grub-mkconfig"
|
||||
- Example: ~GRUB_BTRFS_SHOW_SNAPSHOTS_FOUND="false"~
|
||||
|
||||
*** ~GRUB_BTRFS_ROOTFLAGS~
|
||||
Comma seperated mount options to be used when booting a snapshot.
|
||||
Comma separated mount options to be used when booting a snapshot.
|
||||
They can be defined here as well as in the "/" line inside the respective snapshots'
|
||||
"/etc/fstab" files. Mount options found in both places are combined, and this variable
|
||||
takes priority over `fstab` entries.
|
||||
@@ -84,7 +84,7 @@ Customs kernel, initramfs and microcodes that are not detected can be added in t
|
||||
~GRUB_BTRFS_CUSTOM_MICROCODE=("custom-ucode.img" "custom-uc.img "custom_ucode.cpio")~
|
||||
|
||||
*** ~GRUB_BTRFS_SNAPSHOT_KERNEL_PARAMETERS~
|
||||
Additonal kernel command line parameters that should be passed to the kernelwhen
|
||||
Additional kernel command line parameters that should be passed to the kernelwhen
|
||||
booting a snapshot.
|
||||
For dracut based distros this could be useful to pass "rd.live.overlay.overlayfs=1"
|
||||
or "rd.live.overlay.readonly=1" to the Kernel for booting read only snapshots.
|
||||
@@ -139,7 +139,7 @@ For example, on Fedora with EFI : "/boot/efi/EFI/fedora"
|
||||
*** ~GRUB_BTRFS_GBTRFS_DIRNAME~
|
||||
Location where grub-btrfs.cfg should be saved.
|
||||
Some distributions (like OpenSuSE) store those file at the snapshot directory
|
||||
instead of boot. Be aware that this direcory must be available for grub during
|
||||
instead of boot. Be aware that this directory must be available for grub during
|
||||
startup of the system.
|
||||
- Default: ~$GRUB_BTRFS_GRUB_DIRNAME~
|
||||
- Example: ~GRUB_BTRFS_GBTRFS_DIRNAME="/.snapshots"~
|
||||
@@ -147,7 +147,7 @@ For example, on Fedora with EFI : "/boot/efi/EFI/fedora"
|
||||
*** ~GRUB_BTRFS_GBTRFS_SEARCH_DIRNAME~
|
||||
Location of the directory where Grub searches for the grub-btrfs.cfg file.
|
||||
Some distributions (like OpenSuSE) store those file at the snapshot directory
|
||||
instead of boot. Be aware that this direcory must be available for grub during
|
||||
instead of boot. Be aware that this directory must be available for grub during
|
||||
startup of the system.
|
||||
- Default: "\${prefix}" (This is a grub variable that resolves to where grub is
|
||||
installed. (like /boot/grub, /boot/efi/grub))
|
||||
|
||||
@@ -82,7 +82,7 @@ Example: \fCGRUB_BTRFS_SHOW_SNAPSHOTS_FOUND="false"\fP
|
||||
|
||||
.SS "\fCGRUB_BTRFS_ROOTFLAGS\fP"
|
||||
.PP
|
||||
Comma seperated mount options to be used when booting a snapshot.
|
||||
Comma separated mount options to be used when booting a snapshot.
|
||||
They can be defined here as well as in the “/” line inside the respective snapshots’
|
||||
“/etc/fstab” files. Mount options found in both places are combined, and this variable
|
||||
takes priority over `fstab` entries.
|
||||
@@ -116,7 +116,7 @@ Example: \fCGRUB_BTRFS_NKERNEL=("kernel\-5.19.4\-custom" "vmlinux\-5.19.4\-custo
|
||||
|
||||
.SS "\fCGRUB_BTRFS_SNAPSHOT_KERNEL_PARAMETERS\fP"
|
||||
.PP
|
||||
Additonal kernel command line parameters that should be passed to the kernelwhen
|
||||
Additional kernel command line parameters that should be passed to the kernelwhen
|
||||
booting a snapshot.
|
||||
For dracut based distros this could be useful to pass “rd.live.overlay.overlayfs=1”
|
||||
or “rd.live.overlay.readonly=1” to the Kernel for booting read only snapshots.
|
||||
@@ -190,7 +190,7 @@ Example: \fCGRUB_BTRFS_GRUB_DIRNAME="/boot/grub2"\fP
|
||||
.PP
|
||||
Location where grub-btrfs.cfg should be saved.
|
||||
Some distributions (like OpenSuSE) store those file at the snapshot directory
|
||||
instead of boot. Be aware that this direcory must be available for grub during
|
||||
instead of boot. Be aware that this directory must be available for grub during
|
||||
startup of the system.
|
||||
.IP \(em 4
|
||||
Default: \fC$GRUB_BTRFS_GRUB_DIRNAME\fP
|
||||
@@ -201,7 +201,7 @@ Example: \fCGRUB_BTRFS_GBTRFS_DIRNAME="/.snapshots"\fP
|
||||
.PP
|
||||
Location of the directory where Grub searches for the grub-btrfs.cfg file.
|
||||
Some distributions (like OpenSuSE) store those file at the snapshot directory
|
||||
instead of boot. Be aware that this direcory must be available for grub during
|
||||
instead of boot. Be aware that this directory must be available for grub during
|
||||
startup of the system.
|
||||
.IP \(em 4
|
||||
Default: “\${prefix}” (This is a grub variable that resolves to where grub is
|
||||
|
||||
Reference in New Issue
Block a user