The games partition should always be clean, or it won't mount - always fsck it.
This commit is contained in:
parent
92de823463
commit
a9b70aaa8c
1 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,10 @@ mount_games() {
|
||||||
[ -e "${1}" ] && \
|
[ -e "${1}" ] && \
|
||||||
[ ! -e "/storage/.please_resize_me" ]
|
[ ! -e "/storage/.please_resize_me" ]
|
||||||
then
|
then
|
||||||
|
### Udevil shouldn't mount it this early, but just in-case.
|
||||||
|
umount /var/media/*
|
||||||
|
log $0 "FSCK ${1}"
|
||||||
|
fsck -Mly ${1}
|
||||||
log $0 "Mounting ${1} on /storage/roms"
|
log $0 "Mounting ${1} on /storage/roms"
|
||||||
/usr/bin/busybox mount ${1} /storage/roms >/dev/null 2>&1
|
/usr/bin/busybox mount ${1} /storage/roms >/dev/null 2>&1
|
||||||
/usr/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/JELOS-system-dirs.conf >/dev/null 2>&1
|
/usr/bin/systemd-tmpfiles --create /usr/lib/tmpfiles.d/JELOS-system-dirs.conf >/dev/null 2>&1
|
||||||
|
|
Loading…
Reference in a new issue