Merge pull request #3805 from HiassofT/le92-systemd-fix-fs-corruption

[le92] fix filesystem corruption on reboot/shutdown
This commit is contained in:
MilhouseVH 2019-09-18 17:18:44 +01:00 committed by GitHub
commit 97c2967826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 16 deletions

View File

@ -1,15 +0,0 @@
diff -Naur a/src/core/mount-setup.c b/src/core/mount-setup.c
--- a/src/core/mount-setup.c 2016-07-17 21:54:48.947510924 +0100
+++ b/src/core/mount-setup.c 2016-07-17 21:56:02.708552744 +0100
@@ -121,7 +121,10 @@
/* Container bind mounts */
"/proc/sys\0"
"/dev/console\0"
- "/proc/kmsg\0";
+ "/proc/kmsg\0"
+ /* LibreELEC: always busy */
+ "/flash\0"
+ "/storage\0";
bool mount_point_is_api(const char *path) {
unsigned i;

View File

@ -0,0 +1,2 @@
[Unit]
DefaultDependencies=no

View File

@ -82,7 +82,7 @@ if [ "${TARGET}" = "target" ] ; then
if [ -d ${PKG_TMP_DIR}/system.d ]; then
mkdir -p ${INSTALL}/usr/lib/systemd/system
cp ${PKG_TMP_DIR}/system.d/*.* ${INSTALL}/usr/lib/systemd/system
cp -Pr ${PKG_TMP_DIR}/system.d/*.* ${INSTALL}/usr/lib/systemd/system
fi
if [ -d ${PKG_TMP_DIR}/udev.d ]; then