Red Hat Bugzilla – Bug 1449410
Add NTFS support to 90dmsquash-live module
Last modified: 2018-04-10 14:10:22 EDT
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.
Cross-filed case 01846412 on the Red Hat customer portal. From my point of view, that feature would be also helpful for Fedora ;-)
(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
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
My expectation is that my pull request from comment #7 gets part of the next dracut update in RHEL 7.x, ideally 7.5.
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.
Seeing "ON_QA → ASSIGNED" rather "ON_QA → VERIFIED" - is there an issue?
I don't think there is anything secret in comment 12, so removing the private flag.
https://github.com/dracutdevs/dracut/pull/352
Lukáš, thank you very much for taking care. Looks like this was overlooked when my initial PR/master got accepted.
No problem :-) And also we need https://github.com/dracutdevs/dracut/pull/353
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