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

@ -291,8 +291,9 @@ function para_install_msg() {
function post_install() {
## Mount the target file system
# ${TARGETMOUNTPOINT} is created by the GUI/TUI installer
# ${BTRFSOPTION} is defined by the caller of this function for BTRFS formated volume.
echo "...Mounting /dev/mapper/${VGNAME}-${LVROOTNAME} on ${TARGETMOUNTPOINT}."
mount /dev/mapper/"${VGNAME}"-"${LVROOTNAME}" "${TARGETMOUNTPOINT}"
mount "${BTRFSOPTION}" /dev/mapper/"${VGNAME}"-"${LVROOTNAME}" "${TARGETMOUNTPOINT}"
# And mount other directories
echo "...Mounting all other dirs."