Revision a7fb0e60
b/create | ||
---|---|---|
134 | 134 |
;; |
135 | 135 |
ntfsdump|extdump) |
136 | 136 |
# dd the dump to its new home :-) |
137 |
$MONITOR dd bs=4MB if=$IMAGE_FILE of=$root_dev |
|
137 |
# Deploying an image file on a target block device is a streaming |
|
138 |
# copy operation. Enable the direct I/O flag on the output fd to |
|
139 |
# avoid polluting the host cache with useless data. |
|
140 |
$MONITOR dd bs=4M if=$IMAGE_FILE of=$root_dev oflag=direct |
|
138 | 141 |
# resize the partition |
139 | 142 |
[ "${IMAGE_TYPE}" = "extdump" ] && $RESIZE2FS $root_dev |
140 | 143 |
;; |
Also available in: Unified diff