mirror of
https://github.com/Antynea/grub-btrfs.git
synced 2026-08-24 09:13:15 +08:00
don't create menu if snapshot is not bootable with /boot partition separate
This commit is contained in:
@@ -30,7 +30,8 @@
|
|||||||
# Script in progress #
|
# Script in progress #
|
||||||
# to do : #
|
# to do : #
|
||||||
# # #
|
# # #
|
||||||
# * verify compatibility with UEFI,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) #
|
||||||
|
# * don't create menu if snapshot is not bootable with /boot partition separate #
|
||||||
# #
|
# #
|
||||||
#########################################################################################################################################################
|
#########################################################################################################################################################
|
||||||
|
|
||||||
@@ -206,7 +207,7 @@ list_kernels_initramfs()
|
|||||||
name_initramfs=("${list_initramfs[@]##*"/"}")
|
name_initramfs=("${list_initramfs[@]##*"/"}")
|
||||||
# echo "initramfs = ${name_initramfs[*]}"
|
# echo "initramfs = ${name_initramfs[*]}"
|
||||||
# Create menu entries
|
# Create menu entries
|
||||||
# snapshots_entry "${prefixentry}" "${snap_dir_name}" "${snap_date_time}"
|
snapshots_entry "${prefixentry}" "${snap_dir_name}" "${snap_date_time}"
|
||||||
done
|
done
|
||||||
IFS=$oldIFS
|
IFS=$oldIFS
|
||||||
if [ $root_uuid = $boot_uuid ] ; then umount $gbgmp ; fi
|
if [ $root_uuid = $boot_uuid ] ; then umount $gbgmp ; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user