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
ae0aeade
Commit
ae0aeade
authored
Jan 29, 2015
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ubuntu: Drop lucid support and refresh releaess list
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
Acked-by:
Serge E. Hallyn
<
serge.hallyn@ubuntu.com
>
parent
c60edd18
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
23 deletions
+1
-23
lxc-ubuntu-cloud.in
templates/lxc-ubuntu-cloud.in
+1
-1
lxc-ubuntu.in
templates/lxc-ubuntu.in
+0
-22
No files found.
templates/lxc-ubuntu-cloud.in
View file @
ae0aeade
...
@@ -25,7 +25,7 @@ STATE_DIR="@LOCALSTATEDIR@"
...
@@ -25,7 +25,7 @@ STATE_DIR="@LOCALSTATEDIR@"
HOOK_DIR
=
"@LXCHOOKDIR@"
HOOK_DIR
=
"@LXCHOOKDIR@"
CLONE_HOOK_FN
=
"
$HOOK_DIR
/ubuntu-cloud-prep"
CLONE_HOOK_FN
=
"
$HOOK_DIR
/ubuntu-cloud-prep"
LXC_TEMPLATE_CONFIG
=
"@LXCTEMPLATECONFIG@"
LXC_TEMPLATE_CONFIG
=
"@LXCTEMPLATECONFIG@"
KNOWN_RELEASES
=
"
lucid precise quantal saucy trusty
"
KNOWN_RELEASES
=
"
precise trusty utopic vivid
"
skip_arch_check
=
${
UCTEMPLATE_SKIP_ARCH_CHECK
:-
0
}
skip_arch_check
=
${
UCTEMPLATE_SKIP_ARCH_CHECK
:-
0
}
# Make sure the usual locations are in PATH
# Make sure the usual locations are in PATH
...
...
templates/lxc-ubuntu.in
View file @
ae0aeade
...
@@ -536,28 +536,6 @@ exit 101
...
@@ -536,28 +536,6 @@ exit 101
EOF
EOF
chmod
+x
$rootfs
/usr/sbin/policy-rc.d
chmod
+x
$rootfs
/usr/sbin/policy-rc.d
if
[
!
-f
$rootfs
/etc/init/container-detect.conf
]
;
then
# Make sure we have a working resolv.conf
cresolvonf
=
"
${
rootfs
}
/etc/resolv.conf"
mv
$cresolvonf
${
cresolvonf
}
.lxcbak
cat
/etc/resolv.conf
>
${
cresolvonf
}
# for lucid, if not trimming, then add the ubuntu-virt
# ppa and install lxcguest
if
[
$release
=
"lucid"
]
;
then
chroot
$rootfs
apt-get update
install_packages
$rootfs
"python-software-properties"
chroot
$rootfs
add-apt-repository ppa:ubuntu-virt/ppa
fi
chroot
$rootfs
apt-get update
chroot
$rootfs
apt-get
install
--force-yes
-y
lxcguest
# Restore old resolv.conf
rm
-f
${
cresolvonf
}
mv
${
cresolvonf
}
.lxcbak
${
cresolvonf
}
fi
# If the container isn't running a native architecture, setup multiarch
# If the container isn't running a native architecture, setup multiarch
if
[
-x
"
$(
ls
-1
${
rootfs
}
/usr/bin/qemu-
*
-static
2>/dev/null
)
"
]
;
then
if
[
-x
"
$(
ls
-1
${
rootfs
}
/usr/bin/qemu-
*
-static
2>/dev/null
)
"
]
;
then
dpkg_version
=
$(
chroot
$rootfs
dpkg-query
-W
-f
=
'${Version}'
dpkg
)
dpkg_version
=
$(
chroot
$rootfs
dpkg-query
-W
-f
=
'${Version}'
dpkg
)
...
...
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