Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Chen Yisong
lxc
Commits
f7512464
Commit
f7512464
authored
Aug 28, 2015
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #643 from raspberrypython/issue-616
Test dpkg for multiarch support in lxc-debian template
parents
7b6753e7
92824ee0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lxc-debian.in
templates/lxc-debian.in
+4
-2
No files found.
templates/lxc-debian.in
View file @
f7512464
...
...
@@ -385,8 +385,10 @@ EOF
# If the container isn't running a native architecture, setup multiarch
if
[
"
${
arch
}
"
!=
"
${
hostarch
}
"
]
;
then
mkdir
-p
${
rootfs
}
/etc/dpkg/dpkg.cfg.d
echo
"foreign-architecture
${
hostarch
}
"
>
${
rootfs
}
/etc/dpkg/dpkg.cfg.d/lxc-multiarch
# Test if dpkg supports multiarch
if
!
chroot
$rootfs
dpkg
--print-foreign-architecture
2>&1
;
then
chroot
$rootfs
dpkg
--add-architecture
${
hostarch
}
fi
fi
# Write a new sources.list containing both native and multiarch entries
...
...
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