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
70aa3c7f
Unverified
Commit
70aa3c7f
authored
May 10, 2019
by
Christian Brauner
Committed by
GitHub
May 10, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2989 from Rachid-Koucha/patch-8
Redirect error messages to stderr
parents
3e860bda
634ad935
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
lxc-busybox.in
templates/lxc-busybox.in
+7
-7
No files found.
templates/lxc-busybox.in
View file @
70aa3c7f
...
@@ -185,7 +185,7 @@ configure_busybox()
...
@@ -185,7 +185,7 @@ configure_busybox()
# copy busybox in the rootfs
# copy busybox in the rootfs
if
!
cp
"
${
BUSYBOX_EXE
}
"
"
${
rootfs
}
/bin"
;
then
if
!
cp
"
${
BUSYBOX_EXE
}
"
"
${
rootfs
}
/bin"
;
then
echo
"ERROR: Failed to copy busybox binary"
echo
"ERROR: Failed to copy busybox binary"
1>&2
return
1
return
1
fi
fi
...
@@ -287,7 +287,7 @@ eval set -- "$options"
...
@@ -287,7 +287,7 @@ eval set -- "$options"
while
true
while
true
do
do
case
"
$1
"
in
case
"
$1
"
in
-h
|
--help
)
usage
&&
exit
1
;;
-h
|
--help
)
usage
&&
exit
0
;;
-n
|
--name
)
name
=
$2
;
shift
2
;;
-n
|
--name
)
name
=
$2
;
shift
2
;;
-p
|
--path
)
path
=
$2
;
shift
2
;;
-p
|
--path
)
path
=
$2
;
shift
2
;;
--rootfs
)
rootfs
=
$2
;
shift
2
;;
--rootfs
)
rootfs
=
$2
;
shift
2
;;
...
@@ -307,7 +307,7 @@ fi
...
@@ -307,7 +307,7 @@ fi
# Make sure busybox is present
# Make sure busybox is present
BUSYBOX_EXE
=
`
which busybox
`
BUSYBOX_EXE
=
`
which busybox
`
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
echo
"ERROR: Failed to find busybox binary"
echo
"ERROR: Failed to find busybox binary"
1>&2
exit
1
exit
1
fi
fi
...
@@ -322,21 +322,21 @@ if [ -z "$rootfs" ]; then
...
@@ -322,21 +322,21 @@ if [ -z "$rootfs" ]; then
fi
fi
if
!
install_busybox
"
${
rootfs
}
"
"
${
name
}
"
;
then
if
!
install_busybox
"
${
rootfs
}
"
"
${
name
}
"
;
then
echo
"ERROR: Failed to install rootfs"
echo
"ERROR: Failed to install rootfs"
1>&2
exit
1
exit
1
fi
fi
if
!
configure_busybox
"
${
rootfs
}
"
;
then
if
!
configure_busybox
"
${
rootfs
}
"
;
then
echo
"ERROR: Failed to configure busybox"
echo
"ERROR: Failed to configure busybox"
1>&2
exit
1
exit
1
fi
fi
if
!
copy_configuration
"
${
path
}
"
"
${
rootfs
}
"
"
${
name
}
"
;
then
if
!
copy_configuration
"
${
path
}
"
"
${
rootfs
}
"
"
${
name
}
"
;
then
echo
"ERROR: Failed to write config file"
echo
"ERROR: Failed to write config file"
1>&2
exit
1
exit
1
fi
fi
if
!
remap_userns
"
${
path
}
"
;
then
if
!
remap_userns
"
${
path
}
"
;
then
echo
"ERROR: Failed to change idmappings"
echo
"ERROR: Failed to change idmappings"
1>&2
exit
1
exit
1
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