convert an image to a specified type; subcommand chroot is used to chroot into
an image.
-Package: mic-native
-Architecture: all
-Depends: ${misc:Depends}, ${python:Depends},
- util-linux,
- coreutils,
- psmisc,
- e2fsprogs (>= 1.41),
- dosfstools,
- isomd5sum,
- genisoimage,
- dmsetup,
- kpartx,
- parted,
- squashfs-tools (>= 4.0),
- yum (>= 3.2),
- syslinux (>= 2:4.05),
- extlinux (>= 2:4.05),
- python-zypp-tizen,
- python-m2crypto,
- mic,
-Recommends:
- qemu-arm-static | qemu-user-static,
- binfmt-support,
- btrfs-tools,
- udisks | hal
-Description: Native support for mic
- The native support package for mic, it includes all requirements
- for mic native running.
+++ /dev/null
-usr/bin/mic-native
install -m644 doc/mic.1 $(CURDIR)/debian/tmp/usr/share/man/man1
install -m755 etc/bash_completion.d/mic.sh $(CURDIR)/debian/tmp/etc/bash_completion.d/
install -m755 etc/zsh_completion.d/_mic $(CURDIR)/debian/tmp/etc/zsh_completion.d/_mic
- install -m755 tools/mic $(CURDIR)/debian/tmp/usr/bin/mic-native
python setup.py install --root=$(CURDIR)/debian/tmp --prefix=/usr
binary-indep: build install
--pack-to=PACK_TO pack the images together into the specified achive, extension supported: .zip, .tar, .tar.gz, .tar.bz2, etc. by default, .tar will be used
--release=RID generate a release of RID with all necessary files, when @BUILD_ID@ is contained in kickstart file, it will be replaced by RID. sample values: "latest", "tizen_20120101.1"
--copy-kernel copy kernel files from image /boot directory to the image output directory
- --runtime=RUNTIME Specify runtime mode, avaiable: bootstrap, native
+ --runtime=RUNTIME Specify runtime mode, avaiable: bootstrap
--install-pkgs=INSTALL_PKGS Specify what type of packages to be installed, valid: source, debuginfo, debugsource
--check-pkgs=CHECK_PKGS Check if given packages would be installed, packages should be separated by comma
--tmpfs Setup tmpdir as tmpfs to accelerate, experimental feature, use it if you have more than 4G memory
- Other options:
-::
+::
--runtime=RUNTIME_MODE
Sets runtime mode, the default is bootstrap mode, valid
- values: "native", "bootstrap". "native" means mic uses
- localhost environment to create image, while "bootstrap"
- means mic uses one tizen chroot environment to create image.
+ values: "bootstrap". "bootstrap" means mic uses one
+ tizen chroot environment to create image.
--compress-image=COMPRESS_IMAGE (for loop & raw)
Sets the disk image compression. Note: The available
values might depend on the used filesystem type.
latest
"
runtime_values="
- native
bootstrap
"
record_pkgs_values="
'--record-pkgs=[Record the info of installed packages, multiple values can be specified which joined by \",\", valid values: \"name\", \"content\", \"license\", \"vcs\"]: :_mic_create_filters -s ,' \
'--pkgmgr=[Specify backend package manager]:parameter' \
'--local-pkgs-path=[Path for local pkgs(rpms) to be installed]:path' \
- '--runtime=[Specify runtime mode, avaiable: bootstrap, native]: :(bootstrap native)' \
+ '--runtime=[Specify runtime mode, avaiable: bootstrap]: :(bootstrap)' \
'--pack-to=[Pack the images together into the specified achive, extension supported: .zip, .tar, .tar.gz, .tar.bz2, etc. by default, .tar will be used]:parameter' \
'--copy-kernel[Copy kernel files from image /boot directory to the image output directory.]' \
'--install-pkgs=[Specify what type of packages to be installed, valid: source, debuginfo, debugsource]: :(source debuginfo debugsource)' \
'--record-pkgs=[Record the info of installed packages, multiple values can be specified which joined by \",\", valid values: \"name\", \"content\", \"license\", \"vcs\"]: :_mic_create_filters -s ,' \
'--pkgmgr=[Specify backend package manager]:parameter' \
'--local-pkgs-path=[Path for local pkgs(rpms) to be installed]:path' \
- '--runtime=[Specify runtime mode, avaiable: bootstrap, native]: :(bootstrap native)' \
+ '--runtime=[Specify runtime mode, avaiable: bootstrap]: :(bootstrap)' \
'--pack-to=[Pack the images together into the specified achive, extension supported: .zip, .tar, .tar.gz, .tar.bz2, etc. by default, .tar will be used]:parameter' \
'--copy-kernel[Copy kernel files from image /boot directory to the image output directory.]' \
'--install-pkgs=[Specify what type of packages to be installed, valid: source, debuginfo, debugsource]: :(source debuginfo debugsource)' \
msger.set_logfile(self.create['logfile'], mode)
def set_runtime(self, runtime):
- if runtime not in ("bootstrap", "native"):
- raise errors.CreatorError("Invalid runtime mode: %s" % runtime)
+ if runtime != "bootstrap":
+ raise errors.CreatorError("Invalid runtime mode: %s, only 'bootstrap' mode is allowed." % runtime)
if misc.get_distro()[0] in ("tizen", "Tizen"):
runtime = "native"
help='Path for local pkgs(rpms) to be installed')
optparser.add_option('', '--runtime', type='string',
dest='runtime', default=None,
- help='Specify runtime mode, avaiable: bootstrap, native')
+ help='Specify runtime mode, avaiable: bootstrap')
# --taring-to is alias to --pack-to
optparser.add_option('', '--taring-to', type='string',
dest='pack_to', default=None,
convert an image to a specified type; subcommand chroot is used to chroot into
an image.
-%package native
-Summary: Native support for mic
-Requires: util-linux
-Requires: coreutils
-Requires: psmisc
-Requires: e2fsprogs
-Requires: dosfstools >= 2.11
-Requires: kpartx
-Requires: parted
-Requires: device-mapper
-Requires: syslinux >= 3.82
-%if ! 0%{?suse_version}
-Requires: syslinux-extlinux >= 3.82
-%endif
-
-%if 0%{?suse_version} || 0%{?tizen_version:1}
-Requires: squashfs >= 4.0
-Requires: python-m2crypto
-%else
-Requires: python-libs
-Requires: squashfs-tools >= 4.0
-Requires: m2crypto
-%endif
-
-%if 0%{?suse_version} || 0%{?tizen_version:1}
-Requires: /usr/bin/qemu-arm
-%else
-Requires: qemu-arm-static
-%endif
-
-%if ! 0%{?tizen_version:1}
-Requires: isomd5sum
-Requires: /usr/bin/genisoimage
-%endif
-
-Requires: yum >= 3.2.24
-%if 0%{?tizen_version:1}
-Requires: python-zypp
-%else
-Requires: python-zypp-tizen
-%endif
-
-Requires: mic
-
-#%if 0%{?suse_version}
-#Requires: btrfsprogs
-#%else
-#Requires: btrfs-progs
-#%endif
-
-%description native
-The native support package for mic, it includes all requirements
-for mic native running.
%prep
%setup -q -n %{name}-%{version}
install -d -m0755 %{buildroot}/%{_sysconfdir}/zsh_completion.d/
install -Dp -m0755 etc/zsh_completion.d/_%{name} %{buildroot}/%{_sysconfdir}/zsh_completion.d/
-install -Dp -m0755 tools/mic %{buildroot}/%{_bindir}/mic-native
-
%files
%defattr(-,root,root,-)
%doc doc/*
%{_sysconfdir}/bash_completion.d
%{_sysconfdir}/zsh_completion.d
-%files native
-%{_bindir}/mic-native