Skip to content

Commit ee92d7f

Browse files
committed
kickstart: Fix indentation (no changes)
Signed-off-by: Alexey Gladkov <[email protected]>
1 parent 932f55f commit ee92d7f

File tree

1 file changed

+51
-51
lines changed

1 file changed

+51
-51
lines changed

features/kickstart/data/bin/kickstart-sh-storage

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -549,57 +549,57 @@ ks_requires_xfs=("xfs_growfs" "mount")
549549
ks_requires_f2fs=("resize.f2fs")
550550
ks_growfs()
551551
{
552-
local PROG
553-
local fs="" requires="" ret=0 rc=0
554-
555-
PROG="kickstart"
556-
message "command: ${FUNCNAME[0]} $*"
557-
558-
fs="$(blkid --output value --match-tag TYPE -c /dev/null "$1")" ||
559-
return 0
560-
561-
case "$fs" in
562-
ext*) requires="ks_growfs_ext4" ;;
563-
xfs) requires="ks_growfs_xfs" ;;
564-
f2fs) requires="ks_growfs_f2fs" ;;
565-
*)
566-
# resize unsupported.
567-
return 0
568-
;;
569-
esac
570-
571-
ks_check_requires "$requires" ||
572-
return 1
573-
574-
verbose "Increase filesystem to partition size: $1"
575-
576-
case "$fs" in
577-
ext*)
578-
e2fsck -y -p -f "$1" ||
579-
rc="$?"
580-
# 0 - No errors
581-
# 1 - File system errors corrected
582-
# 2 - File system errors corrected, system should be rebooted
583-
[ "$rc" -le 2 ] && resize2fs "$1" ||
584-
ret=1
585-
;;
586-
xfs)
587-
mount -n -o rw,X-mount.mkdir \
588-
"$1" \
589-
"$ks_datadir/xfs.dir"
590-
xfs_growfs \
591-
"$ks_datadir/xfs.dir" ||
592-
ret=1
593-
umount -f \
594-
"$ks_datadir/xfs.dir"
595-
;;
596-
f2fs)
597-
resize.f2fs "$1" ||
598-
ret=1
599-
;;
600-
esac
601-
602-
return $ret
552+
local PROG
553+
local fs="" requires="" ret=0 rc=0
554+
555+
PROG="kickstart"
556+
message "command: ${FUNCNAME[0]} $*"
557+
558+
fs="$(blkid --output value --match-tag TYPE -c /dev/null "$1")" ||
559+
return 0
560+
561+
case "$fs" in
562+
ext*) requires="ks_growfs_ext4" ;;
563+
xfs) requires="ks_growfs_xfs" ;;
564+
f2fs) requires="ks_growfs_f2fs" ;;
565+
*)
566+
# resize unsupported.
567+
return 0
568+
;;
569+
esac
570+
571+
ks_check_requires "$requires" ||
572+
return 1
573+
574+
verbose "Increase filesystem to partition size: $1"
575+
576+
case "$fs" in
577+
ext*)
578+
e2fsck -y -p -f "$1" ||
579+
rc="$?"
580+
# 0 - No errors
581+
# 1 - File system errors corrected
582+
# 2 - File system errors corrected, system should be rebooted
583+
[ "$rc" -le 2 ] && resize2fs "$1" ||
584+
ret=1
585+
;;
586+
xfs)
587+
mount -n -o rw,X-mount.mkdir \
588+
"$1" \
589+
"$ks_datadir/xfs.dir"
590+
xfs_growfs \
591+
"$ks_datadir/xfs.dir" ||
592+
ret=1
593+
umount -f \
594+
"$ks_datadir/xfs.dir"
595+
;;
596+
f2fs)
597+
resize.f2fs "$1" ||
598+
ret=1
599+
;;
600+
esac
601+
602+
return $ret
603603
}
604604

605605

0 commit comments

Comments
 (0)