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
8983aa6e
Unverified
Commit
8983aa6e
authored
Oct 02, 2013
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fedora: Use consistent tab/space indent
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
431fdc42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
lxc-fedora.in
templates/lxc-fedora.in
+8
-8
No files found.
templates/lxc-fedora.in
View file @
8983aa6e
...
@@ -190,8 +190,8 @@ configure_fedora_systemd()
...
@@ -190,8 +190,8 @@ configure_fedora_systemd()
sed
-e
's/^ConditionPathExists=/# ConditionPathExists=/'
\
sed
-e
's/^ConditionPathExists=/# ConditionPathExists=/'
\
-e
's/After=dev-%i.device/After=/'
\
-e
's/After=dev-%i.device/After=/'
\
<
${
rootfs_path
}
/lib/systemd/system/getty
\@
.service
\
<
${
rootfs_path
}
/lib/systemd/system/getty
\@
.service
\
>
${
rootfs_path
}
/etc/systemd/system/getty
\@
.service
>
${
rootfs_path
}
/etc/systemd/system/getty
\@
.service
# Setup getty service on the 4 ttys we are going to allow in the
# Setup getty service on the 4 ttys we are going to allow in the
# default config. Number should match lxc.tty
# default config. Number should match lxc.tty
(
cd
${
rootfs_path
}
/etc/systemd/system/getty.target.wants
(
cd
${
rootfs_path
}
/etc/systemd/system/getty.target.wants
...
@@ -222,13 +222,13 @@ download_fedora()
...
@@ -222,13 +222,13 @@ download_fedora()
# delay between attempts...
# delay between attempts...
for
trynumber
in
1 2 3 4
;
do
for
trynumber
in
1 2 3 4
;
do
[
$trynumber
!=
1
]
&&
echo
"Trying again..."
[
$trynumber
!=
1
]
&&
echo
"Trying again..."
# This code is mildly "brittle" in that it assumes a certain
# This code is mildly "brittle" in that it assumes a certain
# page format and parsing HTML. I've done worse. :-P
# page format and parsing HTML. I've done worse. :-P
MIRROR_URLS
=
$(
curl
-s
-S
-f
"
$MIRRORLIST_URL
"
|
sed
-e
'/^http:/!d'
-e
'2,6!d'
)
MIRROR_URLS
=
$(
curl
-s
-S
-f
"
$MIRRORLIST_URL
"
|
sed
-e
'/^http:/!d'
-e
'2,6!d'
)
if
[
$?
-eq
0
]
&&
[
-n
"
$MIRROR_URLS
"
]
if
[
$?
-eq
0
]
&&
[
-n
"
$MIRROR_URLS
"
]
then
then
break
break
fi
fi
echo
"Failed to get a mirror on try
$trynumber
"
echo
"Failed to get a mirror on try
$trynumber
"
sleep
3
sleep
3
...
@@ -237,7 +237,7 @@ download_fedora()
...
@@ -237,7 +237,7 @@ download_fedora()
# This will fall through if we didn't get any URLS above
# This will fall through if we didn't get any URLS above
for
MIRROR_URL
in
${
MIRROR_URLS
}
for
MIRROR_URL
in
${
MIRROR_URLS
}
do
do
if
[
"
$release
"
-eq
"19"
]
;
then
if
[
"
$release
"
-eq
"19"
]
;
then
RELEASE_URL
=
"
$MIRROR_URL
/Packages/f/fedora-release-
$release
-2.noarch.rpm"
RELEASE_URL
=
"
$MIRROR_URL
/Packages/f/fedora-release-
$release
-2.noarch.rpm"
elif
[
"
$release
"
-gt
"16"
]
;
then
elif
[
"
$release
"
-gt
"16"
]
;
then
RELEASE_URL
=
"
$MIRROR_URL
/Packages/f"
RELEASE_URL
=
"
$MIRROR_URL
/Packages/f"
...
@@ -246,9 +246,9 @@ download_fedora()
...
@@ -246,9 +246,9 @@ download_fedora()
fi
fi
echo
"Fetching rpm name from
$RELEASE_URL
..."
echo
"Fetching rpm name from
$RELEASE_URL
..."
# This code is mildly "brittle" in that it assumes a certain directory
# This code is mildly "brittle" in that it assumes a certain directory
# page format and parsing HTML. I've done worse. :-P
# page format and parsing HTML. I've done worse. :-P
RELEASE_RPM
=
$(
curl
-L
-f
"
$RELEASE_URL
"
|
sed
-e
"/fedora-release-
${
release
}
-/!d"
-e
's/.*<a href=\"//'
-e
's/\">.*//'
)
RELEASE_RPM
=
$(
curl
-L
-f
"
$RELEASE_URL
"
|
sed
-e
"/fedora-release-
${
release
}
-/!d"
-e
's/.*<a href=\"//'
-e
's/\">.*//'
)
if
[
$?
-ne
0
-o
"
${
RELEASE_RPM
}
"
=
""
]
;
then
if
[
$?
-ne
0
-o
"
${
RELEASE_RPM
}
"
=
""
]
;
then
echo
"Failed to identify fedora release rpm."
echo
"Failed to identify fedora release rpm."
continue
continue
...
...
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