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
f2d63d7a
Unverified
Commit
f2d63d7a
authored
Jan 10, 2016
by
Terzeus S. Dominguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add openSUSE Leap release in opensuse template
Signed-off-by:
Terzeus S. Dominguez
<
zeus@dmgznet.com
>
parent
c7ec3de8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
lxc-opensuse.in
templates/lxc-opensuse.in
+19
-3
No files found.
templates/lxc-opensuse.in
View file @
f2d63d7a
...
...
@@ -136,8 +136,13 @@ download_opensuse()
echo
"Downloading opensuse minimal ..."
mkdir
-p
"
$cache
/partial-
$arch
-packages"
zypper
--quiet
--root
$cache
/partial-
$arch
-packages
--non-interactive
ar http://download.opensuse.org/distribution/
$DISTRO
/repo/oss/ repo-oss
||
return
1
zypper
--quiet
--root
$cache
/partial-
$arch
-packages
--non-interactive
ar http://download.opensuse.org/update/
$DISTRO
/ update
||
return
1
zypper
--quiet
--root
$cache
/partial-
$arch
-packages
--non-interactive
--gpg-auto-import-keys
update
||
return
1
# Leap update repos were rearranged
if
[
$DISTRO
==
"leap/42.1"
]
;
then
zypper
--quiet
--root
$cache
/partial-
$arch
-packages
--non-interactive
ar http://download.opensuse.org/update/
$DISTRO
/oss/ update
||
return
1
else
zypper
--quiet
--root
$cache
/partial-
$arch
-packages
--non-interactive
ar http://download.opensuse.org/update/
$DISTRO
/ update
||
return
1
fi
zypper
--quiet
--root
$cache
/partial-
$arch
-packages
--non-interactive
--gpg-auto-import-keys
update
||
return
1
zypper
--root
$cache
/partial-
$arch
-packages
--non-interactive
in
--auto-agree-with-licenses
--download-only
zypper lxc patterns-openSUSE-base bash iputils
sed tar
rsyslog
||
return
1
cat
>
$cache
/partial-
$arch
-packages
/opensuse.conf
<<
EOF
Preinstall: aaa_base bash coreutils diffutils
...
...
@@ -157,7 +162,7 @@ Support: ncurses-utils
Support: iputils
Support: udev
Support: netcfg
Support:
dhcpcd
hwinfo insserv-compat module-init-tools openSUSE-release openssh
Support: hwinfo insserv-compat module-init-tools openSUSE-release openssh
Support: pwdutils rpcbind sysconfig
Ignore: rpm:suse-build-key,build-key
...
...
@@ -169,6 +174,12 @@ EOF
echo
"Support: python3-base"
>>
$cache
/partial-
$arch
-packages
/opensuse.conf
fi
# dhcpcd is not in the default repos with Leap 42.1
if
[
$DISTRO
!=
"leap/42.1"
]
then
echo
"Support: dhcpcd"
>>
$cache
/partial-
$arch
-packages
/opensuse.conf
fi
if
[
"
$arch
"
=
"i686"
]
;
then
mkdir
-p
$cache
/partial-
$arch
-packages
/var/cache/zypp/packages/repo-oss/suse/i686/
for
i
in
"
$cache
/partial-
$arch
-packages/var/cache/zypp/packages/repo-oss/suse/i586/*"
;
do
...
...
@@ -444,6 +455,11 @@ else
echo
"Selected openSUSE 13.2"
;;
42.1|leap/42.1|leap
)
echo
"Selected openSUSE Leap 42.1"
DISTRO
=
"leap/42.1"
;;
*
)
echo
"You have chosen an invalid release, quitting..."
exit
1
...
...
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