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
464c65b2
Commit
464c65b2
authored
Mar 05, 2014
by
Nikos Skalkotos
Browse files
Support NetBSD in FixPartitionTable task
parent
530f5f0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-image-helper/tasks/10FixPartitionTable.in
View file @
464c65b2
...
...
@@ -35,7 +35,7 @@ if [ ! -b "$SNF_IMAGE_DEV" ]; then
log_error
"Device file:
\`
${
SNF_IMAGE_DEV
}
' is not a block device"
fi
if
[
"
$SNF_IMAGE_PROPERTY_OSFAMILY
"
=
openbsd
]
;
then
if
[
[
"
$SNF_IMAGE_PROPERTY_OSFAMILY
"
=
~ ^
(
open|net
)
bsd
$
]
]
;
then
@scriptsdir@/disklabel.py
-d
"
$(
$BLOCKDEV
--getsz
"
$SNF_IMAGE_DEV
"
)
"
-p
"
$SNF_IMAGE_DEV
"
# Tell the kernel to recreate the disk partitions.
# We cannot use partprobe to do this because partprobe uses BLKPG ioctl
...
...
@@ -47,11 +47,6 @@ if [ "$SNF_IMAGE_PROPERTY_OSFAMILY" = openbsd ]; then
exit
0
fi
if
[
"
$SNF_IMAGE_PROPERTY_OSFAMILY
"
=
netbsd
]
;
then
warn
"Partition resizing currently not supported for NetBSD"
exit
0
fi
table
=
$(
get_partition_table
"
$SNF_IMAGE_DEV
"
)
if
[
$(
get_partition_count
"
$table
"
)
-eq
0
]
;
then
...
...
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