diff options
author | Gui Chen <gui.chen@intel.com> | 2013-01-27 11:25:27 +0800 |
---|---|---|
committer | Gui Chen <gui.chen@intel.com> | 2013-01-27 13:45:52 +0800 |
commit | 226c1ddb328850a0d97bf364a60b0ea9a2d4b29f (patch) | |
tree | 56f2fa6f7c8aabbba600b2139c0721fd52ebcfda /plugins | |
parent | 75a9048737cb87d351f09c621ad9070f3b97112f (diff) | |
download | mic-226c1ddb328850a0d97bf364a60b0ea9a2d4b29f.tar.gz mic-226c1ddb328850a0d97bf364a60b0ea9a2d4b29f.tar.bz2 mic-226c1ddb328850a0d97bf364a60b0ea9a2d4b29f.zip |
add option '--fstab-entry' to set the entry in /etc/fstab
valid values: name, uuid. 'name' means using device names, 'uuid' means using filesystem uuid
Change-Id: I6ea340bc66955cc33ebbe478cbf1425e060f313c
Signed-off-by: Gui Chen <gui.chen@intel.com>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/imager/raw_plugin.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/imager/raw_plugin.py b/plugins/imager/raw_plugin.py index c22e4ea..dae43ee 100644 --- a/plugins/imager/raw_plugin.py +++ b/plugins/imager/raw_plugin.py @@ -41,6 +41,10 @@ class RawPlugin(ImagerPlugin): help="Compress all raw images before package") @cmdln.option("--generate-bmap", action="store_true", default = None, help="also generate the block map file") + @cmdln.option("--fstab-entry", dest="fstab_entry", type='choice', + choices=("name", "uuid"), default="uuid", + help="Set fstab entry, 'name' means using device names, " + "'uuid' means using filesystem uuid") def do_create(self, subcmd, opts, *args): """${cmd_name}: create raw image @@ -95,7 +99,7 @@ class RawPlugin(ImagerPlugin): ','.join(backends.keys()))) creator = raw.RawImageCreator(creatoropts, pkgmgr, opts.compress_image, - opts.generate_bmap) + opts.generate_bmap, opts.fstab_entry) if len(recording_pkgs) > 0: creator._recording_pkgs = recording_pkgs |