Add fsck.exfat and set fsck.extX instead e2fsck for extX filesystems.

This commit is contained in:
vermaden 2018-12-10 10:53:38 +01:00
parent d24e6d44dc
commit 1f8a1cb18e
2 changed files with 13 additions and 3 deletions

4
README
View File

@ -45,6 +45,10 @@ C H A N G E L O G
VERSION 1.6.0 (CURRENT) VERSION 1.6.0 (CURRENT)
Fix long boot with devd(8) because of ugen(4) devices. Fix long boot with devd(8) because of ugen(4) devices.
Add fsck.exfat to the exFAT filesystem.
Set fsck.ext2 instead of e2fsck to the ext2 filesystem.
Set fsck.ext3 instead of e2fsck to the ext3 filesystem.
Set fsck.ext4 instead of e2fsck to the ext4 filesystem.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------

View File

@ -568,7 +568,7 @@ case ${1} in
(EXT2) (EXT2)
__create_mount_point ${DEV} __create_mount_point ${DEV}
__wait_for_device ${DEV} __wait_for_device ${DEV}
e2fsck -y ${DEV} \ fsck.ext2 -y ${DEV} \
| while read LINE | while read LINE
do do
__log "${DEV}: fsck.ext2 ${LINE}" __log "${DEV}: fsck.ext2 ${LINE}"
@ -587,7 +587,7 @@ case ${1} in
(EXT3) (EXT3)
__create_mount_point ${DEV} __create_mount_point ${DEV}
__wait_for_device ${DEV} __wait_for_device ${DEV}
e2fsck -y ${DEV} \ fsck.ext3 -y ${DEV} \
| while read LINE | while read LINE
do do
__log "${DEV}: fsck.ext3 ${LINE}" __log "${DEV}: fsck.ext3 ${LINE}"
@ -606,7 +606,7 @@ case ${1} in
(EXT4) (EXT4)
__create_mount_point ${DEV} __create_mount_point ${DEV}
__wait_for_device ${DEV} __wait_for_device ${DEV}
e2fsck -y ${DEV} \ fsck.ext4 -y ${DEV} \
| while read LINE | while read LINE
do do
__log "${DEV}: fsck.ext4 ${LINE}" __log "${DEV}: fsck.ext4 ${LINE}"
@ -625,6 +625,12 @@ case ${1} in
(EXFAT) (EXFAT)
__create_mount_point ${DEV} __create_mount_point ${DEV}
__wait_for_device ${DEV} __wait_for_device ${DEV}
fsck.exfat ${DEV} \
| while read LINE
do
__log "${DEV}: fsck.exfat ${LINE}"
done
__wait_for_device ${DEV}
if [ "${USER}" != 0 ] if [ "${USER}" != 0 ]
then then
USEROPTS="-o uid=${UID} -o gid=${GID}" USEROPTS="-o uid=${UID} -o gid=${GID}"