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
beeb8f9f
Commit
beeb8f9f
authored
Sep 28, 2012
by
Nikos Skalkotos
Browse files
Disable fsyncs in helper's VM resize operation
You can disable this behaviour by defining the DO_SYNC image property.
parent
bd0a7bd3
Changes
3
Hide whitespace changes
Inline
Side-by-side
snf-image-helper/common.sh
View file @
beeb8f9f
...
...
@@ -36,6 +36,7 @@ BLOCKDEV=blockdev
REGLOOKUP
=
reglookup
CHNTPW
=
chntpw
DATE
=
"date -u"
# Time in UTC
EATMYDATA
=
eatmydata
CLEANUP
=(
)
ERRORS
=(
)
...
...
snf-image-helper/tasks/20FilesystemResizeUnmounted.in
View file @
beeb8f9f
...
...
@@ -41,6 +41,10 @@ if [ -z "$SNF_IMAGE_RESIZE_PART" ]; then
exit
0
fi
if
[
-n
"
$SNF_IMAGE_PROPERTY_DO_SYNC
"
]
;
then
unset
EATMYDATA
fi
table
=
$(
get_partition_table
"
$SNF_IMAGE_DEV
"
)
partition
=
$(
get_partition_by_num
"
$table
"
"
$SNF_IMAGE_RESIZE_PART
"
)
id
=
$(
cut
-d
:
-f1
<<<
"
$partition
"
)
...
...
@@ -57,7 +61,7 @@ if [[ "$ptype" == ext[234] ]]; then
# system that has been mounted after the last fs check, but since we are
# sure the file system is clean it's safe enough to bypass this.
if
[
"
$state
"
=
"clean"
]
;
then
$RESIZE2FS
-f
"
$device
"
$EATMYDATA
$RESIZE2FS
-f
"
$device
"
else
log_error
"The file system state of partition:
\`
$device
' "
\
" is not clean (state =
$state
)"
...
...
snf-image-host/multistrap.conf
View file @
beeb8f9f
...
...
@@ -17,11 +17,15 @@ unpack=true
# the order of sections is not important.
# the debootstrap option determines which repository
# is used to calculate the list of Priority: required packages.
debootstrap
=
Debian
aptsources
=
Debian
debootstrap
=
Debian
Backport
aptsources
=
Debian
Backport
[
Debian
]
packages
=
linux
-
image
-
amd64
ntfs
-
3
g
ntfsprogs
xmlstarlet
python
reglookup
chntpw
parted
source
=
http
://
ftp
.
gr
.
debian
.
org
/
debian
suite
=
stable
[
Backport
]
packages
=
eatmydata
source
=
http
://
backports
.
debian
.
org
/
debian
-
backports
suite
=
stable
-
backports
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