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
8369db51
Commit
8369db51
authored
Mar 12, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make: only mount once to avoid panics
parent
875d5761
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
Makefile
Makefile
+18
-12
No files found.
Makefile
View file @
8369db51
...
@@ -7,17 +7,27 @@ all:
...
@@ -7,17 +7,27 @@ all:
force
:
force
:
WRKDIR
?=
${
.CURDIR
}
/work
WRKSRC
=
${
WRKDIR
}
/src
PKGDIR
=
${
WRKDIR
}
/pkg
mount
:
force
mount
:
force
@
${
.CURDIR
}
/scripts/version.sh
>
\
@
if
[
!
-f
${
WRKDIR
}
/.mount_done
]
;
then
\
${
.CURDIR
}
/src/opnsense/version/opnsense
echo
"Enabling core.git live mount..."
;
\
mount_unionfs
${
.CURDIR
}
/src /usr/local
${
.CURDIR
}
/scripts/version.sh
>
\
@
service configd restart
${
.CURDIR
}
/src/opnsense/version/opnsense
;
\
mount_unionfs
${
.CURDIR
}
/src /usr/local
;
\
touch
${
WRKDIR
}
/.mount_done
;
\
service configd restart
;
\
fi
umount
:
force
umount
:
force
umount
-f
"<above>:
${
.CURDIR
}
/src"
@
if
[
-f
${
WRKDIR
}
/.mount_done
]
;
then
\
@
service configd restart
echo
"Disabling core.git live mount..."
;
\
umount
-f
"<above>:
${
.CURDIR
}
/src"
;
\
remount
:
umount mount
rm
${
WRKDIR
}
/.mount_done
;
\
service configd restart
;
\
fi
.if
${GIT}
!=
true
.if
${GIT}
!=
true
CORE_COMMIT
!=
${
.CURDIR
}
/scripts/version.sh
CORE_COMMIT
!=
${
.CURDIR
}
/scripts/version.sh
...
@@ -166,10 +176,6 @@ plist: force
...
@@ -166,10 +176,6 @@ plist: force
@
${
MAKE
}
-C
${
.CURDIR
}
/lang plist
@
${
MAKE
}
-C
${
.CURDIR
}
/lang plist
@
${
MAKE
}
-C
${
.CURDIR
}
/src plist
@
${
MAKE
}
-C
${
.CURDIR
}
/src plist
WRKDIR
?=
${
.CURDIR
}
/work
WRKSRC
=
${
WRKDIR
}
/src
PKGDIR
=
${
WRKDIR
}
/pkg
package
:
force
package
:
force
@
${
PKG
}
info gettext-tools
>
/dev/null
@
${
PKG
}
info gettext-tools
>
/dev/null
@
${
PKG
}
info git
>
/dev/null
@
${
PKG
}
info git
>
/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