Wimlib and LXSS

Comments, questions, bug reports, etc.
Post Reply
T-S
Posts: 5
Joined: Mon Apr 16, 2018 6:08 pm

Wimlib and LXSS

Post by T-S »

Hi

I was just applying an image backed (using wimlib) as esd and I noticed few errors coming from the restore process.

Code: Select all

i:\wimlib64>wimapply  W:\VHDs\Server2016-14393.2273.esd d:\ --compact=lzx
[WARNING] Not extracting "\Users\myuser\AppData\Local\lxss\rootfs\lib\xtables\libip6t_HL.so": has same case-insensitive name as "\Users\myuser\AppData\Local\lxss\rootfs\lib\xtables\libip6t_hl.so"

The same error is repeated for about 20 files or so

I wonder if this is an intrinsic problem with the MS LXSS implementation or is a problem of wimlib itself.
synchronicity
Site Admin
Posts: 363
Joined: Sun Aug 02, 2015 10:31 pm

Re: Wimlib and LXSS

Post by synchronicity »

It's an intrinsic problem with LXSS. LXSS applications can use case sensitive filenames, but Windows applications (such as the Windows build of wimlib) cannot, unless you manually set ObCaseInsensitive=0 in the Windows registry. You can read more about this registry setting here: http://www.nicklowe.org/2012/02/underst ... ve_search/
synchronicity
Site Admin
Posts: 363
Joined: Sun Aug 02, 2015 10:31 pm

Re: Wimlib and LXSS

Post by synchronicity »

Actually, apparently just within the last couple months, Windows added support for marking specific directories as case-sensitive, and is starting to use it for LXSS. So wimlib could be changed to back up and restore the case sensitive flag, presumably using FileCaseSensitiveInformation and Nt{Query,Set}InformationFile(). Presumably it would only work for new LXSS installations, not ones that were created before Windows build 17110.

References:
* https://blogs.msdn.microsoft.com/comman ... y-and-wsl/
* https://docs.microsoft.com/en-us/window ... nformation
T-S
Posts: 5
Joined: Mon Apr 16, 2018 6:08 pm

Re: Wimlib and LXSS

Post by T-S »

Thanks for your quick and exhaustive reply ;)
Post Reply