Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lu Xu
slapos.toolbox
Commits
58fb0e98
Commit
58fb0e98
authored
Nov 07, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support banging.
parent
5561d341
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
14 deletions
+19
-14
slapos/builder/script/slapos
slapos/builder/script/slapos
+19
-14
No files found.
slapos/builder/script/slapos
View file @
58fb0e98
...
@@ -48,20 +48,22 @@ pwgen -sync 512 1 | passwd --stdin root
...
@@ -48,20 +48,22 @@ pwgen -sync 512 1 | passwd --stdin root
SLAP_INSTALL_LOG
=
/opt/slapos/slapos-install.log
SLAP_INSTALL_LOG
=
/opt/slapos/slapos-install.log
if
[
!
-f
/opt/slapos/bin/slapformat
]
;
then
while
:
;
do
while
[
!
-f
/opt/slapos/bin/slapformat
]
;
do
if
[
-f
/opt/slapos/bin/slapformat
]
&&
[
-f
/opt/slapos/bin/bang
]
;
then
echo
-n
"Installing SlapOS, log availble at
${
SLAP_INSTALL_LOG
}
..."
# slapos tools available, nothing to do
# software not detected, force forever installation
break
mkdir
-p
/opt/slapos
fi
(
python
-S
-c
\
# software not detected, force forever installation
'import urllib2;print urllib2.urlopen("http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py").read()'
\
echo
-n
"Installing SlapOS, log availble at
${
SLAP_INSTALL_LOG
}
..."
| python
-S
-
-c
/etc/slapos/software.cfg buildout:directory
=
/opt/slapos
\
mkdir
-p
/opt/slapos
>>
${
SLAP_INSTALL_LOG
}
2>&1
&&
/opt/slapos/bin/buildout
-c
\
(
python
-S
-c
\
/etc/slapos/software.cfg buildout:directory
=
/opt/slapos
>>
\
'import urllib2;print urllib2.urlopen("http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py").read()'
\
${
SLAP_INSTALL_LOG
}
2>&1
)
&&
(
echo
"done."
)
||
(
echo
\
| python
-S
-
-c
/etc/slapos/software.cfg buildout:directory
=
/opt/slapos
\
"failed, retrying, the last error was:."
;
tail
-n
20
${
SLAP_INSTALL_LOG
}
;
rm
-f
/opt/slapos/bin/slapformat
)
>>
${
SLAP_INSTALL_LOG
}
2>&1
&&
/opt/slapos/bin/buildout
-c
\
done
/etc/slapos/software.cfg buildout:directory
=
/opt/slapos
>>
\
fi
${
SLAP_INSTALL_LOG
}
2>&1
)
&&
(
echo
"done."
)
||
(
echo
\
"failed, retrying, the last error was:."
;
tail
-n
20
${
SLAP_INSTALL_LOG
}
;
rm
-f
/opt/slapos/bin/slapformat
)
done
# Create PKI repository
# Create PKI repository
repo
=
`
egrep ^certificate_repository_path /etc/slapos/slapos.cfg |
sed
's/^certificate_repository_path.*= *//'
`
repo
=
`
egrep ^certificate_repository_path /etc/slapos/slapos.cfg |
sed
's/^certificate_repository_path.*= *//'
`
...
@@ -97,6 +99,9 @@ sysctl -w \
...
@@ -97,6 +99,9 @@ sysctl -w \
echo
-n
"Running slapformat..."
echo
-n
"Running slapformat..."
/opt/slapos/bin/slapformat
--verbose
--console
/etc/slapos/slapos.cfg
/opt/slapos/bin/slapformat
--verbose
--console
/etc/slapos/slapos.cfg
echo
"done."
echo
"done."
echo
-n
"Banging..."
/opt/slapos/bin/bang
-m
"Rebooted"
/etc/slapos/slapos.cfg
echo
"done."
# Set kvm up
# Set kvm up
modprobe kvm_intel
modprobe kvm_intel
...
...
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