Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
build-system
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
build-system
Commits
75d1dcbc
Commit
75d1dcbc
authored
Nov 02, 2021
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We should use bind mounted /home /root /var instead of symlinks during build
parent
21b7dd10
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
126 additions
and
26 deletions
+126
-26
Makefile.common
Makefile.common
+9
-3
common.xml
common.xml
+117
-23
No files found.
Makefile.common
View file @
75d1dcbc
...
...
@@ -49,17 +49,23 @@ $(PACKAGES):
mount
-t
proc /proc mnt/proc
mount
-t
sysfs /sysfs mnt/sys
mount
-t
tmpfs /tmp mnt/tmp
mount
-t
tmpfs /tmp mnt/var/tmp
mount /dev/
$(SECONDARY)
1 mnt/build
if
[
-d
mnt/data
]
;
then
\
mount /dev/
$(DISK)
4 mnt/data
;
\
mount
--bind
mnt/data/home mnt/home
;
\
mount
--bind
mnt/data/root mnt/root
;
\
mount
--bind
mnt/data/var mnt/var
;
\
fi
mount
-t
tmpfs /tmp mnt/var/tmp
mount /dev/
$(SECONDARY)
1 mnt/build
chroot
mnt
$(MAKE)
-C
$(current_dir)
$(
firstword
$(
subst
., ,
$@
))
$(
word
2,
$(
subst
., ,
$@
))
umount
-l
mnt/var/tmp
if
[
-d
mnt/data
]
&&
[[
$$
(
findmnt
-M
mnt/data
)
]]
;
then
\
umount
-l
mnt/var
;
\
umount
-l
mnt/root
;
\
umount
-l
mnt/home
;
\
umount
-l
mnt/data
;
\
fi
umount
-l
mnt/build
umount
-l
mnt/var/tmp
umount
-l
mnt/tmp
umount
-l
mnt/sys
umount
-l
mnt/proc
...
...
common.xml
View file @
75d1dcbc
This diff is collapsed.
Click to expand it.
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