Bug 1449410

Summary: Add NTFS support to 90dmsquash-live module
Product: Red Hat Enterprise Linux 7 Reporter: Robert Scheck <redhat-bugzilla>
Component: dracutAssignee: Lukáš Nykrýn <lnykryn>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.3CC: dracut-maint-list, harald, jikortus, jstodola, robert.scheck, tthakur
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: dracut-033-534.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 18:07:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1420851, 1466365    

Description Robert Scheck 2017-05-09 21:54:57 UTC
Description of problem:
Currently, dracut does unfortunately not support booting from USB media with 
NTFS filesystem, only FAT32. This however gets relevant if e.g. the RHEL 7
installation image is written using a USB creator to a USB flash drive (the
repodata files are getting invalid due to filename length restrictions).

I already wrote a hackish patch to support booting from USB media with NTFS 
filesystem (optionally), which also removes the FAT32 related 4 GB file size 
limit for LiveOS/squashfs.img (and any other file on the same USB media).

Version-Release number of selected component (if applicable):
dracut-033-463.el7.x86_64

Actual results:
No support for booting from NTFS in dracut.

Expected results:
At least optional support for booting from NTFS in dracut. This allows to
regenerate the initramfs myself when having ntfsprogs (from EPEL) installed.

Additional info:
My hackish patch: https://github.com/dracutdevs/dracut/pull/191 - but no
feedback from upstream for 4+ months now.

Comment 2 Robert Scheck 2017-05-09 22:11:12 UTC
Cross-filed case 01846412 on the Red Hat customer portal.

From my point of view, that feature would be also helpful for Fedora ;-)

Comment 3 Harald Hoyer 2017-06-29 09:17:39 UTC
(In reply to Robert Scheck from comment #2)
> Cross-filed case 01846412 on the Red Hat customer portal.
> 
> From my point of view, that feature would be also helpful for Fedora ;-)

sorry.. looking into it

Comment 7 Robert Scheck 2017-08-22 21:50:11 UTC
My pull request was merged into dracut 046 meanwhile, thus there is now a pull
request for RHEL-7 branch: https://github.com/dracutdevs/dracut/pull/271

Comment 8 Robert Scheck 2017-08-22 21:52:41 UTC
My expectation is that my pull request from comment #7 gets part of the
next dracut update in RHEL 7.x, ideally 7.5.

Comment 12 Jiri Kortus 2018-01-11 10:41:51 UTC
I was not able to successfully verify this BZ on dracut-033-523.el7.x86_64. I tried to build a live medium using livemedia-creator, with additional dracut parameter to include the dmsquash-live-ntfs module, but initramfs could not be built, because dracut couldn't find the 90dmsquash-live module. This is caused by depends() function in module-setup.sh returning "90dmsquash-live", however supposedly it should return "dmsquash-live". With such a modification the initramfs (and the live ISO) could be built successfully.

Then I just copied content of the live ISO to an NTFS partition and tried to boot from it using grub from installed system together with the live initramfs, however this time booting failed due to missing find_binary function (missing dracut-functions script) that is required by dmsquash-live module (in dmsquash-live-root.sh). So I guess this needs to be fixed, unless I made some mistake in the process.

Comment 14 Robert Scheck 2018-01-11 11:27:37 UTC
Seeing "ON_QA → ASSIGNED" rather "ON_QA → VERIFIED" - is there an issue?

Comment 15 Lukáš Nykrýn 2018-01-11 11:46:10 UTC
I don't think there is anything secret in comment 12, so removing the private flag.

Comment 16 Lukáš Nykrýn 2018-01-11 12:20:39 UTC
https://github.com/dracutdevs/dracut/pull/352

Comment 17 Robert Scheck 2018-01-11 12:33:19 UTC
Lukáš, thank you very much for taking care. Looks like this was overlooked
when my initial PR/master got accepted.

Comment 18 Lukáš Nykrýn 2018-01-11 12:34:29 UTC
No problem :-)
And also we need 
https://github.com/dracutdevs/dracut/pull/353

Comment 23 errata-xmlrpc 2018-04-10 18:07:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0964