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
6a1fcb8f
Commit
6a1fcb8f
authored
Feb 23, 2017
by
Stéphane Graber
Committed by
GitHub
Feb 23, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1442 from mkeeler/master
Fix issue with the clonehostname hook not working for overlayfs snapshot clones
parents
4fbf4a31
cd85f31e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
clonehostname
hooks/clonehostname
+3
-3
No files found.
hooks/clonehostname
View file @
6a1fcb8f
...
@@ -19,9 +19,9 @@
...
@@ -19,9 +19,9 @@
# Note that /etc/hostname is updated by lxc itself
# Note that /etc/hostname is updated by lxc itself
for
file
in
\
for
file
in
\
$LXC_ROOTFS_
PATH
/etc/sysconfig/network
\
$LXC_ROOTFS_
MOUNT
/etc/sysconfig/network
\
$LXC_ROOTFS_
PATH
/etc/sysconfig/network-scripts/ifcfg-
*
\
$LXC_ROOTFS_
MOUNT
/etc/sysconfig/network-scripts/ifcfg-
*
\
$LXC_ROOTFS_
PATH
/etc/hosts
;
$LXC_ROOTFS_
MOUNT
/etc/hosts
;
do
do
if
[
-f
$file
]
;
then
if
[
-f
$file
]
;
then
sed
-i
"s|
$LXC_SRC_NAME
|
$LXC_NAME
|"
$file
sed
-i
"s|
$LXC_SRC_NAME
|
$LXC_NAME
|"
$file
...
...
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