Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1955836

Summary: dmsquash-live-ntfs depends on ntfs-3g which isn't available
Product: Red Hat Enterprise Linux 9 Reporter: Brian Lane <bcl>
Component: dracutAssignee: Lukáš Nykrýn <lnykryn>
Status: CLOSED NOTABUG QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: dracut-maint-list, dtardon, lzap, renich
Target Milestone: betaFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-04 11:11:37 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:
Attachments:
Description Flags
live.log none

Description Brian Lane 2021-04-30 23:51:39 UTC
Description of problem:
While testing live media creation with livemedia-creator I found that dmsquash-live is including dmsquash-live-ntfs which depends on ntfs-3g, this causes the rebuild of the iso initrd to fail. I'm pretty sure we're not shipping ntfs support so this needs to be adjusted to remove dmsquash-live-ntfs


Version-Release number of selected component (if applicable):
dracut-live-051-1.el9.1.x86_64.rpm

How reproducible:
always

2021-04-30 16:36:02,881 INFO: /usr/lib/dracut/modules.d/90dmsquash-live-ntfs/module-setup.sh@6(check): require_binaries ntfs-3g
2021-04-30 16:36:02,881 INFO: /usr/lib/dracut/dracut-init.sh@108(require_binaries): local _module_name=90dmsquash-live-ntfs
2021-04-30 16:36:02,881 INFO: /usr/lib/dracut/dracut-init.sh@109(require_binaries): local _ret=0
2021-04-30 16:36:02,881 INFO: /usr/lib/dracut/dracut-init.sh@111(require_binaries): [[ ntfs-3g = \-\m ]]
2021-04-30 16:36:02,881 INFO: /usr/lib/dracut/dracut-init.sh@116(require_binaries): for cmd in "$@"
2021-04-30 16:36:02,881 INFO: /usr/lib/dracut/dracut-init.sh@117(require_binaries): find_binary ntfs-3g
2021-04-30 16:36:02,881 INFO: /usr/lib/dracut/dracut-init.sh@118(require_binaries): dinfo 'dracut module '\''dmsquash-live-ntfs'\'' will not be installed, because command '\''ntfs-3g'\'' could not be found!'

Comment 1 David Tardon 2021-05-03 08:41:57 UTC
dmsquash-live does not require dmsquash-live-ntfs and it never has. In fact, nothing in dracut itself does. Please attach the output of "dracut -v".

Comment 2 Brian Lane 2021-05-03 16:21:46 UTC
Created attachment 1779050 [details]
live.log

Installing dracut-live certainly is including it:

# dracut --list-modules | grep -i ntfs
(nothing listed)

# dnf install dracut-live
Installing:
 dracut-live               x86_64               051-1.el9.1                AppStream                21 k

# dracut --list-modules | grep live
dmsquash-live
dmsquash-live-ntfs
livenet


Attached is the output from:
"dracut --debug --add dmsquash-live test.img `uname -r` |& tee live.log"

Works fine without the `--add dmsquash`

Comment 3 David Tardon 2021-05-04 11:11:37 UTC
dmsquash-live is skipped in hostonly mode. Call dracut with --no-hostonly or install package dracut-nohostonly.

Comment 4 Lukas Zapletal 2021-12-15 12:19:40 UTC
For the record, if you hit this bug and you want your LiveCD to build, use this option in livemedia-creator: --dracut-arg "-o dmsquash-live-ntfs"

Comment 5 Lukas Zapletal 2021-12-15 13:00:38 UTC
Oh it does not boot, does not know how to handle root=live:CDLABEL:xyz. It looks like dracut omitted all dmsquash modules:

Version: dracut-049-191.git20210920.el8

Arguments: --nomdadmconf --nolvmconf -o 'dmsquash-live-ntfs' --force

dracut modules:
bash
systemd
systemd-initrd
nss-softokn
network-manager
network
ifcfg
prefixdevname
kernel-modules
kernel-modules-extra
kernel-network-modules
rootfs-block
terminfo
udev-rules
biosdevname
dracut-systemd
usrmount
base
fs-lib
memstrack
microcode_ctl-fw_dir_override
shutdown

How can I workaround this problem?

Comment 6 Brian Lane 2021-12-15 17:01:56 UTC
For future reference, the problem I was having was my fault, livemedia-creator was including dmsquash-live-ntfs (because the code was imported from Fedora) and my attempt to reproduce it in a simple fashion was invalid. This was fixed in lorax-34.9.1-1 in RHEL 9, and was not present in RHEL 8.