mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
fstab split into fstab.[sys|disk|extra]
This commit is contained in:
parent
4d20ad0c86
commit
c4f4127a69
4
board/common/overlay/etc/fstab.disk
Normal file
4
board/common/overlay/etc/fstab.disk
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# <file system> <mount pt> <type> <options> <dump> <pass>
|
||||||
|
/dev/mmcblk0p1 /boot vfat ro,defaults 0 0
|
||||||
|
/dev/mmcblk0p3 /data ext4 defaults,noatime 0 0
|
||||||
|
|
2
board/common/overlay/etc/fstab.extra
Normal file
2
board/common/overlay/etc/fstab.extra
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# <file system> <mount pt> <type> <options> <dump> <pass>
|
||||||
|
|
@ -4,6 +4,4 @@ devpts /dev/pts devpts gid=5,mode=620 0 0
|
|||||||
tmpfs /dev/shm tmpfs mode=0777 0 0
|
tmpfs /dev/shm tmpfs mode=0777 0 0
|
||||||
tmpfs /tmp tmpfs mode=1777 0 0
|
tmpfs /tmp tmpfs mode=1777 0 0
|
||||||
sysfs /sys sysfs defaults 0 0
|
sysfs /sys sysfs defaults 0 0
|
||||||
/dev/mmcblk0p1 /boot vfat ro,defaults 0 0
|
|
||||||
/dev/mmcblk0p3 /data ext4 defaults,noatime 0 0
|
|
||||||
|
|
@ -24,7 +24,7 @@ case "$1" in
|
|||||||
test $? == 0 && msg_done || msg_fail
|
test $? == 0 && msg_done || msg_fail
|
||||||
|
|
||||||
msg_begin "Mounting data partition"
|
msg_begin "Mounting data partition"
|
||||||
mount /data
|
mount -T /etc/fstab.disk /data
|
||||||
test $? == 0 && msg_done || msg_fail
|
test $? == 0 && msg_done || msg_fail
|
||||||
|
|
||||||
msg_begin "Creating required data files"
|
msg_begin "Creating required data files"
|
||||||
@ -39,7 +39,8 @@ case "$1" in
|
|||||||
msg_done
|
msg_done
|
||||||
|
|
||||||
# mount other partitions depending on data
|
# mount other partitions depending on data
|
||||||
mount -a
|
mount -T /etc/fstab.disk -a
|
||||||
|
mount -T /etc/fstab.extra -a
|
||||||
;;
|
;;
|
||||||
|
|
||||||
stop)
|
stop)
|
||||||
|
@ -4,7 +4,8 @@ test -n "$os_version" || source /etc/init.d/base
|
|||||||
|
|
||||||
mount_fs() {
|
mount_fs() {
|
||||||
msg_begin "Mounting filesystems"
|
msg_begin "Mounting filesystems"
|
||||||
/bin/mount -a
|
/bin/mount -T /etc/fstab.disk -a
|
||||||
|
/bin/mount -T /etc/fstab.extra -a
|
||||||
test $? == 0 && msg_done || msg_fail
|
test $? == 0 && msg_done || msg_fail
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
/bin/mkdir -p /dev/pts
|
/bin/mkdir -p /dev/pts
|
||||||
/bin/mkdir -p /dev/shm
|
/bin/mkdir -p /dev/shm
|
||||||
/bin/mount --make-shared /
|
/bin/mount --make-shared /
|
||||||
/bin/mount -a -t proc
|
/bin/mount -T /etc/fstab.sys -a -t proc
|
||||||
/bin/mount -a -t devpts
|
/bin/mount -T /etc/fstab.sys -a -t devpts
|
||||||
/bin/mount -a -t tmpfs
|
/bin/mount -T /etc/fstab.sys -a -t tmpfs
|
||||||
/bin/mount -a -t sysfs
|
/bin/mount -T /etc/fstab.sys -a -t sysfs
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user