Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-image
Commits
27acc2e4
Commit
27acc2e4
authored
Nov 11, 2011
by
Nikos Skalkotos
Browse files
Fix ROOT_PARTITION property support
parent
09ac08db
Changes
3
Hide whitespace changes
Inline
Side-by-side
snf-image-helper/snf-image-helper.in
View file @
27acc2e4
...
...
@@ -74,7 +74,6 @@ target=$(mktemp -d --tmpdir target.XXXXXX)
add_cleanup
rmdir
"
$target
"
export
SNF_IMAGE_TARGET
=
"
$target
"
export
SNF_IMAGE_ROOTDEV
=
"
${
SNF_IMAGE_DEV
}${
SNF_IMAGE_ROOT
}
"
if
[
!
-d
"@tasksdir@"
]
;
then
log_error
"snf-image/tasks directory is missing"
...
...
snf-image-helper/tasks/30MountImage.in
View file @
27acc2e4
...
...
@@ -13,11 +13,17 @@ if [ ! -d "$SNF_IMAGE_TARGET" ]; then
log_error
"Target dir:
\`
$SNF_IMAGE_TARGET
' is missing"
fi
if
[
!
-b
"
$SNF_IMAGE_
ROOTDEV
"
]
;
then
log_error
"
Device file:
\`
$SNF_IMAGE_ROOTDEV
' is not a block device
"
if
[
-z
"
$SNF_IMAGE_
PROPERTY_ROOT_PARTITION
"
]
;
then
log_error
"
Root Partition image property not defined
"
fi
mount
"
$SNF_IMAGE_ROOTDEV
"
"
$SNF_IMAGE_TARGET
"
-o
rw
rootdev
=
"
${
SNF_IMAGE_DEV
}${
SNF_IMAGE_PROPERTY_ROOT_PARTITION
}
"
if
[
!
-b
"
$rootdev
"
]
;
then
log_error
"Image root partition device:
\`
$rootdev
' is not a block device"
fi
mount
"
$rootdev
"
"
$SNF_IMAGE_TARGET
"
-o
rw
exit
0
...
...
snf-image-host/create
View file @
27acc2e4
...
...
@@ -74,7 +74,7 @@ case "$IMAGE_TYPE" in
target
=
"
$(
map_disk0
"
$blockdev
"
)
-1"
#the root device
add_cleanup unmap_disk0
"
$blockdev
"
snf_export_
ROOT
=
1
snf_export_
PROPERTY_ROOT_PARTITION
=
1
;;
diskdump|custom
)
target
=
"
$blockdev
"
...
...
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