-
Notifications
You must be signed in to change notification settings - Fork 110
Disable unnecessary floppy kernel module #449
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
neddp
approved these changes
Oct 28, 2025
Contributor
|
I don’t know if this is still true but the vsphere cpi used this module for its equivalent of cloud init. It may have moved to virtual CDs but we need to double check this. |
Member
|
Pretty sure the vsphere cpi uses a virtual cd drive, at least according to https://bosh.io/docs/vsphere/#concepts |
rkoster
approved these changes
Oct 30, 2025
s4heid
added a commit
to s4heid/bosh-linux-stemcell-builder
that referenced
this pull request
Nov 6, 2025
In a previous change (cloudfoundry#449), loading the floppy module was disabled by redirecting the floppy command to true, which effectively prevents manual loading of the module using `modprobe floppy`. However, Buffer I/O errors observed in the `dmesg` output indicate that the kernel is still attempting to load the floppy module when the floppy hardware is presented. ```txt blk_update_request: I/O error, dev fd0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 floppy0: disk absent or changed during operation ``` This suggests that that during boot: 1. Kernel detects floppy controller hardware 2. udev/kernel auto-loads floppy module (install directive not active yet) 3. Floppy driver starts, finds no disk → I/O errors 4. install directive becomes active (too late!) When using both directives below, these errors can be avoided: - `install floppy /bin/true`: This redirects any attempt to load the floppy module to true (which does nothing) - `blacklist floppy`: This explicitly prevents the kernel from automatically loading the floppy module
s4heid
added a commit
to s4heid/bosh-linux-stemcell-builder
that referenced
this pull request
Nov 8, 2025
In a previous change (cloudfoundry#449), loading the floppy module was disabled by redirecting the floppy command to true, which effectively prevents manual loading of the module using `modprobe floppy`. However, Buffer I/O errors observed in the `dmesg` output indicate that the kernel is still attempting to load the floppy module when the floppy hardware is presented. ```txt blk_update_request: I/O error, dev fd0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 floppy0: disk absent or changed during operation ``` This suggests that during boot: 1. Kernel detects floppy controller hardware 2. udev/kernel auto-loads floppy module (install directive not active yet) 3. Floppy driver starts, finds no disk → I/O errors 4. install directive becomes active (too late!) update-initramfs must be executed because the initramfs is built at image creation time and contains kernel modules and configuration used before the root filesystem mounts. The blacklist in /etc/modprobe.d only affects modprobe after the root filesystem is active. If the initramfs contains a floppy.k and is not rebuilt after the blacklist has been applied, the initramfs auto-loads the floppy driver.
s4heid
added a commit
to s4heid/bosh-linux-stemcell-builder
that referenced
this pull request
Nov 9, 2025
In a previous change (cloudfoundry#449), loading the floppy module was disabled by redirecting the floppy command to true, which effectively prevents manual loading of the module using `modprobe floppy`. However, Buffer I/O errors observed in the `dmesg` output indicate that the kernel is still attempting to load the floppy module when the floppy hardware is presented. ```txt blk_update_request: I/O error, dev fd0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 floppy0: disk absent or changed during operation ``` This suggests that during boot: 1. Kernel detects floppy controller hardware 2. udev/kernel auto-loads floppy module (install directive not active yet) 3. Floppy driver starts, finds no disk → I/O errors 4. install directive becomes active (too late!) The blacklist in /etc/modprobe.d only affects modprobe after the root filesystem is active. If the initramfs contains a `floppy.ko` file and is not rebuilt after the blacklist has been applied, the initramfs auto-loads the floppy driver. `update-initramfs` rebuilds the initramfs and includes the /etc/modprobe.d rules to the root fs.
s4heid
added a commit
to s4heid/bosh-linux-stemcell-builder
that referenced
this pull request
Nov 10, 2025
In a previous change (cloudfoundry#449), loading the floppy module was disabled by redirecting the floppy command to true. However, Buffer I/O errors observed in the `dmesg` output indicate that the kernel is still attempting to load the floppy module when the hardware supports it. ```txt blk_update_request: I/O error, dev fd0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 floppy0: disk absent or changed during operation ``` This suggests that during boot: 1. Kernel detects floppy controller hardware 2. udev/kernel auto-loads floppy module (install directive not active yet) 3. Floppy driver starts, finds no disk → I/O errors 4. install directive becomes active (too late!) The blacklist in /etc/modprobe.d only affects modprobe after the root filesystem is active. If the initramfs contains a `floppy.ko` file and is not rebuilt after the blacklist has been applied, the initramfs auto-loads the floppy driver. `update-initramfs` rebuilds the initramfs and includes the /etc/modprobe.d rules to the root fs.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR removes loading of the legacy floppy module from the stemcell build.
Rationale: