mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-08-24 01:03:15 +08:00
Only recreation of the submenu
This commit is contained in:
committed by
Pascal J
parent
44c9cd16d0
commit
5ce2dfa640
11
grub-btrfsd
11
grub-btrfsd
@@ -203,19 +203,12 @@ fi
|
|||||||
create_grub_menu() {
|
create_grub_menu() {
|
||||||
# create the grub submenu of the whole grub menu, depending on wether the submenu already exists
|
# create the grub submenu of the whole grub menu, depending on wether the submenu already exists
|
||||||
# and gives feedback if it worked
|
# and gives feedback if it worked
|
||||||
if [ -s "${GRUB_BTRFS_GRUB_DIRNAME:-/boot/grub}/grub-btrfs.cfg" ]; then
|
if [ -x "/etc/grub.d/41_snapshots-btrfs" ]; then
|
||||||
if /etc/grub.d/41_snapshots-btrfs; then
|
/etc/grub.d/41_snapshots-btrfs
|
||||||
log "Grub submenu recreated" "${GREEN}"
|
log "Grub submenu recreated" "${GREEN}"
|
||||||
else
|
else
|
||||||
err "[!] Error during grub submenu creation (grub-btrfs error)" "${RED}"
|
err "[!] Error during grub submenu creation (grub-btrfs error)" "${RED}"
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
if ${GRUB_BTRFS_MKCONFIG:-grub-mkconfig} -o ${GRUB_BTRFS_GRUB_DIRNAME:-/boot/grub}/grub.cfg; then
|
|
||||||
log "Grub menu recreated" "${GREEN}"
|
|
||||||
else
|
|
||||||
err "[!] Error during grub menu creation (grub/ grub-btrfs error)" "${RED}"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
set_snapshot_dir() {
|
set_snapshot_dir() {
|
||||||
|
|||||||
Reference in New Issue
Block a user