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
3f4a86bf
Commit
3f4a86bf
authored
Nov 13, 2009
by
Michel Normand
Committed by
Daniel Lezcano
Nov 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxc-debian using new lxc.mount.entry keyword
Fix script to not add a fstab file. Signed-off-by:
Michel Normand
<
michel_mno@laposte.net
>
Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
e7938e9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
lxc-debian.in
scripts/lxc-debian.in
+3
-4
No files found.
scripts/lxc-debian.in
View file @
3f4a86bf
...
...
@@ -156,9 +156,7 @@ lxc.cgroup.devices.allow = c 254:0 rwm
EOF
if
[
!
-z
"
$TMPMNTFILE
"
]
;
then
cat
<<
EOF
>>
$CONFFILE
lxc.mount =
$TMPMNTFILE
EOF
cat
$TMPMNTFILE
>>
$CONFFILE
fi
}
...
...
@@ -166,7 +164,7 @@ write_lxc_mounts() {
if
[
!
-z
"
$MNTFILE
"
]
;
then
TMPMNTFILE
=
$(
mktemp
lxc.
$NAME
.XXXXXXXXXX
)
cp
$MNTFILE
$TMPMNTFILE
sed
-e
's/^\(.*\)/lxc.mount.entry=&/'
$MNTFILE
>
$TMPMNTFILE
fi
}
...
...
@@ -316,6 +314,7 @@ create() {
# remove the configuration files
rm
-f
$CONFFILE
rm
-f
$TMPMNTFILE
if
[
"
$RES
"
!=
"0"
]
;
then
echo
"Failed to create '
$NAME
'"
...
...
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