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
9114b5fd
Commit
9114b5fd
authored
Aug 28, 2015
by
David Noyes
Committed by
Stéphane Graber
Aug 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Alternative test for dpkg multiarch support in lxc-debian template
Signed-off-by:
David Noyes
<
david.j.noyes@gmail.com
>
parent
49e7702b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
lxc-debian.in
templates/lxc-debian.in
+2
-6
No files found.
templates/lxc-debian.in
View file @
9114b5fd
...
@@ -383,13 +383,9 @@ EOF
...
@@ -383,13 +383,9 @@ EOF
# If the container isn't running a native architecture, setup multiarch
# If the container isn't running a native architecture, setup multiarch
if
[
"
${
arch
}
"
!=
"
${
hostarch
}
"
]
;
then
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
# Test if dpkg supports multiarch
if
chroot
$rootfs
dpkg
-l
dpkg 2>&1 |
grep
-q
"unknown option 'foreign-architecture'"
;
then
if
!
chroot
$rootfs
dpkg
--print-foreign-architecture
2>&1
;
then
echo
"dpkg does not support multiarch: removing multiarch configuration file"
chroot
$rootfs
dpkg
--add-architecture
${
hostarch
}
rm
${
rootfs
}
/etc/dpkg/dpkg.cfg.d/lxc-multiarch
fi
fi
fi
fi
...
...
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