Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run_qemu.sh: drop dracut --filesystems="xfs ext4" parameter #99

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Jan 7, 2025

The purpose of the --filesystems= parameter is a bit counter-intuitive: it's designed to reduce the size of the initrd by excluding all modules except the ones given.

man dracut
       --filesystems <list of filesystems>

           Specify a space-separated list of kernel filesystem modules
           to EXCLUSIVELY include in the generic initramfs.

Emphasis mine.

So, the previous "xfs ext4" argument could prevent someone with another filesystem module to boot.

Worse: if CONFIG_XFS_FS is false, then passing "xfs ext4" prints the following warning:

dracut-install: Failed to find module 'xfs'
dracut[E]: FAILED:  /usr/lib/dracut/dracut-install -D
  /var/tmp/dracut.eRkJZX/initramfs -N ^nfit$|^libnvdimm$|^nd_pmem$
  --kerneldir ./qbuild/mkosi.extra/lib/modules/6.12.0-dirty -m xfs ext4

Then, dracut does not include ext4 either and keeps running! So, users with CONFIG_EXT4_FS=m can't boot either!

Most users probably use built-in drivers which means they never notice.

The purpose of the --filesystems= parameter is a bit counter-intuitive:
it's designed to _reduce_ the size of the initrd by excluding all
modules except the ones given.

```
man dracut
       --filesystems <list of filesystems>

           Specify a space-separated list of kernel filesystem modules
           to EXCLUSIVELY include in the generic initramfs.
```
Emphasis mine.

So, the previous "xfs ext4" argument could prevent someone with another
filesystem module to boot.

Worse: if CONFIG_XFS_FS is false, then passing "xfs ext4" prints the
following warning:

```
dracut-install: Failed to find module 'xfs'
dracut[E]: FAILED:  /usr/lib/dracut/dracut-install -D
  /var/tmp/dracut.eRkJZX/initramfs -N ^nfit$|^libnvdimm$|^nd_pmem$
  --kerneldir ./qbuild/mkosi.extra/lib/modules/6.12.0-dirty -m xfs ext4

```
Then, dracut does not include ext4 either and keeps running! So, users
with CONFIG_EXT4_FS=m can't boot either!

Most users probably use built-in drivers which means they never
notice.

Signed-off-by: Marc Herbert <[email protected]>
@marc-hb marc-hb marked this pull request as ready for review January 7, 2025 02:12
@marc-hb marc-hb requested a review from stellarhopper as a code owner January 7, 2025 02:12
@stellarhopper stellarhopper merged commit 892258c into pmem:main Jan 7, 2025
2 checks passed
@marc-hb marc-hb deleted the drop-dracut-filesystems branch January 23, 2025 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants