Commit Graph
100 Commits
Author SHA1 Message Date
Antynea 531f3676b7 Fix typo
Fix typo
2026-05-30 14:07:52 +02:00
Antynea 091ffc0ae9 Update EnvironmentFile (#65)
* Change `EnvironmentFile` to match the new design of the configuration file. (#64)
2018-12-15 03:35:40 +01:00
Antynea 4c57fcbbf4 v4 (#62)
* Readme updated
* localization no longer supported
* New systemd service.
* 41_snapshots-btrfs, ahead updated
* Makefile added
2018-12-13 16:39:16 +01:00
Antynea 73a2bd3d32 Enhanced btrfs raid 0 detection (#59)
Fix #58 
- grub-probe should work properly with btrfs raid 0
2018-11-22 08:39:08 +01:00
Antynea a1a48d26b7 Override boot partition detection (#55)
* 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)
2018-07-09 18:55:09 +02:00
Antynea 9b73e0ac62 Check uuid requirement. (#52)
* 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
2018-06-11 15:52:00 +02:00
Antynea b8325cf134 Fix: some functions doesn't work as expected (#48)
* 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
2018-04-19 15:45:59 +02:00
Antynea c5da4014ae Update readme to v3.xx
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)
2018-04-17 12:18:56 +02:00
Antynea 8508cac7d8 GRUB shouldn't break anymore (#46)
* 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
2018-04-16 21:43:47 +02:00
Antynea 1b40cfee20 Update 41_snapshots-btrfs
Update 41_snapshots-btrfs
2018-02-03 22:59:03 +01:00
Antynea 358dedc392 Update 41_snapshots-btrfs
Update 41_snapshots-btrfs
2018-02-03 22:57:04 +01:00
Antynea 55dc182b34 Update README.md 2018-02-03 22:31:43 +01:00
Antynea ca51d74265 Update README.md 2018-01-26 11:00:55 +01:00
Antynea f8937a3fc7 Update README.md 2018-01-26 10:58:04 +01:00
Antynea 9265eb96de Update README.md 2018-01-26 10:55:45 +01:00
Antynea 72edee3d1c Update README.md 2018-01-26 10:54:37 +01:00
Antynea d24ba197a8 Update README.md 2018-01-26 10:53:42 +01:00
Antynea 0e826391f1 Update 41_snapshots-btrfs 2018-01-26 09:19:33 +01:00
Antynea 7166d939fa Update README.md 2018-01-26 09:18:13 +01:00
Antynea 5cfbf46c8c fix Snapper id too long #36
* fix Snapper id too long #36
2018-01-07 00:31:16 +01:00
Antynea 12cb591307 Update README.md 2018-01-04 10:06:41 +01:00
Antynea cb4040cd24 fix issue #27
and add "Display name of microcode in menuentry when available"
2016-11-25 01:09:34 +01:00
Antynea 55d5a4c5c2 Merge pull request #26 from daftaupe/patch-1
Update the top-level subvolid from 0 to 5.
2016-11-18 14:40:19 +01:00
Antynea 18e36190f4 Update README.md 2016-05-04 16:19:45 +02:00
Antynea f4c02dac09 add "Create entries with matching version number instead of all possible combinations of kernel and initramfs"
* GRUB_BTRFS_CREATE_ONLY_HARMONIZED_ENTRIES="false" 
-----> (Create entries with matching version number instead of all possible combinations of kernel and initramfs)
2016-05-04 13:46:31 +02:00
Antynea 86c8d0a0e8 Merge pull request #22 from anyc/master
Create only entries with matching version numbers and one small improvement
2016-05-03 16:26:15 +02:00
Antynea f0c50d1d76 Fix : GRUB_BTRFS_LIMIT (Limit the number of snapshots populated in the GRUB menu.)
Fix : When a value =< 0, script stop correctly
fix : When a value => 1, script stop when the value is reached

e.g :
 - GRUB_BTRFS_LIMIT="0"
   script doesn't detect snapshot

 - GRUB_BTRFS_LIMIT"1" or "2" "etc..."
   script will stop the snapshot detection when value is reached
2016-04-22 15:29:38 +02:00
Antynea 87a94c19c2 Merge pull request #21 from Psykar/patch-1
Readme typos and grammar
2016-04-19 02:49:01 +02:00
Antynea befb66e801 Update README.md 2016-04-19 02:30:07 +02:00
Antynea 7213d04a42 Update README.md 2016-04-19 02:29:09 +02:00
Antynea 5ea4c86400 Enhanced
add a option to : specific path to ignore during run grub-mkconfig
e.g :
# Found Snapshot: 2016-03-31 10:26:52 var/lib/docker/btrfs/subvolumes/74040aee4fa

docker is not a real snapshot available to boot
add : GRUB_BTRFS_IGNORE_SPECIFIC_PATH=("var/lib/docker") to your /etc/default/grub
and this path will be skip during run grub-mkconfig

Warning : copy exactly the right path (var/lib/docker , not /var/lib/docker/), do not put the full path
2016-04-19 02:28:19 +02:00
Antynea f17ce68fb3 Merge pull request #19 from Antynea/v1.xx
Enhanced
2016-04-19 02:23:33 +02:00
Antynea 7720cec5f9 Enhanced
- clean code
- add a option to : specific path to ignore during run grub-mkconfig
e.g :
# Found Snapshot: 2016-03-31 10:26:52 var/lib/docker/btrfs/subvolumes/74040aee4fa

docker is not a real snapshot available to boot
add : GRUB_BTRFS_IGNORE_SPECIFIC_PATH=("var/lib/docker") to your /etc/default/grub
and this path will be skip during run grub-mkconfig

Warning : copy exactly the right path (var/lib/docker , not /var/lib/docker/), do not put the full path
2016-04-19 02:18:24 +02:00
Antynea b4bd7b952c clean code 2016-04-18 17:58:57 +02:00
Antynea 56c11b8e2a - overhaul
- add two new custom variable to /etc/default/grub :
* GRUB_BTRFS_SHOW_TOTAL_SNAPSHOTS_FOUND="true"
(Show Total of snapshots found during run "grub-mkconfig")

* GRUB_BTRFS_SHOW_SNAPSHOTS_FOUND="true"
(Show snapshots found during run "grub-mkconfig")
2016-04-18 17:31:57 +02:00
Antynea d469db0a2d - fix bug issue #18 :
if no snap found, menu generate correctly, and show a warning
- overhaul
- add two new custom variable to /etc/default/grub :
* GRUB_BTRFS_SHOW_TOTAL_SNAPSHOTS_FOUND="true"
(Show Total of snapshots found during run "grub-mkconfig")

* GRUB_BTRFS_SHOW_SNAPSHOTS_FOUND="true"
(Show snapshots found during run "grub-mkconfig")
2016-04-18 17:31:33 +02:00
Antynea 6ae56dbaf6 Merge pull request #16 from wesbarnett/master
Add GRUB_BTRFS_LIMIT 
add GRUB_BTRFS_SUBVOLUME_SORT
2016-03-19 16:35:54 +01:00
Antynea 52ab9dbe95 Merge pull request #14 from Antynea/v1.xx
fix: incorrect detection "$boot_dir_real_path" for initramfs
2016-02-15 03:44:10 +01:00
Antynea 28e9524ca5 fix: incorrect detection "$boot_dir_real_path" for initramfs 2016-02-08 00:01:42 +01:00
Antynea 8fffc13c2f Merge pull request #12 from Antynea/v1.xx
enhanced description
2016-01-15 18:31:18 +01:00
Antynea a4db6a8870 enhanced description 2016-01-15 18:29:52 +01:00
Antynea 4388c334a3 Merge branch 'v1.xx' 2015-09-25 10:33:04 +02:00
Antynea a2acaefa9c Merge branch 'master' into v1.xx 2015-09-25 10:32:33 +02:00
Antynea 3db73de479 fixme : choise of method 2015-09-25 10:24:20 +02:00
Antynea 39b2d09015 Add Show full path or only name of snapshots in grub-menu 2015-09-24 08:49:59 +02:00
Antynea b511210646 Update README.md 2015-09-23 02:39:26 +02:00
Antynea 63d653746b Update README.md 2015-09-23 02:36:04 +02:00
Antynea 2df311179e Update README.md 2015-09-23 02:33:44 +02:00
Antynea 58b8f5d3ec Update README.md 2015-09-23 02:32:10 +02:00
Antynea 4081cbd27a update how to use it & to do:
add :

* GRUB_BTRFS_TITLE_FORMAT="p/d/n"
	(Custom title, shows/hides p"prefix" d"date" n"name" in grub-menu, separator "/", custom order available)

* Show full path or only name of snapshots in grub-menu
2015-09-23 02:29:01 +02:00
Antynea 9d3aa6d8a3 Update :
translation update

New option in /etc/default/grub

* GRUB_BTRFS_TITLE_FORMAT="p/d/n"
   (Custom title, shows/hides p"prefix" d"date" n"name" in grub-menu, separator "/", custom order available)
2015-09-23 02:14:46 +02:00
Antynea 25e2c16828 in progress
custom title menu
2015-09-19 04:48:45 +02:00
Antynea 14cbf60c5a in progress :
custom title menu
2015-09-19 04:31:17 +02:00
Antynea 2cf01a874f in progress
add custom title
2015-09-18 14:52:17 +02:00
Antynea 93b8ac07f5 new ideas 2015-09-11 22:46:26 +02:00
Antynea 252a6372dd Merge branch 'v1.xx' 2015-08-31 04:57:11 +02:00
Antynea 297f539f0a fixme: boot with microcode 2015-08-31 04:55:34 +02:00
Antynea 1c6c8c6051 Merge branch 'v1.xx'
Fix: redundancy parameter
2015-08-31 04:29:41 +02:00
Antynea f0fb4b8e25 redundancy parameter 2015-08-31 04:20:33 +02:00
Antynea 650ac69552 Merge branch 'v1.xx' 2015-08-30 16:18:45 +02:00
Antynea 3ebc5b494a Update description
Add few comments
2015-08-30 16:14:59 +02:00
Antynea 615cbe9f3a Merge branch 'v1.xx' 2015-08-30 03:43:08 +02:00
Antynea 2e58a2b74d enhanced detect microcode 2015-08-30 03:39:15 +02:00
Antynea 4f725a8431 Merge branch 'master' into v1.xx 2015-08-30 02:38:23 +02:00
Antynea d598529001 fixme : detect kernesl and initramfs with spaces
fixme : detect kernel and initramfs with spaces
2015-08-30 02:23:18 +02:00
Antynea b925f639cd fixme : detect snapshot name with spaces
fixme : detect snapshot name with spaces
2015-08-30 01:19:25 +02:00
Antynea 31a0baa2b1 redundancy test
redundancy test
2015-08-30 00:15:15 +02:00
Antynea 3a7c6abece fixme : detect microcode
fixme : detect microcode
2015-08-29 23:45:32 +02:00
Antynea 5e0951d8cb Fixme : broken $boot_dir_real_path
Fixme : broken $boot_dir_real_path
2015-08-29 23:17:03 +02:00
Antynea c9f5938e04 Merge branch 'v1.xx' 2015-08-29 18:22:16 +02:00
Antynea 128cbe28f3 Merge branch 'master' into v1.xx
Conflicts:
	41_snapshots-btrfs
2015-08-29 18:17:42 +02:00
Antynea 8102850627 Update README.md 2015-08-17 23:51:50 +02:00
Antynea 05fea226f9 don't create menu if snapshot is not bootable with /boot partition separate 2015-08-17 23:49:49 +02:00
Antynea 619686990e Update README.md 2015-08-12 06:02:45 +02:00
Antynea 1f3575efd1 Update README.md
To do : 
don't create menu if snapshot is not bootable with /boot partition separate
2015-08-12 06:01:49 +02:00
Antynea 2b33b88bea don't create menu if snapshot is not bootable with /boot partition separate 2015-08-11 02:57:09 +02:00
Antynea aae6892218 Update README.md 2015-08-10 06:29:19 +02:00
Antynea 84ecc2a5a7 Update README.md 2015-08-10 06:27:31 +02:00
Antynea 7c1178b17c Update README.md 2015-08-10 06:26:49 +02:00
Antynea 2773382eb5 error if /grub is in /boot/EFI 2015-08-09 17:42:56 +02:00
Antynea 34c8fbd9cb error if /grub is in /boot/EFI 2015-08-09 16:43:56 +02:00
Antynea 9d04b96f3d Merge remote-tracking branch 'origin/v1.xx' into v1.xx 2015-08-09 16:41:11 +02:00
Antynea c9d47b7854 error when /grub is not in /boot 2015-08-09 16:36:48 +02:00
Antynea 7d07503f07 Update README.md 2015-08-09 04:21:52 +02:00
Antynea f646dfd900 Update README.md 2015-08-09 04:20:25 +02:00
Antynea b4d4bc0aac Update README.md 2015-08-09 04:19:38 +02:00
Antynea f379832df3 Update README.md 2015-08-08 03:50:00 +02:00
Antynea 00b8f4106d Update README.md
To do
Uefi compatibility
2015-08-08 03:45:08 +02:00
Antynea 26d8e83c8c structuring 2015-08-07 14:16:03 +02:00
Antynea 178cdb163c correct menuentry when /boot is separate partition 2015-08-07 13:01:00 +02:00
Antynea f46c38d141 typo 2015-08-07 12:55:02 +02:00
Antynea 0ab7aa02bb Correct menuentry
add /boot separate partition
2015-08-07 12:54:03 +02:00
Antynea be28f3657e * correct menuentry when /boot in separate partition 2015-08-07 01:45:11 +02:00
Antynea 81bb76fbc3 translation for grub-btrfs-git version 1.xx 2015-08-07 01:12:11 +02:00
Antynea 9d21a629d8 Update README.md 2015-08-07 00:40:56 +02:00
Antynea bc650f2caf Update README.md
enhanced readme
2015-08-07 00:14:48 +02:00
Antynea 52dd376047 enhanced readme 2015-08-07 00:12:23 +02:00
Antynea 87bc0f6358 detect partition boot separate
check, ok
2015-08-06 23:57:29 +02:00
Antynea 94c9fedef3 detect partition boot separate
check, ok
2015-08-06 23:56:38 +02:00
Antynea adc4fd6687 improve layout for entries in grub 2015-08-06 04:35:46 +02:00