Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
alpine
alpine-conf
Commits
34d9ecbc
Commit
34d9ecbc
authored
Jun 20, 2012
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-xen-dom0: setup script to set up basic xen dom0
parent
70dab89b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
+39
-0
Makefile
Makefile
+1
-0
setup-alpine.in
setup-alpine.in
+10
-0
setup-xen-dom0.in
setup-xen-dom0.in
+28
-0
No files found.
Makefile
View file @
34d9ecbc
...
...
@@ -27,6 +27,7 @@ SBIN_FILES := lbu\
setup-proxy
\
setup-sshd
\
setup-timezone
\
setup-xen-dom0
\
setup-xorg-base
\
update-conf
...
...
setup-alpine.in
View file @
34d9ecbc
...
...
@@ -48,6 +48,12 @@ while getopts "af:c:hq" opt ; do
done
shift
`
expr
$OPTIND
- 1
`
# mount xenfs so we can detect xen dom0
if
[
"
$(
rc
--sys
)
"
=
"XENU"
]
&&
!
grep
-q
'^xenfs'
/proc/mounts
;
then
modprobe xenfs
mount
-t
xenfs xenfs /proc/xen
fi
if
[
"
$USEANSWERFILE
"
!=
""
]
;
then
if
[
-e
"
$USEANSWERFILE
"
]
;
then
.
"
$USEANSWERFILE
"
...
...
@@ -178,6 +184,10 @@ if ! is_qemu; then
$PREFIX
/sbin/setup-ntp
${
NTPOPTS
}
fi
if
is_xen_dom0
;
then
setup-xen-dom0
fi
DEFAULT_DISK
=
none
\
$PREFIX
/sbin/setup-disk
-q
${
DISKOPTS
}
...
...
setup-xen-dom0.in
0 → 100644
View file @
34d9ecbc
#!/bin/sh
# simple script to setup basic xen dom0
# kernel modules
for
mod
in
xen_netback xen_blkback xenfs xen-platform-pci xen_wdt tun
;
do
modprobe
$mod
grep
-q
-w
$mod
/etc/modules
||
echo
$mod
>>
/etc/modules
done
# install packages
apk add
-q
xen udev
# setup and start services
rc-update
-q
del mdev sysinit
rc-update
-q
add udev sysinit
for
svc
in
udev-postmount xenstored xenconsoled
;
do
rc-update
-q
add
$svc
default
done
if
!
rc-service
-q
udev status
;
then
rc-service udev start
rc-service udev-postmount start
fi
rc-service xenstored start
rc-service xenconsoled start
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