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
de0cc3e9
Commit
de0cc3e9
authored
Dec 01, 2011
by
Nikos Skalkotos
Browse files
Do fs check before reseizing ext{2,3,4} partitions
parent
725a0f88
Changes
2
Hide whitespace changes
Inline
Side-by-side
snf-image-helper/common.sh
View file @
de0cc3e9
...
...
@@ -24,6 +24,7 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
# Programs
XMLSTARLET
=
xmlstarlet
E2FSCK
=
e2fsck
RESIZE2FS
=
resize2fs
PARTED
=
parted
REGLOOKUP
=
reglookup
...
...
snf-image-helper/tasks/20FilesystemResizeUnmounted.in
View file @
de0cc3e9
...
...
@@ -37,7 +37,8 @@ ptype=$(echo "$last_partition" | cut -d: -f5)
if
[[
"
$ptype
"
==
ext[234]
]]
;
then
device
=
"
${
SNF_IMAGE_DEV
}${
id
}
"
"
$RESIZE2FS
"
"
$device
"
$E2FSCK
-f
"
$devide
"
$RESIZE2FS
"
$device
"
fi
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