Fail to install the ubuntu when the / volume is btrfs
Closed this issue · 3 comments
suikan4github commented
Failed to install Ubuntu 20.04 LTS when the / logical volume is btrffs. See the screen shot.
The mounted point is different from the usual. To work with btrfs, need to handle the sub-volume.
https://mutschler.eu/linux/install-guides/ubuntu-btrfs/#step-5-post-installation-steps
suikan4github commented
Adding following option to the mount solve this problem.
-o subvol=@
Following command can detect
lsblk -o NAME,FSTYPE | grep -i "${VGNAME}-${LVROOTNAME}" | grep -i "btrfs" > /dev/null
Thus follwing line :
kaiten-yaki/script/lib/common.sh
Line 295 in c126247
should be changed to :
if lsblk -o NAME,FSTYPE | grep -i "${VGNAME}-${LVROOTNAME}" | grep -i "btrfs" > /dev/null ; then
btrfsoption="-o subvol=@"
else
brtfsoption=""
fi
mount "${brtfsoption}" /dev/mapper/"${VGNAME}"-"${LVROOTNAME}" "${TARGETMOUNTPOINT}"
suikan4github commented
Only Ubuntu fails. Void Linux can be install with btrfs without any modification.
suikan4github commented
Merged to develop. Ready to release.