btrfs support

Fail to install the ubuntu when the / volume is btrfs
 #24
This commit is contained in:
Suikan 2021-07-12 17:55:02 +09:00
parent 456cbf87cd
commit 47b40316c0
3 changed files with 14 additions and 1 deletions

View file

@ -53,6 +53,15 @@ function main() {
# Post-install stage
# *******************************************************************************
# If the target volume is formated by btrfs, Ubiquity install the root into the
# @ sub-volume. Thus, mount command inside post_install have to use special option
# to specify @ as mount target.
if lsblk -o NAME,FSTYPE | grep -i "${VGNAME}-${LVROOTNAME}" | grep -i "btrfs" > /dev/null ; then
export BTRFSOPTION="-o subvol=@"
else
export BTRFSOPTION=""
fi
# Distribution dependent finalizing. Embedd encryption key into the ramfs image.
# The script is parameterized by env-variable to fit to the distribution
post_install