mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
parent
145127cf66
commit
b29ef17fbf
1 changed files with 2 additions and 2 deletions
|
@ -3902,13 +3902,13 @@ do_grub_config() {
|
||||||
if [[ "${ROOT_PART_FS_UUID}" == "${BOOT_PART_FS_UUID}" ]]; then
|
if [[ "${ROOT_PART_FS_UUID}" == "${BOOT_PART_FS_UUID}" ]]; then
|
||||||
subdir="/boot"
|
subdir="/boot"
|
||||||
# on btrfs we need to check on subvol
|
# on btrfs we need to check on subvol
|
||||||
if [[ $(mount "${DESTDIR}/ " | grep btrfs | grep subvol) ]]; then
|
if [[ $(mount | grep "${DESTDIR} " | grep btrfs | grep subvol) ]]; then
|
||||||
subdir="$(btrfs subvolume show "${DESTDIR}/" | grep Name | cut -d ":" -f2)"
|
subdir="$(btrfs subvolume show "${DESTDIR}/" | grep Name | cut -d ":" -f2)"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
subdir=""
|
subdir=""
|
||||||
# on btrfs we need to check on subvol
|
# on btrfs we need to check on subvol
|
||||||
if [[ $(mount "${DESTDIR}/boot" | grep btrfs | grep subvol) ]]; then
|
if [[ $(mount | "${DESTDIR}/boot " | grep btrfs | grep subvol) ]]; then
|
||||||
subdir="$(btrfs subvolume show "${DESTDIR}/boot" | grep Name | cut -d ":" -f2)"
|
subdir="$(btrfs subvolume show "${DESTDIR}/boot" | grep Name | cut -d ":" -f2)"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue