[Bug 1993541] Re: initramfs need to mount efivarfs because kernel 6.0 deprecated 'efivars' sysfs interface
Andreas Hasenack
1993541 at bugs.launchpad.net
Thu May 18 16:50:26 UTC 2023
I verified the test results and am satisfied that they show the executed
planned test case, and that the results are correct.
I agree the updated test case is better (see comment #39)
The package built correctly in all architectures and Ubuntu releases it
was meant for.
There are no DEP8 regressions,
There is no SRU freeze ongoing at the moment.
There is no halted phasing on a previous update.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mdadm in Ubuntu.
https://bugs.launchpad.net/bugs/1993541
Title:
initramfs need to mount efivarfs because kernel 6.0 deprecated
'efivars' sysfs interface
Status in OEM Priority Project:
In Progress
Status in mdadm package in Ubuntu:
Fix Released
Status in mdadm source package in Jammy:
Fix Released
Status in mdadm source package in Kinetic:
Fix Released
Status in mdadm source package in Lunar:
Fix Released
Status in mdadm package in Debian:
Fix Released
Bug description:
[ Impact ]
kernel 6.0 deprecated efivars sysfs interface [1]. For Intel VROC
RAID, mdadm needs initramfs to mount efivarfs instead.
[1] The commit:
commit 0f5b2c69a4cbe4166ca24b76d5ada98ed2867741
Author: Ard Biesheuvel <ardb at kernel.org>
Date: Mon Jun 20 13:34:03 2022 +0200
efi: vars: Remove deprecated 'efivars' sysfs interface
[ Test Plan ]
1. Install mdadm (4.2-0ubuntu2) from -proposed.
2. Adding test script init-top/01_check_mount to list all mounted filesystems to initramfs.debug.
3. Adding test script init-bottom/zz_check_mount to list all mounted filesystems to initramfs.debug.
3. update-initramfs -u
4. Append "debug" to GRUB_CMDLINE_LINUX_DEFAULT then sudo update-grub.
5. Reboot and check /var/run/initramfs/initramfs.debug if the boot script 00_mount_efivarfs will be executed before udev.
[Test script] 01_check_mount and zz_check_mount are identical.
#!/bin/sh
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
echo "$(mount)"
[ Where problems could occur ]
Not sure if there any other tools/utilities also need to mount efivarfs as early as mdadm but the probability of file conflict should be very low.
Also, there are no impact mounting efivarfs multiple times.
mount: /sys/firmware/efi/efivars: efivarfs already mounted on /sys/firmware/efi/efivars.
[ Scope ]
Jammy, Kinetic, Lunar, Mantic
[ Other Info ]
The private bug link
https://bugs.launchpad.net/somerville/+bug/1990231
To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1993541/+subscriptions
More information about the foundations-bugs
mailing list