Ensure to mount /boot even for BTRFS filesystem

This commit is contained in:
gardouille 2020-10-19 19:07:13 +02:00
parent f008dd25e3
commit f7d9fbed3c
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 3 deletions

5
debian/chroot.mount vendored
View File

@ -48,13 +48,12 @@ apt install ipcalc
mkdir -p -- /target
mountpoint -q /target || mount -- /dev/mapper/"${vgname}"-root /target
### boot - grub
mountpoint -q /target/boot || mount -- ${hdd}1 /target/boot
##
if [ "${manage_btrfs}" -eq 0 ]; then
printf '%b\n' "The root system is in ${GREEN}BTRFS${RESET}, no extra mount is required."
else
### boot - grub
mountpoint -q /target/boot || mount -- ${hdd}1 /target/boot
#### home LV
mountpoint -q /target/home || mount -- /dev/mapper/"${vgname}"-home /target/home
#### opt LV