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
a2a04353
Commit
a2a04353
authored
Mar 07, 2014
by
Nikos Skalkotos
Browse files
Support NetBSD in FilesystemResizeUnmounted task
Add support for resizing UFS file systems of NetBSD OSes
parent
b3d5174a
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-image-helper/tasks/20FilesystemResizeUnmounted.in
View file @
a2a04353
...
...
@@ -36,7 +36,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
bsd_part
=
"
$(
@scriptsdir@/disklabel.py
--get-last-partition
"
$SNF_IMAGE_DEV
"
)
"
if
[
"
$bsd_part
"
=
"b"
]
;
then
warn
"Last partition is swap space. Resizing ommited"
...
...
@@ -52,11 +52,6 @@ if [ "$SNF_IMAGE_PROPERTY_OSFAMILY" = openbsd ]; then
exit
0
fi
if
[
"
$SNF_IMAGE_PROPERTY_OSFAMILY
"
=
netbsd
]
;
then
warn
"File system resizing currently not supported for NetBSD"
exit
0
fi
if
[
-z
"
$SNF_IMAGE_RESIZE_PART
"
]
;
then
warn
"No partition chosen for resize"
exit
0
...
...
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