* Add more information
Add more information.
Due to the redesign of the "Customization" section of the readme file.
* Redesign customization section
Move information of customization section to config file
Timeshift use `/run/timeshift/backup/timeshift-btrfs/snapshots` mountpoint for its snapshots.
Timeshift users must modify the monitoring path:
```
[Path]
PathModified=/.snapshots
```
to
```
[Path]
PathModified=/run/timeshift/backup/timeshift-btrfs/snapshots
```
* Add password protection support for the submenu
Grub2 supports superuser and user access using passwords. #95
-Ability to add authorized users.
-Possibility to disable password protection for the submenu.
* Update config
* Update README.md
Btrfs filesystems may be slow when listing snapshots and calculating
space usage for each.
And that space information is not needed and never used in the scipt.
So, add --disable-ununsed-space to all calls to btrfs.
See: https://github.com/Antynea/grub-btrfs/issues/91
Co-authored-by: Peter G <nephros@pearl.crownest.nephros.org>
Previously, the kernel parameters came after the `rootflags=subvol=<snapshot>`
argument. This means that when the user's standard kernel parameters also
contain a `rootflags=subvol=<root>`, it will override the subvol flag of the
snapshot. So put the snapshot's subvol flag last.
Fix#72
The submenu generated by "grub-btrfs" doesn't load in the "GRUB menu."
Sometimes the Grub prefix and root variable don't match.
This ensures that the prefix variable is used to load the grub-btrfs.cfg file.
See
How to specify files
and
Special environment variables : root
and
Special environment variables : prefix
* Make 'grub-mkconfig' command name configurable
- Use 'grub-mkconfig' as the default
- Note that some systems use 'grub2-mkconfig'
- Update 10-update_grub.conf to use the configurable grub directory name
- Refactor the systemd commands for clarity and to avoid duplicate regeneration on first run
* Update check_uuid_required() to work for partial regeneration of the GRUB menu
* Override boot partition detection
refer to #54
* Add new option
# GRUB_BTRFS_OVERRIDE_BOOT_PARTITION_DETECTION="false"
# Change to "true" if you have a boot partition in a different subvolume
* Corrects indentation
* Update readme
GRUB_BTRFS_OVERRIDE_BOOT_PARTITION_DETECTION="false"
(Change to "true" if you have a boot partition in a different subvolume)
* detect uuid requirement
add new function to detect uuid requirement
* Reduce generation time
New function doesn't need to be called at each generation of a menu entry
* Fix: Title format in grub-menu
function:
- title_format , doesn't work as expected
replace print message with default parameter (p/d/n)
* Update header
- Add Github link
- Clear up some explanations
* Fix: path to grub-mkconfig_lib
. "$pkgdatadir/grub-mkconfig_lib" doesn't work on some distribution
Replaced by . "$datarootdir/grub/grub-mkconfig_lib"
* Fix: matches kernel & initramfs
matches kernel & initramfs doesn't work as expected
Update readme to v3.xx
GRUB_BTRFS_CREATE_ONLY_HARMONIZED_ENTRIES="true"
Doesn't exist anymore
GRUB_BTRFS_IGNORE_SPECIFIC_PATH=("var/lib/docker" "nosnapshot")
Delete "nosnapshot" it is confusing
New option available :
GRUB_BTRFS_DISABLE="true"
(Disable grub-btrfs)
* Update 41_snapshots-btrfs
Enhanced error handling :
- new function available: print_error
- if btrfs-progs is not present, print a error and exit
New options in etc/default/grub
- disable this script
Enhanced menuentries:
- menuentries is now store in new grub configfile (/boot/grub/grub.cfg)
- use new functions for make a menuentry: make_menu_entries and entry
- harmonize menuentry with matching version kernel&initramfs # initramfs-linux-fallback is include and not boot with intel-ucode if exist , same as original patch in GRUB for Arch Linux
- make a menuentry in Grub menu (grub.cfg) to load our configfile
Enhanced /boot detection:
- create two separate function for make menuentries, if /boot is on a separate partition, use function boot_separate, else, boot_bounded
- if no kernel found, print a message and exit
- if no initramfs found, print a message and exit
Delete function: boot_dir
No longer uses gettext_printf function of grub-mkconfig_lib
New function to detect kernel:
- add all original standard kernel
- verifying if kernel exist before to continue
New functionto detect initramfs:
- add all original standard initramfs
- verifying if initramfs exist before to continue
New function to detect microcode
New counter:
- add a counter to show a warning if the total menuentries made exceeds 250 entries
Purge some obsolete code
Size tabulation is now 4