Skip to content

Commit

Permalink
automount: use ntfs3 driver for ntfs volumes -- makes partition write…
Browse files Browse the repository at this point in the history
…able
  • Loading branch information
stolen committed Dec 26, 2024
1 parent 886cfcf commit bff006f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/rocknix/sources/scripts/automount
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@ function mount_games() {
;;
esac

# busybox has some weird behaviour with helpers.
# Despite mount.ntfs is present, it is not used, so just a stupid rewrite to use newer kernel ntfs3 driver
case ${FSTYPE} in
ntfs) MOUNT_ARGS="-t ntfs3" ;;
*) true ;;
esac

if [ ! -d "${MOUNT_PATH}" ]
then
log $0 "Create directory ${MOUNT_PATH}"
Expand All @@ -160,7 +167,7 @@ function mount_games() {
fsck -Mly ${1} >/dev/null 2>&1

log $0 "Mounting ${1} on ${MOUNT_PATH}"
/usr/bin/busybox mount ${1} ${MOUNT_PATH} >/dev/null 2>&1
/usr/bin/busybox mount ${MOUNT_ARGS} ${1} ${MOUNT_PATH} >/dev/null 2>&1
fi
start_ms external
create_game_dirs
Expand Down

0 comments on commit bff006f

Please sign in to comment.