首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >微软的imagex/ Do是否相当于wimlib的--delta-from?

微软的imagex/ Do是否相当于wimlib的--delta-from?
EN

Server Fault用户
提问于 2017-11-07 17:33:25
回答 1查看 923关注 0票数 1

为了将小的更改推送到现有的wim映像中,您可以使用以前的wim文件作为基本wim和一个只包含“更改”的文件作为主要wim,从而显著减少网络流量。

维姆利布是一个用于处理wim文件的开源库,它有一个非常棒的特性来创建这些“只更改”的wim文件。你只需要:

代码语言:javascript
复制
.\wimlib-imagex.exe capture <folder_to_capture> <output.wim> --delta-from=<base.wim>

结果是一个很小的output.wim,它只有元数据和与base.wim不同的文件。然后,即使使用Microsoft的工具,也可以应用映像,如下所示:

代码语言:javascript
复制
Expand-WindowsImage -ImagePath <output.wim> -Index 1 -ApplyPath `
<output_folder> -SplitImageFilePattern <base.wim>

两个问题:

  1. 微软的第一批imagex/ get工具是否提供了获得相同功能的任何方法(这样我就可以避免在可能的情况下添加另一个依赖项)?它们提供了将现有的wim分割成碎片的功能,但是我没有看到任何东西可以帮助从文件夹/ wim和基本wim创建一个"delta“类型的wim。
  2. 如果没有,我在使用wimlib时是否应该注意到什么问题?我的用例是通过Microsoft的Deployment捕获和应用映像。我看到wimlib还不支持NTFS扩展属性,但据我所知,MDT并没有捕获这些属性。
EN

回答 1

Server Fault用户

发布于 2017-11-08 07:58:21

问题1:

Tl;Dr:

No

根据Microsoft Docs:https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/deployment-image-servicing-and-management--dism--command-line-options的文档,没有增量捕获选项(S)可用。

代码语言:javascript
复制
Dism /Capture-Image /ImageFile:<path_to_image_file> /CaptureDir:<source_directory> /Name:<image_name> [/Description:<image_description>]
[/ConfigFile:<configuration_file.ini>] {[/Compress:{max|fast|none}] [/Bootable] | [/WIMBoot]} [/CheckIntegrity] [/Verify] [/NoRpFix] [/EA]

Parameter   Description
/ConfigFile Specifies the location of a configuration file that lists exclusions for image capture and compress commands. For more information, see DISM Configuration List and WimScript.ini Files.
/Compress   Specifies the type of compression used for the initial capture operation. The maximum option provides the best compression, but takes more time to capture the image. The fast option provides faster image compression, but the resulting files are larger than those compressed by using the maximum option. This is also the default compression type that is used if you do not specify the argument. The none option does not compress the captured image at all.
/Bootable   Marks a volume image as being a bootable image. This argument is available only for WinPE images. Only one volume image can be marked as bootable in a .wim file.
/CheckIntegrity Detects and tracks .wim file corruption when used with capture, unmount, export, and commit operations. /CheckIntegrity stops the operation if DISM detects that the .wim file is corrupted when used with apply and mount operations.
/Verify Checks for errors and file duplication.
/NoRpFix    Disables the reparse point tag fix. A reparse point is a file that contains a link to another file on the file system. If /NoRpFix is not specified, reparse points that resolve to paths outside of the value specified by /ImageFile will not be captured.
/WIMBoot    Use /WIMBoot to append the image with Windows image file boot (WIMBoot) configuration. This only applies to Windows 8.1 images that have been captured or exported as a WIMBoot file. This feature isn't supported in Windows 10.
/EA New in Windows 10, version 1607. Captures extended attributes. The switch must be explicitly specified to capture extended attributes. DISM will capture extended attribute bits if they are set in the components to be captured in the WIM image. If the bits are not set, DISM won't set them. Only the inbox components of CAB packages and drivers will have these extended attribute bits, not the AppX package components or Win32 application components. Extended attributes with prefix “$Kernel.” in name will be skipped because only user mode extended attributes are captured. If you use DISM in Windows 10, version 1607 to capture extended attributes and use an earlier version of DISM to apply the image, the operation will succeed but the extended attributes will not be set to the applied image.

问题2:

从我的经验来看,不存在兼容性问题。

当我使用Windows时,我偶尔使用WIMLib。

当我为Windows构建可引导的活动CD环境时,它不会引起任何问题。

BCD能够正确引导图像。

现在,那些只是使用标准的WIM选项,我没有尝试做任何先进的WIM文件。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/882314

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档