Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
46fc7fe3
Commit
46fc7fe3
authored
Dec 02, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: makefs -> mkimg migration seems to fix this, yay!
parent
28b058c8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
rc
src/etc/rc
+3
-11
No files found.
src/etc/rc
View file @
46fc7fe3
...
@@ -77,6 +77,9 @@ while [ ${attempts} -lt 3 ]; do
...
@@ -77,6 +77,9 @@ while [ ${attempts} -lt 3 ]; do
attempts
=
$((
attempts+1
))
attempts
=
$((
attempts+1
))
done
done
# clear growfs marker now that we are read/write
rm
-f
${
GROWFS_MARKER
}
# see if / is writable (aka. non-LiveCD boot)
# see if / is writable (aka. non-LiveCD boot)
if
_tmpdir
=
$(
mktemp
-d
-q
/.diskless.XXXXXX
)
;
then
if
_tmpdir
=
$(
mktemp
-d
-q
/.diskless.XXXXXX
)
;
then
# only remove the directory
# only remove the directory
...
@@ -89,17 +92,6 @@ else
...
@@ -89,17 +92,6 @@ else
done
done
fi
fi
if
[
-f
${
GROWFS_MARKER
}
]
;
then
# clean up the growfs marker to not trigger it anymore
rm
${
GROWFS_MARKER
}
# while here, why not unbreak the next boot...
FS_DEV
=
$(
glabel status
-as
|
grep
ufs/OPNsense |
awk
'{ print $3 }'
)
if
[
-n
"
${
FS_DEV
}
"
]
;
then
echo
"/dev/
${
FS_DEV
}
/ ufs rw,async,noatime 1 1"
>
/etc/fstab
fi
fi
# regenerate groups and users for base
# regenerate groups and users for base
/usr/local/etc/rc.recover base
>
/dev/null
/usr/local/etc/rc.recover base
>
/dev/null
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment