Skip to content

Commit

Permalink
Added f2fs support for rootfs
Browse files Browse the repository at this point in the history
  • Loading branch information
Evil Azrael authored and guysoft committed Aug 18, 2024
1 parent 72ca9ba commit 02bb0ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
zip \
xz-utils \
lsof \
f2fs-tools \
&& rm -rf /var/lib/apt/lists/* \
&& apt -qyy clean

Expand Down
3 changes: 3 additions & 0 deletions src/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ FDISK
if ( file -Ls $LODEV | grep -qi ext ); then
e2fsck -fy $LODEV
resize2fs -p $LODEV
elif ( file -Ls $LODEV | grep -qi f2fs ); then
fsck.f2fs -f $LODEV
resize.f2fs $LODEV
elif ( file -Ls $LODEV | grep -qi btrfs ); then
btrfs check --repair $LODEV
if ( mount | grep $LODEV ); then
Expand Down

0 comments on commit 02bb0ec

Please sign in to comment.