mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-04-19 12:57:16 +00:00
Merge pull request #58 from rwky/dev
Optionally automatically fsck data paritition on boot
This commit is contained in:
commit
5c3c533966
@ -41,7 +41,16 @@ case "$1" in
|
||||
|
||||
msg_done "${disk_dev}"
|
||||
|
||||
test -b ${data_dev} && exit 0
|
||||
if [ -b ${data_dev} ]
|
||||
then
|
||||
if grep -q 'fsck.mode=force' /proc/cmdline
|
||||
then
|
||||
/sbin/e2fsck -fy ${data_dev}
|
||||
else
|
||||
/sbin/e2fsck -y ${data_dev}
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
msg_begin "Creating data partition"
|
||||
data_start=$((DATA_OFFS * 2048))
|
||||
|
Loading…
x
Reference in New Issue
Block a user