Description of problem: internally mkinitrd uses modprobe to get module dependencies. but mkinitrd succeeds (but doesn't get dependencies) due to /sys not being mounted. i would like modprobe not to use /sys if it's just getting dependencies (which it should only check the .dep file) failing that, i would like mkinitrd to exit with an error if /sys isn't mounted. when doing chrooted installs, this could be a huge improvement. ie: don't waste time trying to find out why ext4 in initrd is missing jbd2. Reproducible: Steps to Reproduce:
CC: (none) => pterjan, tmbSource RPM: module-init-tools => mkinitrd
I think having an error would be the best Mounting /sys should be part of creating a chroot, together with mounting /proc. Many things will not work correctly without /sys.
@ AL13N This enhancement still needed?
Keywords: (none) => NEEDINFOCC: (none) => marja11
yes, either an error message at the very least, but i would like mkinitrd to rely less on what's being used at the moment, and more on what system it has below, so i can more easily make initrds for other machines in all actuallity, /sys is not used all that often in mkinitrd, except for getting dependencies of modules, afaict.
Keywords: NEEDINFO => (none)
cc'ing some committers of mkinitrd that weren't in the cc of this bug, yet
CC: (none) => anssi.hannula, fundawang
@ AL13N do you still use mkinitrd in cauldron? If not, do you agree on closing this bug?
Hi, This bug was filed against cauldron, but we do not have cauldron at the moment. Please report whether this bug is still valid for Mageia 2. Thanks :) Cheers, marja
Keywords: (none) => NEEDINFO
Sorry AL13N, there were no "me too's" on this bug, you didn't reply to comment 5, nor to comment 6. We don't even know whether you still use mkinitrd I'm closing this bug as OLD You know how to reopen it when needed :)
Status: NEW => RESOLVEDResolution: (none) => OLD
i've switched it to mga1, since mga2 uses dracut. besides, it's not something anyone easily gets, you'd likely have to forget to mount /sys in a chrooted env and try to make initrd. it was more something the mkinitrd maintainer could fix, so i'm leaving it closed with old.
Version: Cauldron => 1