• R/O
  • HTTP
  • SSH
  • HTTPS

image-creator: 提交

KVM host image creator.


Commit MetaInfo

修订版37ae28d5a166b44efc7c82f47392d68fe6c891fd (tree)
时间2019-09-30 16:04:03
作者Tatsuki Sugiura <sugi@nemu...>
CommiterTatsuki Sugiura

Log Message

Disk size shorthund support.

更改概述

差异

--- a/create-image
+++ b/create-image
@@ -199,6 +199,7 @@ if $0 == __FILE__
199199 if imgdef.kind_of?(Hash)
200200 name = imgdef['name']
201201 (imgdef['dirs'] || {}).each do |path, opts|
202+ opts.kind_of?(Hash) or opts = {size: opts}
202203 dirs << SyncDirDef.new({path: path}.merge(opts.keys.map(&:to_sym).zip(opts.values).to_h))
203204 end
204205 else
--- a/image-list.yml.sample
+++ b/image-list.yml.sample
@@ -1,6 +1,11 @@
11 - name: jessie-test
22 dirs:
33 /:
4- size: 2.5
5- fs_features: '^metadata_csum'
4+ size: 1
5+ #fs_features: '^metadata_csum'
6+ exclude: /var
7+ /var: 0.8
8+# /var:
9+# size: 1
10+# fs_features: '^metadata_csum'
611 #- name: stretch
Show on old repository browser