@@ -237,12 +237,12 @@ create_fs_structure () {
|
||||
|
||||
local cmd
|
||||
|
||||
printf "${BLUE}Prepare root filesystem structure ${GREEN}'subvol=%s'${NO_COLOR}\n" \
|
||||
printf "${BLUE}Prepare root filesystem structure with subvol=${GREEN}'%s'${NO_COLOR}\n" \
|
||||
"$SUBVOL"
|
||||
if [ $dryrun -eq 1 ]; then
|
||||
printf "${MAGENTA}Would mount target root at ${GREEN}'%s'${NO_COLOR}\n" "$SUBVOL"
|
||||
else
|
||||
printf "${MAGENTA} - mount target root at ${GREEN}'%s'${NO_COLOR}\n" "$SUBVOL"
|
||||
printf "${BLUE} - mount target root"
|
||||
mount_target /dev/disk/by-partlabel/${PREFIX}-${LABEL} $MOUNT_POINT btrfs $SUBVOL
|
||||
if [ $? -gt 0 ]; then
|
||||
die "Can't mount root filesystem ${PREFIX}-${LABEL}"
|
||||
@@ -677,6 +677,12 @@ mount_target () {
|
||||
|
||||
local cmd
|
||||
|
||||
if [ ! -h $DEV_NAME ]; then
|
||||
printf "${RED}Error: ${NO_COLOR}Can't access given device ${GREEN}'%s'{NO_COLOR}\n" \
|
||||
"$DEV_NAME"
|
||||
return 1
|
||||
fi
|
||||
|
||||
case $FS_TYPE in
|
||||
"btrfs")
|
||||
if [ -h $DEV_NAME ]; then
|
||||
|
||||
Reference in New Issue
Block a user