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
d7c685c6
Commit
d7c685c6
authored
Nov 21, 2017
by
Felix Abecassis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxc-oci: import common.conf and userns.conf
Signed-off-by:
Felix Abecassis
<
fabecassis@nvidia.com
>
parent
996202e7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
lxc-oci.in
templates/lxc-oci.in
+10
-0
No files found.
templates/lxc-oci.in
View file @
d7c685c6
...
@@ -34,6 +34,8 @@ for bin in skopeo umoci jq; do
...
@@ -34,6 +34,8 @@ for bin in skopeo umoci jq; do
fi
fi
done
done
LXC_TEMPLATE_CONFIG
=
"@LXCTEMPLATECONFIG@"
# Some useful functions
# Some useful functions
cleanup
()
{
cleanup
()
{
if
[
-d
"
$DOWNLOAD_TEMP
"
]
;
then
if
[
-d
"
$DOWNLOAD_TEMP
"
]
;
then
...
@@ -233,6 +235,14 @@ while read -r line; do
...
@@ -233,6 +235,14 @@ while read -r line; do
echo
"lxc.environment =
${
line
}
"
>>
"
${
LXC_CONF_FILE
}
"
echo
"lxc.environment =
${
line
}
"
>>
"
${
LXC_CONF_FILE
}
"
done
<<<
"
${
environment
}
"
done
<<<
"
${
environment
}
"
if
[
-e
"
${
LXC_TEMPLATE_CONFIG
}
/common.conf"
]
;
then
echo
"lxc.include =
${
LXC_TEMPLATE_CONFIG
}
/common.conf"
>>
"
${
LXC_CONF_FILE
}
"
fi
if
[
-n
"
$LXC_MAPPED_UID
"
]
&&
[
"
$LXC_MAPPED_UID
"
!=
"-1"
]
&&
[
-e
"
${
LXC_TEMPLATE_CONFIG
}
/userns.conf"
]
;
then
echo
"lxc.include =
${
LXC_TEMPLATE_CONFIG
}
/userns.conf"
>>
"
${
LXC_CONF_FILE
}
"
fi
echo
"lxc.uts.name =
${
LXC_NAME
}
"
>>
"
${
LXC_CONF_FILE
}
"
echo
"lxc.uts.name =
${
LXC_NAME
}
"
>>
"
${
LXC_CONF_FILE
}
"
# set the hostname
# set the hostname
cat
<<
EOF
>
${
LXC_ROOTFS
}
/etc/hostname
cat
<<
EOF
>
${
LXC_ROOTFS
}
/etc/hostname
...
...
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