mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
Mount fs from /etc/fstab.overlay only if overlayfs supported
This commit is contained in:
parent
c97c991cb2
commit
4aa87f28e0
@ -1,4 +1,3 @@
|
||||
# <file system> <mount pt> <type> <options> <dump> <pass>
|
||||
/dev/mmcblk0p1 /boot vfat ro,defaults 0 0
|
||||
/dev/mmcblk0p3 /data ext4 defaults,noatime 0 0
|
||||
overlay /usr overlay lowerdir=/usr,upperdir=/data/usr,workdir=/data/.overlay 0 0
|
||||
|
2
board/common/overlay/etc/fstab.overlay
Normal file
2
board/common/overlay/etc/fstab.overlay
Normal file
@ -0,0 +1,2 @@
|
||||
# <file system> <mount pt> <type> <options> <dump> <pass>
|
||||
overlay /usr overlay lowerdir=/usr,upperdir=/data/usr,workdir=/data/.overlay-usr 0 0
|
@ -6,6 +6,7 @@ mount_fs() {
|
||||
msg_begin "Mounting filesystems"
|
||||
/bin/mount -T /etc/fstab.disk -a &&
|
||||
/bin/mount -T /etc/fstab.extra -a &&
|
||||
if grep -qw overlay /proc/filesystems; then /bin/mount -T /data/etc/fstab.overlay -a; fi &&
|
||||
if [[ -r /data/etc/fstab.user ]]; then /bin/mount -T /data/etc/fstab.user -a; fi
|
||||
|
||||
test $? == 0 && msg_done || msg_fail
|
||||
|
Loading…
x
Reference in New Issue
Block a user