Public bug reported:

This is related to bug 1313169, I have had a sudden bout of clarity on
the cause of the issue.

I propose this modification to the dmraid installation script as it is a
small but necessary enhancement.

When dmraid is installed, it adds all the necessary hooks to initramfs-
tools. However, it has one oversight, that the required raid modules are
not added to /etc/initramfs-tools/modules. Without these modules, dmraid
will inevitably fail to initialize the array when started since the
kernel would not be able to find the required modules in the image.

I propose that when dmraid is installed, during installation the script
would check to see if the following items are already in /etc/initramfs-
tools/modules, and append the required modules into the bottom of the
file if it's not, and then rebuild the initramfs, update grub and if
necessary reinstall grub. On uninstall of package, I propose that we
should just warn the user but leave the lines in just in case they're
using something else that also needs the modules.

The following modules should be appended to the /etc/inmitramfs-
tools/modules file:

raid0
dm_raid
raid1
raid10
raid456
async_raid6_recov
async_memcpy
async_pq
async_tx
raid6_pq
async_xor
xor
libcrc32c

** Affects: dmraid (Ubuntu)
     Importance: Undecided
         Status: New

** Package changed: linux (Ubuntu) => dmraid (Ubuntu)

** Description changed:

  This is related to bug 1313169, I have had a sudden bout of clarity on
  the cause of the issue.
  
  I propose this modification to the dmraid installation script as it is a
  small but necessary enhancement.
  
  When dmraid is installed, it adds all the necessary hooks to initramfs-
  tools. However, it has one oversight, that the required raid modules are
  not added to /etc/initramfs-tools/modules. Without these modules, dmraid
  will inevitably fail to initialize the array when started since the
  kernel would not be able to find the required modules in the image.
  
  I propose that when dmraid is installed, during installation the script
  would check to see if the following items are already in /etc/initramfs-
  tools/modules, and append the required modules into the bottom of the
  file if it's not, and then rebuild the initramfs, update grub and if
  necessary reinstall grub. On uninstall of package, I propose that we
  should just warn the user but leave the lines in just in case they're
  using something else that also needs the modules.
  
  The following modules should be appended to the /etc/inmitramfs-
  tools/modules file:
  
  raid0
  dm_raid
  raid1
  raid10
  raid456
  async_raid6_recov
  async_memcpy
  async_pq
  async_tx
  raid6_pq
+ async_xor
+ xor

** Description changed:

  This is related to bug 1313169, I have had a sudden bout of clarity on
  the cause of the issue.
  
  I propose this modification to the dmraid installation script as it is a
  small but necessary enhancement.
  
  When dmraid is installed, it adds all the necessary hooks to initramfs-
  tools. However, it has one oversight, that the required raid modules are
  not added to /etc/initramfs-tools/modules. Without these modules, dmraid
  will inevitably fail to initialize the array when started since the
  kernel would not be able to find the required modules in the image.
  
  I propose that when dmraid is installed, during installation the script
  would check to see if the following items are already in /etc/initramfs-
  tools/modules, and append the required modules into the bottom of the
  file if it's not, and then rebuild the initramfs, update grub and if
  necessary reinstall grub. On uninstall of package, I propose that we
  should just warn the user but leave the lines in just in case they're
  using something else that also needs the modules.
  
  The following modules should be appended to the /etc/inmitramfs-
  tools/modules file:
  
  raid0
  dm_raid
  raid1
  raid10
  raid456
  async_raid6_recov
  async_memcpy
  async_pq
  async_tx
  raid6_pq
  async_xor
  xor
+ libcrc32c

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1683105

Title:
  Installation of DMRaid should automatically add necessary modules to
  /etc/initramfs-tools/modules

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dmraid/+bug/1683105/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to